A wise old hermit known only as padhu vinirs <[EMAIL PROTECTED]> once
said:
> <target name="buildJar" depends="clean,compile">
> <jar destfile="${basedir}/test.jar"
> basedir="${output.classes.dir}">
> <metainf>
> <fileset dir="${output.metainf.dir}"/>
> </metainf>
> </jar>
> </target>
>
> When I run, I get the following error: ( ant 1.5.1 )
>
> Buildfile: build.xml
>
> BUILD FAILED
> file:F:/wls_examples/applications/learnwls/misc/build.xml:82: Class
> org.apache.t
> ools.ant.types.ZipFileSet doesn't support the nested "fileset" element.
>From the Ant docs for the jar task:
"The nested metainf element specifies a FileSet."
i.e. it is itself equivalent to a fileset. However, filesets can't take
nested filesets... So, instead of
<metainf>
<fileset dir="${output.metainf.dir}"/>
</metainf>
try just using
<metainf dir="${output.metainf.dir}"/>
You should also be able to use things like
<metainf dir="${server.src}">
<include name="**/*.xml"/>
<exclude name="**/*Test*"/>
</metainf>
Andrew.
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user