Hi Diane,
> Sorry -- forgot that the documentation didn't make it into beta1.
> Here's the example for the <depend> tag:
> <fileset dir="${ant.1.5}/src/main" includes="**/*.java">
> <depend targetdir="${ant.1.4.1}/src/main"/>
> </fileset>
Thanks for the pointer to the documentation. Looks like just the right thing.
Sadly, I'm not able to make it work yet. As far as I can tell, I'm doing the right
thing. My build file looks like this:
<project name="tip" default="jpg">
<property environment="env" />
<property name="stage.dir" value="stage" />
<property name="svg.dir" value="svg" />
<fileset id="svgs.to.build" dir="${svg.dir}" includes="*.svg">
<depend targetdir="${stage.dir}">
<mapper type="glob" from="*.svg" to="*.jpg"/>
</depend>
</fileset>
<taskdef name="rasterize"
classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask">
<classpath>
<pathelement path="${env.MY_BIN}/jars/RasterizerTask.jar" />
<pathelement path="${env.BATIK_HOME}/batik-rasterizer.jar" />
<fileset dir="${env.BATIK_HOME}/lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</taskdef>
<target name="jpg">
<rasterize destdir="${stage-dir}" quality="0.8" result="image/jpeg">
<fileset refid="svgs.to.build" />
</rasterize>
</target>
</project>
<!-- END OF build.xml -->
When I run this, I get an error message:
build.xml:8: The <fileset> data type doesn't support the nested "depend" element.
It seems to allow other selectors, such as <not>, <and>, and <majority>. It does not
allow <depend> or <filename>. Also, the allowed selectors themselves do not allow
<depend> or <filename>.
The rest of the build file seems right to me. To verify that, I removed the <depend>
element, and the build file rasterizes all *.svg files in the svg directory. When I
put <depend> in, I get the error.
Any ideas? Are selectors implemented only partially in the beta?
Dale
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>