ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GE Energy, Non GE, GENE)" <Luis1.Cone...@ge.com>
Subject RE: Simple problem with ANT
Date Sat, 29 Jan 2005 17:58:14 GMT
Looking at your buildfile, the thing is you have to call tar2 instead of
tar1 

I have tried this sligthly modified version of your script and works like a
charm:


-------------------------

<project name = "proj" default = "tar2">
<target name = "tar1" >
    <mkdir dir = "C:\a" />
</target>

<target name = "tar2" depends = "tar1" >
    <mkdir dir = "C:\b" />
</target>

</project>

-------------------------

As you can see, the only difference is the default target invoked in the
<project> section

Give it a try

Luis

-----Original Message-----
From: Alvaro Andrés Montañez [mailto:alvaroa653@gmail.com]
Sent: Saturday, January 29, 2005 11:01 AM
To: Ant Users List
Subject: Re: Simple problem with ANT


I have to do this:

<project name = "proj" default = "tar1">
<target name = "tar1" >
    <mkdir dir = "C:\a" />
    <mkdir dir = "C:\b" />
</target>
</project>

But it´s rare, i don´t undestand, why doesn´t work like this:

<project name = "proj" default = "tar1">
<target name = "tar1" >
    <mkdir dir = "C:\a" />
</target>

<target name = "tar2" depends = "tar1" >
    <mkdir dir = "C:\b" />
</target>

</project>

Thanks to all!


On Sat, 29 Jan 2005 08:56:09 -0800, Conelly, Luis (GE Energy, Non GE,
GENE) <Luis1.Conelly@ge.com> wrote:
> Just a thought, but I believe you shouldn´t name both targets as "tar1";
try
> to name the second target as "tar2" and then invoke it from ant as usual
> 
> $ ant tar2
> 
> Should work.
> 
> HTH
> luis
> 
> 
> -----Original Message-----
> From: Alvaro Andrés Montañez [mailto:alvaroa653@gmail.com]
> Sent: Saturday, January 29, 2005 10:01 AM
> To: user@ant.apache.org
> Subject: Simple problem with ANT
> 
> 
> Hello,
> 
> I´m new with this, and i hope you can help me with this too simple
problem..
> 
> I have this fille:
> 
> <project name = "proj" default = "tar1">
> 
> <target name = "tar1" >
>     <mkdir dir = "C:\a" />
> </target>
> 
> <target name = "tar1" depends = "tar1">
>        <mkdir dir = "C:\b" />
> </target>
> 
> </project>
> 
> The problem it´s that just create the folder "a",
> 
> Thanks a lot.
> 
> AM.
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message