test if exists

2009-07-08 Thread Horvath Adam
Hi! I'm learning ant. ant -Dpropname=xxx // correct usage ant // incorrect usage of my build Can I test a property existence? if propname not exists ( echo "Give more command line arg" exit ant running ) Thanks, Adam -

Re: Ant 1.7: unzip with overwrite set to 'false' is overwriting files

2009-07-08 Thread David Weintraub
On Wed, Jul 8, 2009 at 2:22 PM, rdblaha1 wrote: > > Thank you David for pointing out the OLDER vs. NEWER timestamp.  The > timestamp of the existing files is always OLDER in my testing. Would using the task help? Before unzipping, you can "touch" all the properties files that you don't want to ov

Re: Ant 1.7: unzip with overwrite set to 'false' is overwriting files

2009-07-08 Thread rdblaha1
Thank you David for pointing out the OLDER vs. NEWER timestamp. The timestamp of the existing files is always OLDER in my testing. My problem isn't solved with the patternset as I previously thought. If my config properties files don't exist in the dest directory in the first place I DO want th

Re: Ant 1.7: unzip with overwrite set to 'false' is overwriting files

2009-07-08 Thread David Weintraub
Quick question: What is the timestamp on these files? If you set the overwrite parameter to false, it may be overwriting files that have an OLDER timestamp than the file that's replacing it. The description of this parameter is: Overwrite files, even if they are newer than the corresponding

Re: Ant 1.7: unzip with overwrite set to 'false' is overwriting files

2009-07-08 Thread rdblaha1
Initial problem solved, but leaves questions from this newbie. I modified the code by adding the patternset: This cleared up my problem, but leaves the questio

Re: Macrodef attribute expansion question...

2009-07-08 Thread Scot P. Floess
OK, I found my problem... Apparently as I was refactoring, I moved my statement to the bottom of my XML file containing macrodefs... The aforementioned macrodef's had references to the properties contained in the file :( Anyway, I moved the up above my macrodef's and it worked... Funn

Re: Macrodef attribute expansion question...

2009-07-08 Thread Scot P. Floess
Hey thanks! OK, now I feel like a complete idiot! So, in my code I am doing this exactly - or so I think ;) Like a "bull in a china shop" I went ahead and did this sample app... Now looking at your example, and going back to my code I see where I have an error-msg attribute that default

Ant 1.7: unzip with overwrite set to 'false' is overwriting files

2009-07-08 Thread rdblaha1
I have the following code in my xml Ant file: Yet in my output I see that three files existing in my config directory are overwritten when the unzip occurs. [unzip] expanding config/setup1.properties to c:\applicat

Re: Macrodef attribute expansion question...

2009-07-08 Thread Stefan Bodewig
On 2009-07-08, Scot P. Floess wrote: > I have a question about attribute expansion for macrodefs... > Consider the following: > > > > > > > > >"${myMessage1}"/> >

Macrodef attribute expansion question...

2009-07-08 Thread Scot P. Floess
I have a question about attribute expansion for macrodefs... Consider the following: "${myMessage1}"/>