Just an idea and not tested. Use '=' for separating source from target name.
Used AntContrib.
copy.txt
--------
/a/b/c.xml=/d/e/f.xml
...
<loadfile property="allfiles" file="copy.txt"/>
<ac:for list="${allfiles}" param="line">
<sequential>
<ac:propertyregex property="from" input="@{file}" regexp="(.*)=(.*)"
select="\1" override="true"/>
<ac:propertyregex property="to" input="@{file}" regexp="(.*)=(.*)"
select="\2" override="true"/>
<copy file="${from}" tofile="${to}"/>
</>
</>
Jan
>-----Ursprüngliche Nachricht-----
>Von: Mitja B. [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 10. September 2007 10:32
>An: Materne, Jan (RZF)
>Betreff: Re: AW: Open and read file with ant and then copy
>
>We have few different customers which all have uniq files to
>copy. We want
>that if is possible ant read project.txt file and in it are
>all relative
>paths for files to copy, then ant will copy all this files.
>
>Is this possible?
>
>
>--------- Original Message --------
>From: [EMAIL PROTECTED]
>To: [email protected] <[email protected]>, [EMAIL PROTECTED]
><[EMAIL PROTECTED]>
>Subject: AW: Open and read file with ant and then copy
>Date: 10/09/07 09:49
>
>> What is the use case for using this project.txt?
>>
>> Usually you copy a bunch of files with <copy todir><fileset
>dir="from">
>>
>>
>> Jan
>>
>> >-----Ursprüngliche Nachricht-----
>> >Von: Mitja B. [mailto:[EMAIL PROTECTED]
>> >Gesendet: Montag, 10. September 2007 09:29
>> >An: [email protected]
>> >Betreff: Open and read file with ant and then copy
>> >
>> >I have big problem. I search but can not find and solution.
>> >
>> >We want to open some file, for example project.txt
>> >
>> >in it we will have content like this
>> >
>> >instmmconnection.xml projrtuconnection.xml
>> >
>> >we want now that ant read this file and copy connectiion.xml
>> >from instmm
>> >directory to projrtu directory
>> >
>> >How can we do this with ant, or even better is this possible?
>> >
>> >Thx
>> >
>> >________________________________________________
>> >Message sent using UebiMiau 2.7.10
>> >
>> >
>> >
>>
>>-----------------------------------------------------------
>----------
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>
>________________________________________________
>Message sent using UebiMiau 2.7.10
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]