Musachy Barroso wrote: > > Get it from here: > > http://repo1.maven.org/maven2/org/apache/struts/struts-annotations/ > > musachy >
I've managed to do it with following target: <target name="generate-taglib" depends="compile-project"> <apt classpathref="struts-plugin.classpath" factorypathref="struts-plugin.classpath" srcdir="src" compile="false" destdir="dest/apt" fork="true" preprocessdir="bin" verbose="false" source="1.5" factory="org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory"> <compilerarg value="-AtlibVersion=0.0"/> <compilerarg value="-AjspVersion=2.0"/> <compilerarg value="-AshortName=ext"/> <compilerarg value="-Auri=/ext-tags"/> <compilerarg value="-Adescription='Description is set in build.xml'"/> <compilerarg value="-AdisplayName='Aleri Ext Tags'"/> <compilerarg value="-AoutTemplatesDir=${basedir}/doc"/> <compilerarg value="-AoutFile=${basedir}/bin/META-INF/ext-tags.tld"/> <!-- Apt Debug options --> <!-- <compilerarg value="-print"/> <compilerarg value="-XListAnnotationTypes"/> <compilerarg value="-XListDeclarations"/> <compilerarg value="-XPrintAptRounds"/> <compilerarg value="-XPrintFactoryInfo"/> --> </apt> </target> following folders should exist in ${basedir}: - src (with source code) - bin (with already compiled sources) - bin/META-INF - doc - dest/apt ${struts-plugin.classpath} should contain struts-annotations-1.0.X.jar apt.exe must be available under %JDK_HOME%/bin that runs ant or in %PATH% (if not, causes trouble "Error running apt.exe compiler", e.g. if build is started under Eclipse, which is started by JRE, not JDK). -- View this message in context: http://www.nabble.com/Struts2-annotation-based-TLD-generation-using-Ant-tp18015219p18033588.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]