Update: Finally I managed to compile and jar the content of the src dir. This is the updated build.properties file:
src.dir=${basedir}/projects/modules/src build.dir=${basedir}/projects/WEB-INF/build dist.dir=${basedir}/projects/WEB-INF/dist project.name=gdv main-class=apps.gdv.GDVLauncher jar-classpath=.\\gdv.jar I renounced to use a side path for my scripts because I can't see an easy way to reference the project's basedir attribute from the property file. Now I'm putting build.xml and build.properties in the root folder as usual. The trick has been commenting out the <include> nested elements present in the 'compile' task. Also, I set <javac>'s sourcepath property to the project's main class. This is what I have now: <target name="compile" depends="init"> <javac sourcepath="${src.dir}/apps/gdv/GDVLauncher.java" srcdir="${src.dir}" includeantruntime="false" destdir="${build.dir}" debug="on"><!-- <include name="${src.dir}/packages/sde/actor/**"/> <include name="${src.dir}/packages/sde/semaphore/**"/> <include name="${src.dir}/packages/sde/monitor/**"/> <include name="${src.dir}/packages/synch/**"/> <include name="${src.dir}/apps/gdv/**"/>--> </javac> </target> Resources are now merged to the dist folder through a <copy> element, in the 'init' task. As you can tell, though, I can't be happy with this result since I want to include only a subset of packages, not the whole source folder. Any ideas? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org