I want to add a line to a file, but only if the file doesn't already
contain that line. I can add the line fine, but I can't figure out how
to do it conditionally. Is this possible? Here's what I have so far.
Any suggestions would be greatly appreciated. Thanks in advance.
ct: Re: regexpmapper question
>
> On 10/19/06, Fenlason, Josh <[EMAIL PROTECTED]> wrote:
> > I'm trying to move some files using regexpmapper and I'm not having
> > much luck, probably because I'm no good at regular expressions.
> > I have a directory st
e ? Mine is 1.6.5.
>
> -cji
>
>
> -Original Message-
> From: Fenlason, Josh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 19, 2006 2:00 PM
> To: Ant Users List
> Subject: RE: regexpmapper question
> Importance: Low
>
>
> That moves foo-0.1.2-bar and all i
E: regexpmapper question
>
>
> how about :
>
>
>
>
> -Original Message-
> From: Fenlason, Josh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 19, 2006 1:15 PM
> To: user@ant.apache.org
> Subject: regexpmapper question
> Impor
I'm trying to move some files using regexpmapper and I'm not having much
luck, probably because I'm no good at regular expressions.
I have a directory structure like this:
foo-0.1.2-bar/js
foo-0.1.2-bar/css
foo-0.1.2-bar/util/test
etc.
I would like to move everything inside of foo-0
x27;s a two step process:
>
> 1) extract the .js files from the archive to a temp location
> using the task with a nested
> 2) use the task with a nested to copy
> the js files from the temp location to a new destination
>
> /t
>
>
>
> >-Original Me
I'm trying to extract only js files from a zip file and not retain the
folder structure from the zip file.
For example the zip file might look like this:
/foo/bar/test.js
/foo/test2.js
I want to extract so they come out like this:
C:\test\test.js
C:\test\test2.js
Hope that make se