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
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
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
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
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}