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
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