WAR file - preserve not working as expected

2008-03-10 Thread Rob Wilson
I have an issue where I want to include images into a war file, but overwrite some of the existing images in a second pass. I've tried copying the baseline images into the war in one war task and then overwrite the images in a second war task. If I choose duplicate="add" it does not replace the i

How to get the filename of a dirset - not the full path?

2008-03-10 Thread Rob Wilson
Now that I have a list of directories, I would like to get the directory NAME rather than the full path - I am trying to use the name to create directories elsewhere and copy files from a few different places. Basically I want something that returns me the name after the last slash - but it looks

Re: Repeating a task for a list of directories

2008-03-10 Thread Rob Wilson
I thought I would give some feedback, it seems that I made two mistakes... 1) I typed the incorrect version number, so this was why it could not find the explicitly named jar file. 2) even after fixing the jar name this syntax did not work... (yes I did correct the jar name by this

Re: Repeating a task for a list of directories

2008-03-06 Thread Rob Wilson
Thanks for the information, I believe I need ant-contribs foreach such that I can do some processing for each subdirectory. I've downloaded the jar file and would prefer not to copy it directly into Ant libs folder, such that the next person to do a svn update can run with it without having to thi

Repeating a task for a list of directories

2008-03-05 Thread Rob Wilson
Hi, I have not done too much with Ant, but I would like to find all sub-directories below a given directory and then for each directory repeat a task in the context of that directory, so for example topdir subdir1 subdir2 I would like to get ant to repeat a task for subdir1 and subdir2 and

Re: Replacing chars in a property

2007-11-16 Thread Rob Wilson
I might be wrong, but I think there is a URLFixer task - or something similarly named, would that be useful? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: copy contents of a directory based on a dirset

2007-11-12 Thread Rob Wilson
ge the war file into my EAR. The > WAR's build.xml puts the WAR file into a subdirectory called "dist. > > EAR > + -- WAR > +--dist >+-- x.war > > Is there a way to use this dirset to say copy the contents of the > director

Project 'B' to depend on Project 'A' ant build?

2007-11-09 Thread Rob Wilson
I have two separate projects and currently Project B uses files from project A using relative paths, but if I update project A and forget to build it, project B could fail. The question is, can Ant have a dependency on another ant script? (I.e. not 'import'ing, but some form of project dependenc

Checking whether a property is set

2007-11-09 Thread Rob Wilson
I can check whether a file exists and set a property, but can I check whether a property exists and set a property based on whether it exists? I don't mind how this is checked, I just need to make sure that my JUnit test stops if the property isn't set. Cheers, Rob. -

Fail if file does not contains a string?

2007-11-08 Thread Rob Wilson
Is it possible to fail ant if a file does not contain a string? Cheers, Rob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Can I replace some text in a fileset - using values from properties?

2007-11-07 Thread Rob Wilson
Say I have a file with a few files, and would like to inject some values via ant properties, i.e. company.txt contains "Thank you for trying the product from ${companyName}." Is there an Ant task that given a property entry of Will result in company.txt containing "Thank you for trying the pr

Re: deploy task to Tomcat partially works

2007-11-02 Thread Rob Wilson
Hi Steve, Thanks for the suggestions, as it turns out I should have mentioned that I am running Vista - it turned out to be permission problems in the webapps directory (doh!), one for the book?! ;-) Incidentally, tell me more about your book - I often find that this Ant 'the definitive guide' do

Re: deploy task to Tomcat partially works

2007-11-01 Thread Rob Wilson
]> wrote: > > Rob Wilson wrote: > > Hi All, > > > > I have written my first Ant script from scratch, using google and the > > O'reilly definitive guide. I'm mostly happy with what I have ended up > with, > > however when I try to use the Tomcat DeployTas

deploy task to Tomcat partially works

2007-10-30 Thread Rob Wilson
Hi All, I have written my first Ant script from scratch, using google and the O'reilly definitive guide. I'm mostly happy with what I have ended up with, however when I try to use the Tomcat DeployTask my application is not deployed as expected. If I manually copy my war file to the webapps dire

Re: possible to open an alert window?

2007-10-25 Thread Rob Wilson
That's a very useful tip! On 10/25/07, Peter Reilly <[EMAIL PROTECTED]> wrote: > > or use >