You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Oliver Ashoff <Ol...@xtramind.com> on 2004/01/30 20:59:32 UTC

default build target

( Subject: 'AW: optional.jar in ant 1.6' deleted. Somewhat confusing ;)

Hello Dan!

Minor slip. I forgot to delete 
  default="copy"

<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>

  	<target name="build" depends="copy">
          <echo message="I am the target 'build' depending on the target 'copy'" />
	</target>

</project>

Then,  
  $> ant 
or
  $> ant build 
or
  $> ant copy
will do it.
You can add '-f build.xml' as further args,
however the target 'build' is the default target
(if there is no default target mentioned in the line '<project ...')
and 'build.xml' is the name of the XML-build-file 
as default.

Now, you are on the right way, ant (are'nt) you!?  ;)


Oliver


> -----Ursprüngliche Nachricht-----
> Von: Lauzon Daniel-Y18165 [mailto:Y18165@motorola.com] 
> Gesendet: Freitag, 30. Januar 2004 20:25
> An: 'Ant Users List'
> Betreff: RE: optional.jar in ant 1.6
> 
> 
> Oliver
> 
> Awesome! Thx 4 Ur patience with a tyro
> 
> Dan
> 
> -----Original Message-----
> From: Oliver Ashoff [mailto:Oliver.Ashoff@xtramind.com]
> Sent: 30 janvier, 2004 13:51
> To: Ant Users List
> Subject: AW: optional.jar in ant 1.6
> 
> 
> 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@motorola.com] 
> > 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@swift.com]
> > 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@ant.apache.org
> > >For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> > >
> > >  
> > >
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

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