Hi  All:

     Is anybody know how to add dependencies to a customizable ant task.

here is my case:



<!-- =========================================================================
-->
        <!--                                  instrument
         -->
        <!-- 
=========================================================================
-->
        
        <taskdef name="javaflow"
classname="org.apache.commons.javaflow.ant.AntRewriteTask">
                                <classpath id = "project.class.path">
                                        <fileset dir = "lib">
                                                        <include name = 
"**/ant-1.7.1.jar"/>
                                                        <include name = 
"**/asm-3.2.jar"/>
                                                        <include name = 
"**/asm-analysis-3.2.jar"/>
                                                        <include name = 
"**/asm-commons-3.2.jar"/>
                                                        <include name = 
"**/asm-tree-3.2.jar"/>
                                                        <include name = 
"**/asm-util-3.2.jar"/>
                                                        <include name = 
"**/bcel-5.2.jar"/>
                                                        <include name = 
"**/commons-io-1.4.jar"/>
                                                        <include name = 
"**/commons-jci-core-1.0.jar"/>
                                                        <include name = 
"**/commons-logging-1.1.jar"/>
                                                        <include name = 
"**/junit-3.8.2.jar"/>
                                                        <include name = 
"**/junit-addons-1.4.jar"/>
                                                    <include name = 
"**/commons-javaflow-1.0-SNAPSHOT.jar"/>
                                        </fileset>
                                </classpath>
        </taskdef>
        
        <target name="javaflow" depends="compile">
                <javaflow srcdir="classes" Destdir="inclass">
                          <include name="**/*.class" />
                        </javaflow>
        </target>

the commons-javaflow-1.0-SNAPSHOT.jar is an ant task, but it depends
on these jars:
ant-1.7.1.jar
asm-3.2.jar
asm-analysis-3.2.jar
asm-commons-3.2.jar
asm-tree-3.2.jar
asm-util-3.2.jar
bcel-5.2.jar
commons-io-1.4.jar
commons-jci-core-1.0.jar
commons-logging-1.1.jar
junit-3.8.2.jar
junit-addons-1.4.jar

i try to use  fileset  to add these dependencies. but it seems wrong.


>From Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to