Good editor for Ant scripts?

2007-02-07 Thread Hans Schwaebli
I am searching for an editor which shows me for example that a property is not set if called from another method. To me, Ant scripts are similiar to a programming language. The Eclipse Java editor shows a lot of feedback (errors and warnings) for Java programs while writing. I wish somethi

RE: Good editor for Ant scripts?

2007-02-07 Thread David Corley (AT/LMI)
Oxygen XML editor offers some feedback, but for any non-original ant tasks (like the PMD, Cobertura ant tasks), it won't be as helpful. You can get a trial from http://www.oxygenxml.com This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disc

Re: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-07 Thread Peter Reilly
Just tested with ant 1.7.0 and this does not happen for me - the available does find junit in ~/.ant/lib build.xml: JUnit is not currently available to the build environment. Because of this, all targets that require JUnit will be skipped. To enable these targets, place a

Re: Good editor for Ant scripts?

2007-02-07 Thread Steve Loughran
Hans Schwaebli wrote: I am searching for an editor which shows me for example that a property is not set if called from another method. To me, Ant scripts are similiar to a programming language. The Eclipse Java editor shows a lot of feedback (errors and warnings) for Java programs while w

Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
What do you think about the XML format used for writing Ant scripts? I don't like it. What about writing Ant scripts in a script language like Python or Jython instead of writing them in XML? I think it would be much more productive. There seems to be a private project for this, but i

Re: Python implementation for Ant

2007-02-07 Thread Joe Schmetzer
On Wed, 7 February, 2007 11:01 am, Hans Schwaebli wrote: > What do you think about the XML format used for writing Ant scripts? I > don't like it. Tastes vary. :-) > What about writing Ant scripts in a script language like Python or > Jython instead of writing them in XML? I think it would be

Re: Python implementation for Ant

2007-02-07 Thread Steve Loughran
Hans Schwaebli wrote: What do you think about the XML format used for writing Ant scripts? I don't like it. Interesting religious issue there. I know a lot of anti-XML people, and tools like rake, capistrano and puppet all use ruby as their language for describing building or deploying stuf

Re: Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
Steve Loughran ... If I dislike something it has nothing to do with religion. You can't avoid discussions by simply stating they are religious. I am not anti-XML in general, but I don't think this format makes any sense for a scripting or programming language. Even the first creator o

Re: Python implementation for Ant

2007-02-07 Thread Robert Koberg
On Wed, 07 Feb 2007 09:49:16 -0500, Hans Schwaebli <[EMAIL PROTECTED]> wrote: Why not offer writing Ant scripts in Jython and XML? Let developers choose. But now they have no real choice for Ant scripts, only XML syntax. What is stopping now from writing your Ant /scripts/ in Jython/Java

Re: Python implementation for Ant

2007-02-07 Thread Steve Loughran
Hans Schwaebli wrote: Steve Loughran ... If I dislike something it has nothing to do with religion. You can't avoid discussions by simply stating they are religious. I am not anti-XML in general, but I don't think this format makes any sense for a scripting or programming language. Ev

Re: Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
Maybe Ant was not designed for easy programmatical use? Robert Koberg <[EMAIL PROTECTED]> wrote: On Wed, 07 Feb 2007 09:49:16 -0500, Hans Schwaebli wrote: > Why not offer writing Ant scripts in Jython and XML? Let developers > choose. But now they have no real choice for Ant scripts, only

Re: Python implementation for Ant

2007-02-07 Thread Matt Benson
Hans, I'm not sure why you've attacked Steve here. I'm -pretty- sure he used the term "religious" simply to convey to you the sometimes heated nature of this discussion. Ultimately, as in the case of religion, "Humans Should Not Have to Grok XML" (with credit to Terence Parr) is a matter of opini

Re: Python implementation for Ant

2007-02-07 Thread Steve Loughran
Matt Benson wrote: NOW, having said all that, I am a DSL-phile and am having all sorts of fun writing various domain-specific languages for the last couple of years. I have a low-priority intent to develop a custom language for Ant and will attempt, when I am ready to begin, to do so as an offi

Re: Python implementation for Ant

2007-02-07 Thread Robert Koberg
On Wed, 07 Feb 2007 10:27:30 -0500, Hans Schwaebli <[EMAIL PROTECTED]> wrote: Maybe Ant was not designed for easy programmatical use? Maybe. What is your problem? Works for me... I use it programmatically, though mostly through build files. But I like XML. Robert Koberg <[EMAIL PROTECT

Re: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-07 Thread Jacob Kjome
Hi Peter, I narrowed it down. Indeed, your findings are correct for JDK 1.5 (or JDK 1.6 on my machine). Try it under JDK 1.3.1. That's when it fails to find Junit.jar unless junit.jar is under ${ant.home}/lib. Not sure about JDK 1.4.x since I don't care to install it. Jake At 02:57

Re: Delete files if error log exist

2007-02-07 Thread Ninju Bohra
Ooops...it appears you might have a problem (or two)... First off... I do not believe you can nest abritary task nodes within a task...the only sub-element permitted is a single element...I will defer to the ANT docs but I believe that is right Based on what you said...you want to delete the

Re: Delete files if error log exist

2007-02-07 Thread James Abley
So work with ANT, not against it. ... Something like that? Ninju Bohra wrote: Ooops...it appears you might have a problem (or two)... First off... I do not believe you can nest abritary task nodes within a task...the only sub-element permitted is

RE: Good editor for Ant scripts?

2007-02-07 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: Hans Schwaebli [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 07, 2007 12:34 AM > To: Ant Users List > Subject: Good editor for Ant scripts? > > I am searching for an editor which shows me for example that > a property is not set if called from another

Ant sshexec random failuresrun a fai

2007-02-07 Thread cprice
Hi there; I run a deploy system using ant with sshexec and scp. My deploy consists of sshexec calls to shut down running applications on remote servers, copy of files via scp to remote servers, and then subsequent sshexec calls to start up applications on remote servers. My problem is that my a

Re: Good editor for Ant scripts?

2007-02-07 Thread Jack J. Woehr
On Feb 7, 2007, at 3:22 PM, Anderson, Rob (Global Trade) wrote: Eclipse has an ant build file debugger. I know that is not what you are asking for, but you might find it usefull. NetBeans has reasonably good Ant support. JEdit is pleasant for editing XML. -- Jack J. Woehr Director of Dev

Copying multiple source trees without loops

2007-02-07 Thread sam.hendley
I have been hacking at this problem for about an hour and I have to believe that there must just be something basic I am missing. I am rewriting our build scripts to be more maintainable, useful and faster. I am trying to avoid using antcontrib this time as all the loops and antcalls I had were ki

RE: Copying multiple source trees without loops

2007-02-07 Thread Daffin, Miles (IT)
I think you may be making things too complicated for yourself. Why not just compile each tree in situ? If you want you can compile them into the same dest dir. You could even wrap the javac task in a macro and just pass the source dir to this as an attribute. Then just invoke the macro once for e

Re: Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
I reply to all of you here. For me it does not matter so much, if Ant's XML is replaced by Python, Jython, Groovy or another scripting language. I think all would be better for writing Ant scripts than the XML way. In the beginning of Ant, XML seemed to be a good way. But as it evolve