The Ant Apt task would be a way: http://ant.apache.org/manual/CoreTasks/apt.html
musachy On Thu, Jun 19, 2008 at 2:28 PM, Dmitriy Kuznetsov <[EMAIL PROTECTED]> wrote: > > Struts2 TLD files are generated by maven. I will not use maven on current > project, so how to run the same task from Ant? > > Probably, the following part of pom.xml allows maven to do it: > > <plugin> > <groupId>org.apache.myfaces.tobago</groupId> > <artifactId>maven-apt-plugin</artifactId> > <version>1.0.15</version> > <configuration> > > uri=/struts-tags,tlibVersion=2.2.3,jspVersion=2.0,shortName=s,displayName="Struts > Tags", > > outFile=${basedir}/target/classes/META-INF/struts-tags.tld, > description="To make it easier to access dynamic data; > the Apache Struts framework includes a library of custom > tags. > The tags interact with the framework's validation and > internationalization features; > to ensure that input is correct and output is localized. > The Struts Tags can be used with JSP FreeMarker or > Velocity.", > outTemplatesDir=${basedir}/src/site/resources/tags > > <resourceTargetPath>target</resourceTargetPath> > <fork>false</fork> > <force>true</force> > <nocompile>true</nocompile> > <showWarnings>true</showWarnings> > > <factory>org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory</factory> > <target>1.5</target> > <includes> > <include>**/*.java</include> > </includes> > </configuration> > <executions> > <execution> > <phase>compile</phase> > <goals> > <goal>execute</goal> > </goals> > </execution> > </executions> > </plugin> > > I googled for a solution, or at least, docs, for a couple of days, but found > nothing. > -- > View this message in context: > http://www.nabble.com/Struts2-annotation-based-TLD-generation-using-Ant-tp18015219p18015219.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]