Giampaolo Melis
20 years ago
Hi,
I would like to modify the build.xml file in my project, customizing
the files to be compiled (see Issue 65510, I'm waiting for the
enhancement).
I've tried overriding the -do-compile target as follows:
<target name="-do-compile"
depends="init,deps-jar,-pre-pre-compile,-pre-compile"
if="have.sources">
<echo message="${build.classes.dir}"/>
<echo message="${src.lib.dir}"/>
<echo message="${build.classes.excludes}"/>
<j2seproject3:javac>
<customize>
<exclude name="${src.lib.dir}/client/**"/> <!--
Hardcoded for the moment -->
<exclude name="${src.lib.dir}/daos/**"/>
<exclude name="**/CmpDaoImplDefault_ok.java"/>
</customize>
</j2seproject3:javac>
<copy todir="${build.classes.dir}">
<fileset dir="${src.lib.dir}" excludes="${build.classes.excludes}"/>
</copy>
</target>
Somebody knows what sub elements can be used in j2seproject3:javac
customize element? (exclude does not work!)
Thanks
I would like to modify the build.xml file in my project, customizing
the files to be compiled (see Issue 65510, I'm waiting for the
enhancement).
I've tried overriding the -do-compile target as follows:
<target name="-do-compile"
depends="init,deps-jar,-pre-pre-compile,-pre-compile"
if="have.sources">
<echo message="${build.classes.dir}"/>
<echo message="${src.lib.dir}"/>
<echo message="${build.classes.excludes}"/>
<j2seproject3:javac>
<customize>
<exclude name="${src.lib.dir}/client/**"/> <!--
Hardcoded for the moment -->
<exclude name="${src.lib.dir}/daos/**"/>
<exclude name="**/CmpDaoImplDefault_ok.java"/>
</customize>
</j2seproject3:javac>
<copy todir="${build.classes.dir}">
<fileset dir="${src.lib.dir}" excludes="${build.classes.excludes}"/>
</copy>
</target>
Somebody knows what sub elements can be used in j2seproject3:javac
customize element? (exclude does not work!)
Thanks