RE: Doing both debug and release builds with same targets

2001-11-16 Thread Alan Pearlman Spencer
Message- From: Peter Davis [mailto:[EMAIL PROTECTED]] Sent: 16 November 2001 06:31 To: Ant Users List Subject: Re: Doing both debug and release builds with same targets If you specify the property on the command line: ant -Dmode=debug compile-proj1 then mode will not be overwritten even

Re: Doing both debug and release builds with same targets

2001-11-15 Thread James Bullington
The way I would do it is the following target name=setmode unless=mode echo message=mode not set, setting mode to debug/ property name=mode value=debug / /target target name=compile-proj1 depends=prepare, setmode etc. Hope this helps, Jim --- Alan Pearson [EMAIL PROTECTED] wrote:

Re: Doing both debug and release builds with same targets

2001-11-15 Thread Peter Davis
If you specify the property on the command line: ant -Dmode=debug compile-proj1 then mode will not be overwritten even if there is a property that sets it. But this means you have to type that ugly -D parameter, which is why I think that the message to which I am replying is probably the