newbie - if-then-else task?

2001-12-03 Thread Russ Fink
Hello, I'm new at Ant and I will describe what I want to do -- followed with how I hope to do it. I'm trying to copy files from two sources, a system directory followed by a local directory. This is prior to a build, and I'm modifying an existing build file. What I want is to copy a file

Re: newbie - if-then-else task?

2001-12-03 Thread Russ Fink
Okay - I think I understand. If I have 'dirs.orig' pointing to the global area, and dirs.local pointing to the local modified area, and want to put the file into 'dest', I can do the following: property name=frompath value=${dirs.orig}/foo/ available file=${dirs.local}/foo property=frompath

Re: newbie - if-then-else task?

2001-12-04 Thread Russ Fink
I tried the other way, using depends and targets. It is REALLY long, not succinct, and IMHO can lead to severe maintenance problems in the long run - therefore, I advocate leaving the available tag just the way it is. To do what I wanted using depends and targets, it roughly works like this

RE: Reset an existing property

2001-12-04 Thread Russ Fink
I thought this reassignment of properties was going away, or otherwise found to be undesirable? This is related to my newbie-if-then-else thread. Am I seeing where this is becoming more of a needed feature? From: Kurien Mathew [EMAIL PROTECTED] One, I hope, simple question. Is it

Re: [ANT]/exec/arg/line

2001-12-12 Thread Russ Fink
target name=build-fulcrum exec executable=ant dir=${fulcrum.dir} arg line=clean/ /exec exec executable=ant dir=${fulcrum.dir} arg line=-Dsecurity.database.name=${scarab.database.prop.name}