apache ant and subant

J

jeroendijkmeijer

Hi I've question on apache ant.
I'm currently struggling with aop and I want to have 2 different
compile targets 1 for plain and one for aop compilation.
the compilation is done in subants.
currently I have copied the subant declarations and included an
property in the second of them like:
<presetdef name="subant" uri="urn:ICEsoft">
<subant inheritall="true" failonerror="true" verbose="true"/>
</presetdef>

<presetdef name="subantaoplog" uri="urn:ICEsoft">
<subant inheritall="false" failonerror="true" verbose="true">
<property name="aop.set" value="true"/>
</subant>
</presetdef>
and doing <target name="compile" depends="generate.metadata, compile-
plain, compile-aop"/>

<target name="compile-plain" depends="generate.metadata"
unless="aop.set">
<javac destdir="${build.classes.dir}" sourceRoots=""
...
<target name="compile-aop" depends="generate.metadata" if="aop.set">
...
but I have the feeling that this is not the most sophisticated way.
any help would be appreciated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top