You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alex Gugel <al...@100world.de> on 2001/06/07 11:28:38 UTC
--available-- dos not work correctly
Hello,
I'm using ANT 1.3 and I have problems with the <available> tag:
<target name="prepare">
<tstamp/>
>>>>
<available file="${build.dir}/modules-ant.xml"
property="modules-ant"/>
<<<<
</target>
<!-- generate ANT file -->
<target name="generate-ant" depends="prepare" unless="modules-ant">
<style basedir="." destdir="${build.dir}"
style="xsl/make-modules.xsl"
in="${modules.xml}" out="${build.dir}/modules-ant.xml"/>
</target>
The ${build.dir}/modules-ant.xml is not present in the filesystem, but
available sets modules-ant and so generate-ant is never called. Is that
a known bug? Or do I do something wrong?
yours
alex
Alexander Gugel 100world.com AG
Abteilung Vordere Cramergasse 11
Fon: +49 (0)911 4244-210 D-90478 Nürnberg
Fax: +49 (0)911 4244-XXX
alex.gugel@100world.com www.100world.com
Re: --available-- dos not work correctly
Posted by Stefan Bodewig <bo...@apache.org>.
Alex Gugel <al...@100world.de> wrote:
> The ${build.dir}/modules-ant.xml is not present in the filesystem,
> but available sets modules-ant and so generate-ant is never
> called.
Either the file is there or something else is setting modules-ant, I
can't think of any other reason as a bug like this wouldn't slip
through (the JUnit tests would catch it).
Does running ant -verbose give any clues? You *should* see a message
"Unable to find <file> to set property modules-ant" from the available
task with <file> being the absolute pathname of the file you are
looking for.
Stefan