ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject <available> bug in 1.4.1?
Date Wed, 22 May 2002 19:58:06 GMT
<available> seems to deal incorrectly with filepaths containing quoted
directories. With the build.xml snippet below, the path listed, you can see
in the debug output included that <available> is confused by the first ;"
entries is sees, inventing a new directory name P:\com_lgc\v3\"C, and
messing up the one following (the quoted one). Is this a bug in 1.4.1, and
is it corrected in 1.5 beta? Thanks, --DD

  <target name="-check-env">
    <condition property="-env-ok">
      <available file="cl.exe" filepath="${env.Path}" />
    </condition>
  </target>

  <target name="-fail" depends="-check-env" unless="-env-ok">
    <fail message="BAD ENVIRONMENT!!!" />
  </target>

  <target name="init" depends="-fail">
    <mkdir dir="${classes}" />
  </target>

P:\com_lgc\v3>set Path
Path=C:\Program Files\Unified
Messenger\Common;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;"C:
\pro\exceed\Accessories\";C:\pro\bin;C:\pro\vim\vim61;C:\pro\jdk1.4\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

P:\com_lgc\v3>%DS_HOME%\tools\ant\bin\ant -verbose dlls
Ant version 1.4.1 compiled on October 30 2001
Buildfile: build.xml
Detected Java version: 1.4 in: C:\pro\jdk1.4\jre
Detected OS: Windows 2000
parsing buildfile P:\com_lgc\v3\build.xml with URI =
file:P:/com_lgc/v3/build.xml
Project base dir set to: P:\com_lgc\v3
 [property] Loading Environment env.
Build sequence for target `dlls' is [-check-env, -fail, init, dlls]
Complete build sequence is [-check-env, -fail, init, dlls, parse_classpath,
openvision, -classes, -r
egister, update, -resources, docs, clean, -dll, jars, compile, all, tags]

-check-env:
     [null] Searching C:\Program Files\Unified Messenger\Common
     [null] Searching C:\WINNT\system32
     [null] Searching C:\WINNT
     [null] Searching C:\WINNT\System32\Wbem
     [null] Searching P:\com_lgc\v3\"C
     [null] Searching P:\pro\exceed\Accessories\"
     [null] Searching C:\pro\bin
     [null] Searching C:\pro\vim\vim61
     [null] Searching C:\pro\jdk1.4\bin
     [null] Unable to find P:\com_lgc\v3\cl.exe to set property null

-fail:

BUILD FAILED

P:\com_lgc\v3\build.xml:56: BAD ENVIRONMENT!!!
        at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:74)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 0 seconds

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message