hey guys, I need some help with ANT. This should be the right place to find some qualified people :) ok, here is my task:
I want to copy some files, within an for-loop. Except a special sort of files where I have to add a timestamp. like this: <for-loops to get directories> <var name="time" unset="true"/><tstamp><format property="time" pattern="yyyy-MM-dd hh:mm:ss"/></tstamp> <ftp server="${ftp.name}" remotedir="${name.dest.ftp.dir}" userid="${ftp.name.user}" password="${ftp.name.pw}" binary="yes" verbose="yes"> <fileset dir="${name.src.dir}"> <include name="@{name.src.datei}" /> </fileset> </ftp> </for loops> So far I copy all files inside the directory to the new server. This works fine. But now I have to add the following: 1. rename all files like BBBB*.INI to BBBB*${time}.INI 2. Copy the BBBB*${time}.INI to the same server like the files above. 3. delete the newly created file BBBB*${time} from the old server. The problems I got is the following: I cant't use the "*" to build an <if> like the following: <if> arg1 "is like" BBBB* <than>... I'm sorry for my bad English, but it's not my native language. Feel free to ask, if there is something you can't understand. Thank you very much! kind regards, Gerhard --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org