RE: Does this work with Ant?

2007-02-14 Thread Hans Schwaebli
Thanks. It worked. Keith Hatton <[EMAIL PROTECTED]> wrote: It sounds like a combination of and might meet your basic requirements, though you may have to provide your own condition implementation depending on what "the task" is. http://ant.apache.org/manual/index.html Keith -Original M

AW: AW: AW: AW: Copy a single file to directories

2007-02-14 Thread Jan.Materne
I dont know - in both cases the check has to be done. Maybe the selector would be faster because there is no need for instantiating a new task (). But I dont think that there is a big difference ... I would use the way because of its easier implementation and see if the speed is ok. Jan >--

Re: AW: AW: AW: Copy a single file to directories

2007-02-14 Thread Camer38
Thanks. Performance is an issue as well - in your opinion which solution is faster? Marcin -- View this message in context: http://www.nabble.com/Copy-a-single-file-to-directories-tf3221651.html#a8980914 Sent from the Ant - Users mailing list archive at Nabble.com. --

AW: how to include other JARs?

2007-02-14 Thread Jan.Materne
You should have a look at One-Jar [1] or FatJar [2] for creating an "complete, startable jar". But in your use case I would think about this: - on the other machine - mount a directory from your developer machine with all libraries - run the tests - unmount Jan [1] http://one-jar.sourceforge

AW: AW: AW: Copy a single file to directories

2007-02-14 Thread Jan.Materne
My first thought was using selectors to filter the directory list you are iterating over ... But you are using AC ... so this would be easier with a and ... ... Jan >-Ursprüngliche Nachricht- >Von: Camer38 [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch,

RE:

2007-02-14 Thread Mark Modrall
Figured it out... I changed PATH and CLASSPATH but not ANT_HOME, so I wasn't running the version I thought I was running... -Mark This e-mail message, and any attachments, is intended only for the use of the individual or entity identified in the alias address of this message and may cont

how to include other JARs?

2007-02-14 Thread Thomas L Roche
Slightly offtopic, but since it's something that OP probably run into, and I didn't see it answered in the FAQ, I thought I'd ask: how to include other JARs with one's own? What I mean: I'm automating some tests on a legacy batch-mode app that runs remotely. Since * I want to touch the remote box

Re: Best Practices Using uptodate?

2007-02-14 Thread Andrew Close
On 2/14/07, Sam Hendley <[EMAIL PROTECTED]> wrote: How do you all use in your build scripts? I am using it to see if a build should be performed. I am getting the correct value in the property specified by uptodate but I am having some trouble determining the correct way to structure my build fi

RE: Switching to 'root' user

2007-02-14 Thread jason heddings
We have a build system that creates and installs RPM's... The installation must be done as root, and leads to mixed ownership of files if we only sudo that portion. That is what we are currently doing and it causes us lots of problems. For example, some RPMS we build from our own source and some

Best Practices Using uptodate?

2007-02-14 Thread Sam Hendley
How do you all use in your build scripts? I am using it to see if a build should be performed. I am getting the correct value in the property specified by uptodate but I am having some trouble determining the correct way to structure my build file to avoid using antcall's. I have it working right

RE: Ant frequently changed classes- CVS

2007-02-14 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: kumartnj [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 13, 2007 10:02 PM > To: user@ant.apache.org > Subject: Ant frequently changed classes- CVS > > > Hi, > How i write the code in ant to know the Frequently changing > classes in SVN (like version con

RE: Switching to 'root' user

2007-02-14 Thread Anderson, Rob (Global Trade)
What are you trying to accomplish as root? Running ant as root should probably not be necessary. There are probably only a few commands that need to run as root. I would suggest configuring sudo to only allow execution of those specific commands (with NOPASSWD), and in your build.xml file use the e

Switching to 'root' user

2007-02-14 Thread jason heddings
Is it possible to run 'ant' as a regular user, but in the build file change the process to run as 'root' instead? I could just prefix the ant command with 'sudo' but I'd like to try to accomplish this "behind the scenes" of our developers. Thanks, --jah ---

Re: AW: DTD or XSD for build files

2007-02-14 Thread Steve Loughran
lightbulb432 wrote: True, that's what I figured. Within the "myOwnTask" element, however, couldn't an XSD be defined for that based on the allowable attributes and subelements, so you get the benefit of autocompletion and validation in your IDE? But I guess if that's not how it's done then I sho

Re: AW: DTD or XSD for build files

2007-02-14 Thread lightbulb432
True, that's what I figured. Within the "myOwnTask" element, however, couldn't an XSD be defined for that based on the allowable attributes and subelements, so you get the benefit of autocompletion and validation in your IDE? But I guess if that's not how it's done then I shouldn't pursue it...

Re: AW: AW: Copy a single file to directories

2007-02-14 Thread Camer38
Hi, I have one more chalange - pretty similar to previous one. I need to perform a copy like in the previous example but this time I shoul copy only in the case if a file book.xml is present othervise the copy does't take a place. Thanks yor any kind of tip Marcin Peter Reilly-2 wrote: > > An

user@ant.apache.org

2007-02-14 Thread Mark Modrall
Hi... I saw on the manual web page that was supposed to be available under in ant 1.7.0. I just downloaded it and tried a sample, but it's throwing an error saying it's not legal. What's the deal? Thanks -Mark This e-mail message, and any attachments, is intended only for the use of

RE: Does this work with Ant?

2007-02-14 Thread Keith Hatton
It sounds like a combination of and might meet your basic requirements, though you may have to provide your own condition implementation depending on what "the task" is. http://ant.apache.org/manual/index.html Keith -Original Message- From: Hans Schwaebli [mailto:[EMAIL PROTECTED] Sen

Does this work with Ant?

2007-02-14 Thread Hans Schwaebli
How to do this in Ant: Call a task every x seconds for x minutes until the task completes successful. If the task completes successful, the build continues to the next statement. If the task is not successful after the maximum minutes are reached, fail. Write a Java class to encapsul

XSLTProcess destination directory not working in linux

2007-02-14 Thread subir bhaumik
Hi, I am using apache-ant-1.6.5 api to generate report in html format using XSLTProcess task. I want to generate some html files with the help of an xsl stylesheet into any directory taking an xml as input. It's OK when iam doing this in Windows enviorment. But when i am executing this on