OK now,
it works with

user@@@@@{server }

the ant manual says =

"The escape sequence @@ is used to escape @"

so for my understaning it should work
with =

user@@@@{server } but that's expanded as

[EMAIL PROTECTED]

Anyway, the expansion with macrodef is a bit complicated ;-)

Regards, Gilbert

but my other question is still around =

any workaround of the missing preserverlastmodified
attribute in ant scp task ?

Gilbert

-----Original Message-----
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 10:30 AM
To: user@ant.apache.org
Subject: Problem with param expansion


Hi,

after fixing my other problems with <for> and
property expansion, one problem remains =

my script has =

<assert name="[EMAIL PROTECTED]" execute="true">
<for list="[EMAIL PROTECTED]" param="copyfile">
        <sequential>
        <echo message="... copy -> @{copyfile}" />
        <exec executable="ksh">
        <arg line = "scp -p -r @{copyfile}
user@@{server}:project/@{Lum}/opt/[EMAIL PROTECTED]" />
        </exec>
        </sequential>
</for>
</assert>

i'm using the exec because with ant and scp task i have no option
to preserve the timestamp

[ feature request = preservelastmodified for scp task ]

but the arg line get's expanded as =

... userservername:project/ ...

the parts omitted with ... are all right

but the scp command needs [EMAIL PROTECTED]

i've tried with user@@@{server} but that get's expanded as :

... [EMAIL PROTECTED]:project/ ...

Question =

Any hints how to get my arg line expanded right ?

Maybe there's an option like writing &lt; instead of < ?

Maybe there is a workaround with scp task that preserves
the timestamp of the files even without a preservelastmodified
attribute available ?


Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to