Hi all,
I tried to seperate my custom task and their dependencies from my normal ANT
Installation.
For example AntDoc is installed in ${ant.home}/AntDoc. So I defined the
taskdef like follows:
<taskdef name="AntDoc" classname="org.ed.pack.ant.AntDoc">
<classpath>
<fileset dir="${ant.home}/AntDoc/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</taskdef>
where AntDoc/lib contains AntDoc.jar; AntDoc.cab (not used) and saxon.jar.
This gives me a NullPointerException:
Buildfile: build.xml
antdoc:
BUILD FAILED
java.lang.NullPointerException
at org.ed.pack.ant.AntDoc.generateAntDoc(Unknown Source)
at org.ed.pack.ant.AntDoc.execute(Unknown Source)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 9 seconds
If I install the used jars in ${ant.home}/lib it works fine.
The reason I try to seperate the custom tasks is that one of my custom task
needs an older version of xerces and clashes with the version ANT uses and I
want to keep my classpath clean.
Is this a good idea or not recommended at all?
Regards,
Michael
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>