Menu

#1 build.xml error

open
nobody
5
2004-02-15
2004-02-15
Rich Gibbs
No

I am a newbe to ant, but when I extracted out the code
from the gz, and set my JAVA_HOME, and did a ant
compile everything was good, I then did an ant jar which
failed with the following:

[E:/jformatter/build] ant -f build_orig.xml jar
Buildfile: build_orig.xml

prepare:

compile:

jar:
[jar] Building jar: E:\jformatter\${dist}\formatter-
20040215.jar

BUILD FAILED
file:E:/jformatter/build/build_orig.xml:35: Problem
creating jar: E:\jformatter\ ${dist}\formatter-20040215.jar (The system cannot find
the path specified) (and
the archive is probably corrupt but I could not delete it)

Total time: 0 seconds

I then modified the line in question to be:

<jar jarfile="${dist.dir}/formatter-${DSTAMP}.jar"
basedir="${build.dir}" />

And it then compiles file. The only part of the change
was modifying the ${dist} to be ${dist.dir}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.