I'm using the ReplaceCopy task defined as:
<taskdef
classpathref="class.path"
name="replacecopy"
classname="xdoclet.ant.ReplaceCopy"
/>
where the class.path ref contains all the jar files within the xdoclet
1.2 lib dir as well as j2ee.jar (j2sdkee) and tools.jar (j2sdk).
One of the targets is (it's used in lot's of places - this is just the
simplest):
<target name="appxml" depends="init">
<replacecopy
file="${meta.path}/application.xml"
todir="${build.meta.path}"
/>
</target>
Where application.xml contains:
<!DOCTYPE application
PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name><XDtAnt:property name="app.display.name"/></display-name>
<description><XDtAnt:property name="app.description"/></description>
<module>
<ejb><XDtAnt:property name="project.name"/>.jar</ejb>
</module>
<module>
<java><XDtAnt:property name="project.name"/>.util.jar</java>
</module>
<module>
<web>
<web-uri><XDtAnt:property name="project.name"/>.war</web-uri>
<context-root><XDtAnt:property name="project.name"/></context-root>
</web>
</module>
</application>
With the 1.2b2 xdoclet and ant 1.5.3-1 it worked fine. When I upgraded
to xdoclet release 1.2 it started giving NullPointerException:
appxml:
[replacecopy] Copying 1 file to /home/chris/src/empolis/intranet/build/meta
BUILD FAILED
java.lang.NullPointerException
at xdoclet.template.TemplateEngine.start(TemplateEngine.java:395)
at xdoclet.ant.ReplaceCopy.replace(ReplaceCopy.java:144)
at xdoclet.ant.ReplaceCopy.doFileOperations(ReplaceCopy.java:94)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:369)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Any hints what I'm doing wrong?
--
Chris Searle
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user