ested filesets - how to do it?

2008-08-06 Thread Robert Jones
I've inherited this Ant build file, and am trying to clean it up a bit! I have this bit of code... (somewhat abridged!) and I'd like to rewrite so as to remove the redundant repetition of common/decoder, something like...

AW: ested filesets - how to do it?

2008-08-06 Thread Jan.Materne
a) use a with several s b) dont use common|decoder in the pattern. But in that way you also include decoder/AutoProfile.c ... (if present) ! Jan > -Ursprüngliche Nachricht- > Von: Robert Jones [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 6. August 2008 10:43 > An: user@ant.apac

fileset manipulation

2008-08-06 Thread Ivar Bratberg
If I have fileset A: Is it possible to get the following fileset by a command that takes fileset A as an argument in ? Best regards Ivar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Problem with revConstraint

2008-08-06 Thread Foreman, Alex (IT)
Many thanks for this. I've been having trouble building the trunk for some reason. Is there any chance we can have the latest snapshot in jar form like last time? Also is there a snapshot IvyDE available anywhere nightly build or somesuch. If I can get this ill let you know if all is working.

Support mutliple if and unless

2008-08-06 Thread ext-simon.steiner
Hi, Can ant support multiple if and unless. I would rather not need to use ant-contrib for this. These will infact look for a property called "x,y": Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

AW: Support mutliple if and unless

2008-08-06 Thread Jan.Materne
> Can ant support multiple if and unless. I would rather not need to use > ant-contrib for this. > > These will infact look for a property called "x,y": > Not directly. You would calculate a new property for that: <.../> Jan ---

Uptodate working one way only

2008-08-06 Thread Evgeny
Hi Ant users, I wish there was a way to use the uptodate task in the other direction, not check source against target but check target against source. Since my list of files in source comes from a list in a text file, and it's easy to use a mapping to map them to the place where they are copied to

Re: fileset manipulation

2008-08-06 Thread Florijan Stamenkovic
Ivar, I think your problem is similar to the one I described a few days ago in: http://mail-archives.apache.org/mod_mbox/ant-user/200808.mbox/% [EMAIL PROTECTED] So far I have not been able to solve it, nor received any answers. I guess that the answer is that it can not be done using s

AW: For loop

2008-08-06 Thread Jan.Materne
Use s begin and end attributes: ... Jan > -Ursprüngliche Nachricht- > Von: Diana Huang (AU) [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 22. Juli 2008 07:05 > An: user@ant.apache.org > Betreff: For loop > > Hi, > > I am using the below codes to get for loop working > > >

javac .. java added as class does not exist

2008-08-06 Thread Matthias Coy
Hi everybody, I have a build logfile, which contains a lot of these messages: [javac] HelloWorld.java added as HelloWorld.class doesn't exist. The files are definitely there, but somehow ant does not find them. I've set a correct JAVA_HOME and ANT_HOME and unset CLASSPATH (i'm using windows xp

rename files in directory and subdirectory

2008-08-06 Thread IsaakTaylor
Hello, I have a directory with some subdirectories (and they have also subdirectories). They contain about 260 files. I need to rename some of the files. I don't want to rename every file separate. Is there a ant way to do this? I looked up at ant move, but I think its not possible with the move

Not able to call build.xml from another file build-testjava.xml - Getting error: java.io.FileNotFoundException

2008-08-06 Thread Gaurav Chhabra
Hi, I have a file called build-testjava.xml which checksout the latest code from the code repository and then calls a file called build.xml (this file is also present in the checked out code). The file build.xml compiles the .java files and makes .jar out of it. My problem is that whenever

Re: rename files in directory and subdirectory

2008-08-06 Thread Matt Benson
--- IsaakTaylor <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a directory with some subdirectories (and > they have also > subdirectories). They contain about 260 files. I > need to rename some of the > files. I don't want to rename every file separate. > Is there a ant way to do > this? >

Re: fileset manipulation

2008-08-06 Thread Matt Benson
--- Florijan Stamenkovic <[EMAIL PROTECTED]> wrote: > Ivar, > > > I think your problem is similar to the one I > described a few days ago > in: > > http://mail-archives.apache.org/mod_mbox/ant-user/200808.mbox/% > > [EMAIL PROTECTED] Maybe so; I honestly can't tell what Ivar is after. >

Re: rename files in directory and subdirectory

2008-08-06 Thread Florijan Stamenkovic
If move does not do it, copy in combination with a (regex) mapper should. Maybe something like this would do: 1. Copy all your files from the source dir to the temp dir, apply a regex mapper. 2. Delete the source dir 3. Copy the temp stuff back to the source dir. Like Matt said, more inform

Re: fileset manipulation

2008-08-06 Thread Florijan Stamenkovic
On Aug 06, 2008, at 11:35, Matt Benson wrote: To answer your original query, F, for the time being I would probably load your includesfile using with a nested filterchain and thereby customize your basic includesfile for each occasion. Huh, I can't find something to append text at the end of

RE: fileset manipulation

2008-08-06 Thread EJ Ciramella
Are you talking about referencing the first file set? Why not have two path refids? Can I have a little more context to go with this question? Where is this fileset getting used? -Original Message- From: Ivar Bratberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 5:37 AM T

RE: Not able to call build.xml from another file build-testjava.xml - Getting error: java.io.FileNotFoundException

2008-08-06 Thread EJ Ciramella
[cvs] U Test_Code/Test_Java/build.xml.xml < that could be your problem ;-) -Original Message- From: Gaurav Chhabra [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 11:27 AM To: user@ant.apache.org Subject: Not able to call build.xml from another file build-testjava.

CPD using Java Call

2008-08-06 Thread Tom Holmes Jr.
We tried the CPD (from PMD) ant call, but because we have so many classes, we get an outofmemory exception. We can do the java command-line which works fine and dumps the output to the command-line: java -Xmx384m -classpath ../../.ant/lib/pmd-4.2.2.jar net.sourceforge.pmd.cpd.CPD --minimum-to

Copying everything except one file

2008-08-06 Thread dave.alvarado
Hi, I'm using this command to copy a directory but what I would like to copy all files in that directory except the one named "mine.propertie

Re: Copying everything except one file

2008-08-06 Thread Robert Jones
On Wed, Aug 6, 2008 at 8:28 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using this command to copy a directory > > depends="dev-create-log-dir,dev-create-conf-dir"> > > > > > > > >

Re: CPD using Java Call

2008-08-06 Thread Rod Mackenzie
On 06/08/2008, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote: > > We tried the CPD (from PMD) ant call, but because we have so many classes, > we get an outofmemory exception. The PMD documentation suggests increasing Ants memory, have a look at the end of following page for examples http://pmd.sourc