1 16 package org.apache.myfaces.xdoclet; 17 18 import xdoclet.TemplateSubTask; 19 import xdoclet.XDocletException; 20 21 33 public class FacesConfigSubTask extends TemplateSubTask { 34 35 36 public FacesConfigSubTask() { 37 setDestinationFile("{0}Tag.java"); 38 setTemplateURL(getClass().getResource("/org/apache/myfaces/xdoclet/resources/faces-config.xdt")); 39 } 40 41 public void validateOptions() throws XDocletException { 42 super.validateOptions(); 43 if (getDestinationFile() == null) { 44 throw new XDocletException("Ant Doclet Subtaksk FacesConfigSubTaks: You have to set attribute 'destinationFile'."); 45 } 46 } 47 48 } 49 | Popular Tags |