ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafal Kedziorski <raf...@polonium.de>
Subject depences?
Date Mon, 05 Nov 2001 22:39:02 GMT
hallo,

I have following peoblem.

I can compile my project with javac or jikes.

     <!-- 
=================================================================== -->
     <!-- 
JAVAC                                                               -->
     <!-- 
=================================================================== -->
     <target name="javac" depends="prepare">
         <property name="build.compiler" value="classic"/>
         <javac srcdir="${dir.src}"
           ...
         </javac>
     </target>

     <!-- 
=================================================================== -->
     <!-- 
JIKES                                                               -->
     <!-- 
=================================================================== -->
     <target name="jikes" depends="prepare">
         <property name="build.compiler" value="jikes"/>
         <javac srcdir="${dir.src}"
           ...
         </javac>
     </target>

But how can I make only one target for creating jar which depends on 
"javac" or "jikes" target?

     <!-- 
================================================================== -->
     <!-- Compiles the source directory and creates a .jar 
file              -->
     <!-- 
================================================================== -->
     <target name="jar" depends="?????">
         <jar jarfile="${dir.lib}/${jar.name}.jar">
           ...
         </jar>
     </target>

Is this possible?


Best Regards,
Rafal


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message