RE: Changing the leading directory path on a directory tree

2006-03-15 Thread Rebhan, Gilbert
Hi, quick hack, without handling of file endings, something like = !-- Import AntContrib -- taskdef resource=net/sf/antcontrib/antlib.xml / property name=path1 value=C:/dir_viewer/Since_Last_Change/abc/yada yada/yada/Bob's Report.doc / property name=path2

Re: How to avoid redundat path and fileset declerations

2006-03-15 Thread Matt Benson
--- Konstantinos Karadamoglou [EMAIL PROTECTED] wrote: [SNIP] What I could do is to have a global fileset but this cannot be done regarding the nature of the project I am involved with. There is not a starting directory for fileset. This use will be covered in more than one way in Ant 1.7

Re: How to avoid redundat path and fileset declerations

2006-03-15 Thread Konstantinos Karadamoglou
Thanks Matt for your help, Is it possible to share the way that you avoid that kind of redundancy? What's your approach when you compose build.xml files On 15/03/06, Matt Benson [EMAIL PROTECTED] wrote: --- Konstantinos Karadamoglou [EMAIL PROTECTED] wrote: [SNIP] What I could do is to

AW: How to avoid redundat path and fileset declerations

2006-03-15 Thread Jan.Materne
Another approach is using id/refid on the fileset itself. classpath id=cp fileset id=fs1 ... / fileset id=fs2 ... / /classpath javac classpathref=cp/ copy todir fileset refid=fs1/ fileset refid=fs2/ /copy AntContrib has also a task path2fileset or something like that. Havent used

Something like 'make' pattern rules in Ant?

2006-03-15 Thread Rodrigo de Salvo Braz
Hi, I am learning Ant and would like to write something like a pattern rule as used in 'make'. Something like: %.o: %.cpp cc ... I read the manual but didn't notice something that would do that. Could anyone please give me a pointer? Thanks, Rodrigo

Re: How to avoid redundat path and fileset declerations

2006-03-15 Thread Konstantinos Karadamoglou
Thanks Jan, I will have a look at the path2fileset target On 15/03/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Another approach is using id/refid on the fileset itself. classpath id=cp fileset id=fs1 ... / fileset id=fs2 ... / /classpath javac classpathref=cp/ copy todir

Re: Something like 'make' pattern rules in Ant?

2006-03-15 Thread Alexey N. Solofnenko
Please look at apply task: http://ant.apache.org/manual/CoreTasks/apply.html - Alexey. Rodrigo de Salvo Braz wrote: Hi, I am learning Ant and would like to write something like a pattern rule as used in 'make'. Something like: %.o: %.cpp cc ... I read the manual but didn't notice