Hi Folks,
I got 3 different results for 3 consecutive executions of ant, any ideas?
P.S. if u don't mind, pls try the attachments to verify my result.
Thanks in advance
Chris
=========
build.xml
=========
<?xml version="1.0"?>
<project name="test" default="all" basedir=".">
<target name="all">
<unzip src="temp.zip" dest="." />
</target>
</project>
========
result 1
========
Z:\temp-ant2>ant -verbose
Ant version 1.3 compiled on March 2 2001
Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
parsing buildfile Z:\temp-ant2\build.xml with URI =
file:Z:/temp-ant2/build.xml
Project base dir set to: Z:\temp-ant2
Build sequence for target `all' is [all]
Complete build sequence is [all]
all:
[unzip] Expanding: Z:\temp-ant2\temp.zip into Z:\temp-ant2
[unzip] expand-file temp/1/
[unzip] Setting modification time for Z:\temp-ant2\temp\1
========
result 2
========
Z:\temp-ant2>ant -verbose
Ant version 1.3 compiled on March 2 2001
Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
parsing buildfile Z:\temp-ant2\build.xml with URI =
file:Z:/temp-ant2/build.xml
Project base dir set to: Z:\temp-ant2
Build sequence for target `all' is [all]
Complete build sequence is [all]
all:
[unzip] Expanding: Z:\temp-ant2\temp.zip into Z:\temp-ant2
[unzip] expand-file temp/1/
[unzip] Setting modification time for Z:\temp-ant2\temp\1
BUILD FAILED
java.lang.NoClassDefFoundError: org.apache.tools.ant.BuildException
void org.apache.tools.ant.Main.runBuild()
void org.apache.tools.ant.Main.main(java.lang.String[])
Total time: 1 second
========
result 3
========
Z:\temp-ant2>ant -verbose
Ant version 1.3 compiled on March 2 2001
Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
parsing buildfile Z:\temp-ant2\build.xml with URI =
file:Z:/temp-ant2/build.xml
Project base dir set to: Z:\temp-ant2
Build sequence for target `all' is [all]
Complete build sequence is [all]
all:
[unzip] Expanding: Z:\temp-ant2\temp.zip into Z:\temp-ant2
[unzip] expand-file temp/1/
[unzip] Setting modification time for Z:\temp-ant2\temp\1
[unzip] expand-file temp/1/1.txt
[unzip] Setting modification time for Z:\temp-ant2\temp\1\1.txt
[unzip] expand-file temp/2/
[unzip] Setting modification time for Z:\temp-ant2\temp\2
[unzip] expand-file temp/2/2.txt
[unzip] Setting modification time for Z:\temp-ant2\temp\2\2.txt
[unzip] expand-file temp/
[unzip] Setting modification time for Z:\temp-ant2\temp
[unzip] expand complete
BUILD SUCCESSFUL
Total time: 1 second
build.xml
temp.zip