I forgot to provide my temp.template file. It simply contains this:
xyz=<XDoclet:className/>
I tried more complex stuff, but everything I've tried gave an error, so I
put it down the simplest thing I could and still get the error.
This is my first attempt at writing a custom template. I use the
<info>/@todo stuff and that all works fine for me though.
Erik
----- Original Message -----
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 8:16 PM
Subject: NullPointerException <template> - help!
> I'm using this build.xml piece:
>
> <xdoclet sourcepath="${src.dir}"
> destdir="${build.dir}"
> classpathref="xdoclet.classpath">
> <fileset dir="${src.dir}">
> <include name="**/*.java" />
> </fileset>
> <template templateFile="temp.template"
> destinationfile="temp.properties"></template>
> </xdoclet>
>
> [xdoclet] (TemplateEngine.invokeMethod 524 ) Invoking method
> failed:
> lassName , line=1 of template file: C:\test\temp.template
> [xdoclet] java.lang.NullPointerException
> [xdoclet] at xdoclet.SubTask.className(SubTask.java:576)
> [xdoclet] at java.lang.reflect.Method.invoke(Native Method)
> [xdoclet] at
> xdoclet.util.TemplateEngine.invokeMethod(TemplateEngine.java
> 520)
> [xdoclet] at
> xdoclet.util.TemplateEngine.invokeContentMethod(TemplateEngi
> e.java:627)
> [xdoclet] at
> xdoclet.util.TemplateEngine.generate(TemplateEngine.java:428
>
> [xdoclet] at
> xdoclet.SubTask.generateFileUsingTemplate(SubTask.java:3052)
> [xdoclet] at
xdoclet.TemplateSubTask.execute(TemplateSubTask.java:33)
> [xdoclet] at
xdoclet.DocletTask$DocletMain.start(DocletTask.java:284)
> [xdoclet] at java.lang.reflect.Method.invoke(Native Method)
> [xdoclet] at
> com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.jav
>
> I've tried this with both Ant 1.4.1 and the latest (from CVS) version and
> get the same error.
>
> I'm using XDoclet 1.0.1 release version.
>
> Any help is greatly appreciated.
>
> Thanks,
> Erik
>
>
>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user