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
-
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
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
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
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
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
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
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
On 2009-07-08, Scot P. Floess wrote:
> I have a question about attribute expansion for macrodefs...
> Consider the following:
>
>
>
>
>
>
>
>
>"${myMessage1}"/>
>
I have a question about attribute expansion for macrodefs...
Consider the following:
"${myMessage1}"/>
10 matches
Mail list logo