Re: Filter on copy with directory contents

2008-02-21 Thread David Weintraub
Well, the @REPLACE@ could be handled by a inside a copy. The tricky part is finding the value for ${replacing}. You might be able to do something with the AntContrib task. This can take a property and munge it. Let's say you do something like this: This will give you ${

Filter on copy with directory contents -- solution

2008-02-21 Thread Paul J. Lucas
After a friend pointed me to , I managed to figure out a pure Ant solution: This assumes the file contains @CLASSPATH@ as the string to replace. - Paul

Re: Filter on copy with directory contents

2008-02-20 Thread Paul J. Lucas
On Feb 20, 2008, at 4:48 PM, Martin Gainty wrote: Here is the source for input.java Uhm... look: I suppose I appreciate that some effort is being undertaken, but: 1. The source-code you pasted is unreadable as-is. 2. Again, I'm looking for an all-ant solution. If ant isn't powerful eno

Re: Filter on copy with directory contents

2008-02-20 Thread Martin Gainty
e("\n"); } writer.close(); } //end try.. catch(java.io.IOException ioe) { System.out.println("IOException thrown message = oe.getMessage()); }}}- Original Message - From: "Paul J. Lucas" <[EMAIL PROTECTED]> To: "Martin Gainty" <[E

Filter on copy with directory contents

2008-02-20 Thread Paul J. Lucas
Given a file that contains: @REPLACEME@ I want to use to copy the file and replace @REPLACEME@ with contents like: foo.jar bar.jar ... where "foo" and "bar" are the names of the file(s) in a particular directory that match a certain pattern (in this case *