container with for(each) loop for nested targets ?

2005-08-23 Thread Rebhan, Gilbert
Hi, as i have no experience with macrodef/sequential yet, this may be achieved with some kind of macrodef ... is there some kind of container, providing a for(each) loop with nested targets ? background = i have to edit an antscript that contains several foreach loops with the same list proper

Javac does not delete class file of not-existing java file

2005-08-23 Thread Martin Burger
Hello, I'm using the Javac task programmatically to compile java source files. Unfortunately, javac does not remove class files of java files that do not exist (anymore). And pruning the destination dir is not a good solution, because only the changed java files should be compiled - not all f

How to shut down AntServer (Ant-Contrib) on failed build?

2005-08-23 Thread koden (sent by Nabble.com)
How do I shutdown the AntServer when the build has failed? I have a nested after my remoteant is done sending runant commands, but if those commands fail, the server is still blocking waiting for more. Does anyone know how I can shut the antserver down if this is the case? thanks -- Sent fr

AntServer reporting output to RemoteAnt

2005-08-23 Thread koden (sent by Nabble.com)
If I get a failed build on the server side running AntServer, the RemoteAnt (client side) will only receive a summary of targets called, plus the Build Failed message. On the server side, I have a stack trace printed out from an error, and I'd like the client to be able to see those messages a

How to run parallel ant task?

2005-08-23 Thread koden (sent by Nabble.com)
I'm trying to use the Ant-Contrib's AntServer to listen for a RemoteAnt command, but I'd like to run it like a daemon so it doesn't block other ant tasks that want to run. Can anyone point me in the right direction? -- Sent from the Ant - Users forum at Nabble.com: http://www.nabble.com/How-to-

Re: can ant solve this rather complex challenge

2005-08-23 Thread Barry White
Have you looked at writing cutom ant tasks? It maye help to handle some of the messier details. Barry Scott Bell wrote: Problem statement: I have a number of simple tcl scripts, and they take a set number of params as input (argv). Usually 1-10 params. They can all run standalone, but ha

Re: Remote Calls from Ant?

2005-08-23 Thread koden (sent by Nabble.com)
the server and client for the ant-contrib seem to have no authentication methods. isn't this a big security issue? are there better tasks that do a similar thing but with authentication? how does rexec work? Does that need a server too? Or does that use telnet? does it provide feedback to

Feedback from RExec or SshExec

2005-08-23 Thread koden (sent by Nabble.com)
I have a problem. I am remotely executing an ant script on another machine from the local ant script using the telnet task. The problem is, once this is run, I get no messages and warnings and such back, it just sort of runs on it's own. Does rexec and sshexec provide echo messages like the

Re: Adding to the ant classpath from within a project

2005-08-23 Thread Alexey N. Solofnenko
I am not sure, what problem you are trying to solve. Somewhere there should be a logic to include the jar or not. Can you move it outside of ANT script? If no, you can create dummy task and it. Or you can try to add your jar to classpath of some other innocent . - Alexey. Nestor Dutko wrote:

RE: Adding to the ant classpath from within a project

2005-08-23 Thread Nestor Dutko
I should have added this - this jar does not contain any typedef or tasks to be defined. It actually contains the regexp implementation that I just want to have added to the ant classpath. Can I use taskdef/typedef without defining a task or type? -Original Message- From: Alexey N. Solof

Re: Adding to the ant classpath from within a project

2005-08-23 Thread Alexey N. Solofnenko
and (http://ant.apache.org/manual/CoreTasks/typedef.html) have classpath attribute. You can execute it within a target or within ANT-Contrib's task in a global scope. - Alexey. Nestor Dutko wrote: I've looked around at this and understand the mechanisms that nat has for extending types (v

Adding to the ant classpath from within a project

2005-08-23 Thread Nestor Dutko
I've looked around at this and understand the mechanisms that nat has for extending types (via typedef) and tasks (via taskdef). I have a condition where I want to use the propertyregexp task. I compile using JDK1.2. I also have the apache regexp.jar. I have read on how to add my own task definit

RE: Errors on updating a filein ClearCase.

2005-08-23 Thread Anderson, Rob (Global Trade)
This is a clearcase issue, not related to Ant. -Rob A > -Original Message- > From: Karunakar Chatla [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 23, 2005 8:52 AM > To: Ant Users List > Subject: Errors on updating a filein ClearCase. > > > > Hi, > > I have following script in my b

Re: Javac does not delete class file of not-existing java file

2005-08-23 Thread Martin Burger
Petar Tahchiev schrieb am 23.08.2005 18:26: What's wrong with the delete task? Thanks for the hint. Want to delete file? - Use delete task! :-) After reading the documentation second time I found the solution. You need a delete task that contains a file set. That file set contains a prese

Re: can ant solve this rather complex challenge

2005-08-23 Thread Alexey N. Solofnenko
There are also (http://ant.apache.org/manual/OptionalTasks/scriptdef.html) and (http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html). - Alexey. Scott Bell wrote: Problem statement: I have a number of simple tcl scripts, and they take a set number of params as input (argv). Usual

Re: can ant solve this rather complex challenge

2005-08-23 Thread EJ Ciramella
Could Apply/ExecOn be your solution? On Aug 23, 2005, at 12:28 PM, Scott Bell wrote: Problem statement: I have a number of simple tcl scripts, and they take a set number of params as input (argv). Usually 1-10 params. They can all run standalone, but have dependencies. ANT is therefore

can ant solve this rather complex challenge

2005-08-23 Thread Scott Bell
Problem statement: I have a number of simple tcl scripts, and they take a set number of params as input (argv). Usually 1-10 params. They can all run standalone, but have dependencies. ANT is therefore perfect for them. I have the params that I send to the scripts as named value pairs in a

Re: Javac does not delete class file of not-existing java file

2005-08-23 Thread Petar Tahchiev
On 23/08/05, Martin Burger <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm using the Javac task programmatically to compile java source files. > Unfortunately, javac does not remove class files of java files that do > not exist (anymore). And pruning the destination dir is not a good > solution, be

Re: Errors on updating a filein ClearCase.

2005-08-23 Thread Alexey N. Solofnenko
I do not understand what ClearCase is complaining about, but I would suggest using transparent views. With transparent views ClearCase does not mangle files. The problem is that everybody should use the same kind of views, otherwise you can get empty lines inserted after each line in the text f

Errors on updating a filein ClearCase.

2005-08-23 Thread Karunakar Chatla
Hi, I have following script in my build file. Build.Date=${Now.Date} Release.Version=${product.version} Build.Number=${build.number} Components=ALL Description=Full build, building all the components Build.Type=${build.type} Configspec=${soft.labels.path}\${con

Javac does not delete class file of not-existing java file

2005-08-23 Thread Martin Burger
Hello, I'm using the Javac task programmatically to compile java source files. Unfortunately, javac does not remove class files of java files that do not exist (anymore). And pruning the destination dir is not a good solution, because only the changed java files should be compiled - not all f

Re: AW: Problem with Quotes on XP

2005-08-23 Thread Peter Kay
-- [EMAIL PROTECTED] wrote: > Could you set ANT_HOME without the last backslash? That in and of itself was sufficient! Thanks very much for the suggestion! --Peter __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: Result: 1

2005-08-23 Thread Steve Loughran
Dewey, John wrote: Hmm OK. I guess I'm a little confused now. I thought that the return codes were determined by the operating system as the ant manual http://ant.apache.org/manual/CoreTasks/exec.html said that "error code 2 means 'no such program'. Is this meaning of error code 2 simply a conven