Did run ant with the target = compile or target = zip?
Remember, zip depends on compile, but compile does not depend on zip. So it
is not necessary to run the zip target when the compile target is run.
Try this:
/-- build target is "zip"
ant -buildfile simple.xml zip
or
ant.bat -buildfile simple.xml zip
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 10:10 AM
To: [EMAIL PROTECTED]
Subject: Javac problem
I have what may be a very stupid question, because I have been using ant for
only a couple hours now. But here we go:
here is a portion of my simple.xml file being used by ant:
[other targets and init]
<target name="prepare" depends="clean">
<mkdir dir="${outputDir}" />
<mkdir dir="${zipDir}" />
</target>
<target name="print1" depends="prepare">
<echo message="this is test1"/>
</target>
<target name="compile" depends="print1">
<javac srcdir="${sourceDir}" destdir="${outputDir}" deprecation="off"/>
</target>
<target name="zip" depends="compile">
<zip zipfile="${zipDir}/joel.zip" basedir="${vssDir}"/>
</target>
<target name="print2">
<echo message="test2"/>
</target>
the zip never gets reached. here is the output:
clean:
[deltree] DEPRECATED - The deltree task is deprecated. Use delete
instead.
[deltree] Deleting: C:\WebApps\backoffice\web-inf
[deltree] DEPRECATED - The deltree task is deprecated. Use delete
instead.
prepare:
[mkdir] Created dir: C:\WebApps\backoffice\web-inf
[mkdir] Created dir: C:\WebApps\backoffice\zip
print1:
this is test1
compile:
[javac] Compiling 1 source file to C:\WebApps\backoffice\web-inf
BUILD SUCCESSFUL
i have no clue why the zip never runs. any help would be greatly
appreciated.
thanks,
eric