ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "broken connection" <brokenconnect...@gmail.com>
Subject Re: Question about "depends" attribute in the target element
Date Mon, 12 Nov 2007 19:36:46 GMT
Thanks Guys,
Actually i was trying to avoid that conditional looping and trying to set up
new variables just to control the execution of the targets.

Moreover, I think the "unless" should accept the target name to avoid
setting an explicit property eg:

<target name = "first" />
<target name="second" unless="first" />

Anyways, thanks for all your help and time guys...appreciate it.
Mick

On 11/12/07, glenn opdycke-hansen <glennoph@gmail.com> wrote:
>
> Perhaps the ant code could create/touch a file at the conclusion of A and
> test if the file is created at the beginning of A.  If the file does not
> exist at the start of A, then invoke to actions of A.  If the file exists
> at
> the start of A then do not invoke the actions of A.
> A should be refactored to different targets:  testA and actionA.
>
> --glenn
>
> On Nov 12, 2007 1:10 PM, broken connection <brokenconnection@gmail.com>
> wrote:
>
> > Yeah,I apologize for that....but how can i resolve this guys???
> >
> > I want targetA and targetB to be indepently called under this scenario:
> > targetA can be called independently...
> > targetB always depends on targetA and should make sure targetA is ran
> > before
> > it runs....
> >
> > Any advice???
> >
> > Thanks
> >
> >
> > On 11/12/07, Rick Genter <rgenter@silverlink.com> wrote:
> > >
> > > > From: broken connection [mailto: brokenconnection@gmail.com]
> > > > Sent: Monday, November 12, 2007 11:07 AM
> > > > To: Ant Users List
> > > > Subject: Re: Question about "depends" attribute in the target
> element
> > > >
> > > > Thanks Rick,
> > > > But like Glenn specified if you add an extra target then
> > > > everything works
> > > > fine, please see below:
> > >
> > > Yes, that's correct. There's nothing broken.
> > >
> > > If you do "ant first third" first will be run twice. Each target on
> the
> > > command line is invoked independent of the other targets on the
> command
> > > line.
> > >
> > > Ant is not make/gmake.
> > > --
> > > Rick Genter
> > > Principal Software Engineer
> > > Silverlink Communications
> > > rgenter@silverlink.com
> > > www.silverlink.com
> > > Office (781) 425-5763
> > > Mobile (781) 771-9677
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message