| AW: optional.jar in ant 1.6 | AW: optional.jar in ant 1.6 2004-01-30 - By Oliver Ashoff
Hi!
You have to do this:
<project name="Deploy and test" default="copy"> ^^^^^^^^^^^^^
or
add a target name "build" that depends on the target "copy"
<!-- project name="Deploy and test" default="copy" --> <project name="Deploy and test" default="copy"> <description> Dan's 1st try @ ant </description> <!--set global properties for this ant--> <property name="lib" location="lib"/> <target name="copy"> <copy file="dan.txt" tofile="mycopy.txt" verbose="true"/> </target>
<target name="build" depends="copy"> <echo message="I am the target 'build' depending on the target 'copy' " /> </target>
</project>
Oliver
> -----Urspr?ngliche Nachricht----- > Von: Lauzon Daniel-Y18165 [mailto:Y18165@(protected)] > Gesendet: Freitag, 30. Januar 2004 19:14 > An: 'Ant Users List' > Betreff: RE: optional.jar in ant 1.6 > > > Hi > I'm new to ant, apache, java and xml > I wrote the simplest bat: > > call ant -v -d -f build.xml > pause > > and the simplest build file: > > <project name="Deploy and test"> > <description> > Dan's 1st try @ ant > </description> > <!--set global properties for this ant--> > <property name="lib" location="lib"/> > <target name="copy"> > <copy file="dan.txt" tofile="mycopy.txt" > verbose="true"/> > </target> > </project> > > I run the bat and the call to ant seems to work > (I get a notice that my lib folder is properly set) > but I have no trace of my copy (and no copy of the copied file) > please forgive the simplemindedness of my question, but this > is all new to me. > Be assured that any input will be greatly appreciated > > Thanks for your time > > Dan > > -----Original Message----- > From: RADEMAKERS Tanguy [mailto:tanguy.rademakers@(protected)] > Sent: 30 janvier, 2004 12:57 > To: Ant Users List > Subject: Re: optional.jar in ant 1.6 > > > nope, it's replaced by all the other jars in /lib > > /t > > > Keshav Sarin wrote: > > >Is optional.jar no longer present in ant 1.6 ? > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: user-unsubscribe@(protected) > >For additional commands, e-mail: user-help@(protected) > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |