>> i try to use fileset to add these dependencies. but it seems wrong.
I bet he is missing transitive dependencies: Just let task "javaflow" depend on " commons-javaflow-1.0-SNAPSHOT.jar" and Ant would automatically add those other dependencies. On Fri, Jun 10, 2011 at 3:47 PM, Dominique Devienne <ddevie...@gmail.com> wrote: > On Fri, Jun 10, 2011 at 4:22 AM, wayne <whwa...@gmail.com> wrote: >> Is anybody know how to add dependencies to a customizable ant task. > > Not sure what you mean here. > >> <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"/> > > Avoid ** and fileset+include in this case, rather use pathelement lib/... > >> i try to use fileset to add these dependencies. but it seems wrong. > > Tried? Are you saying it doesn't work? You don't need to list the jars > which are already in $ANT_HOME/lib, and I don't see why you feel it > "seems wrong" to list the dependencies you task needs. --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > -- Wolfgang Häfelinger häfelinger IT - Applied Information Technology http://www.haefelinger.it --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org