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

2007-02-08 Thread Jacob Kjome
Hi Peter, Can you take another look at this? I apologize that I did not point it out in the original email, but the problem is specifically with older JVM's such as JDK1.3.1. I happened to be using it for building the project where I found the problem. I just didn't realize it was specifi

RE: Python implementation for Ant

2007-02-08 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: Hans Schwaebli [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 08, 2007 12:56 PM > To: Ant Users List > Subject: RE: Python implementation for Ant > > Maybe you would start thinking about it if you would see a > comparsion how build scripts looks like wi

Re: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
Maybe this can help a lot with tool support. But these tools must be offered everywhere, in Eclipse, in IntelliJ Idea, in JDeveloper, in Borland, in NetBeans and so on. Every vendor must implement such tool support. This is a lot of work to be done on many places, basically the same work. Eclip

Re: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
Okay, you seem to be right. I mixed it with Java. James Abley <[EMAIL PROTECTED]> wrote: I only have limited scripting language experience (Python, Perl, Ruby and Groovy) but normally a variable not being set would show up at runtime, rather than compile time? Discuss. ;-) Hans Schwaebli wro

Re: Python implementation for Ant

2007-02-08 Thread Scot P. Floess
I think it really depends on the implementation. A BASH script doesnt complain when a variable isn't set...its just not set...no apparent errors other than odd side effects... I would think, with this argument, one could do a 2 pass parse of the Ant script first... I think its really all in t

RE: Python implementation for Ant

2007-02-08 Thread Scot P. Floess
Hans: I see your point but disagree... Ant comes with a handy tag - thus allowing reuse. I spent the good part of last year off and on working on a completely reusable build environment...basically after finding myself grabbing my build files and hacking away on them for each project (sloppy

Re: Python implementation for Ant

2007-02-08 Thread James Abley
I only have limited scripting language experience (Python, Perl, Ruby and Groovy) but normally a variable not being set would show up at runtime, rather than compile time? Discuss. ;-) Hans Schwaebli wrote: A side effect of the make files is its platform dependence. And there had been other

Re: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
A side effect of the make files is its platform dependence. And there had been other problems I read, like a space character causing a bug and you needed lot of time to find these bugs. Concerning bugs I can tell my own story with the way Ant files are written. If a variable is not set, a compil

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
Because I really needed it, I started to use these Ant tasks from 3rd party addons: - try-catch - if-else - var (for using variables and not constants) - loops Most scripting languages supports these things natively. I had sometimes problems with logging and needed to write a own task for chan

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
Interesting article. I bookmarked it and will read it later. Two years ago I had to use Ant a lot for building our application. This is much complexer than just copying and compiling. I started to discuss the uglyness of XML for Ant in the Sun Java forum. Nonetheless I used Ant without much hat

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
It is too verbose for me. I compare it using a fork to comb hair. I am not opposed against a fork and not against hair and combing but I am opposed to use a fork for this instead of a comb. Writing build scripts in a XML format is for me a little bit like combing hair with a fork. Of course you

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
Maybe you would start thinking about it if you would see a comparsion how build scripts looks like with XML and how they would look like in Jython... And don't forget the effect of habit on opinion. For example the QWERTY layout was invented to slow down typing because the typewriters damaged if

Re: Selecting files from disparate directories when the files are not in other directories

2007-02-08 Thread sam.hendley
You should look at the selectors in ant 1.7 (1.62?) they should allow you to build the fileset by using the selector in the fileset. Mikael Sitruk-2 wrote: > > > Hi > > > > Is it possible to select a set of files from several directories only if > they are not present in another set of d

Re: Ant 1.7 and JDepend

2007-02-08 Thread Peter Reilly
On 2/8/07, THARP, JOSHUA L, TCORP <[EMAIL PROTECTED]> wrote: Does anyone know if the same methods for adding junit.jar to the classpath are true for JDepend using ANT 1.7? No, it is not yet implemented. Peter I've tried adding a jdepend-2.9.jar classpath entry to invocation of the jdepend tas

RE: Copying multiple source trees without loops

2007-02-08 Thread sam.hendley
Disclaimer: This is for a J2ME porting system so it has some odd requirements. Thats a good suggestion for most projects but in this case the code in each of the trees is not a compilable unit, I need the source files from all the trees to get it to compile. I also have to do preproccessing on th

Ant 1.7 and JDepend

2007-02-08 Thread THARP, JOSHUA L, TCORP
Does anyone know if the same methods for adding junit.jar to the classpath are true for JDepend using ANT 1.7? I've tried adding a jdepend-2.9.jar classpath entry to invocation of the jdepend task, but get the standard, "failed to create task or type jdepend," message. Here's my task. I did dou

Re: Python implementation for Ant

2007-02-08 Thread Scot P. Floess
Peter: That's a good point regarding Makefiles (I was simply thinking of scripting)... There was a time "loved" writing Makefiles...uhm...not anymore ;) Regardless...I still think XML as a markup is more than tolerable...I don't see the issues with it at all. I mean, I like Java but I don't

Re: Python implementation for Ant

2007-02-08 Thread Peter Reilly
On 2/8/07, Matt Benson <[EMAIL PROTECTED]> wrote: Here's a link to Terence Parr's "Humans should not have to grok XML" article: http://www-128.ibm.com/developerworks/xml/library/x-sbxml.html In it he explains the distinction between XML as a data representation format, the use for which it was

RE: Python implementation for Ant

2007-02-08 Thread Scot P. Floess
Matt: Interesting read... I certainly do see the points being made...but for me, XML is just another syntax - no different than understanding a Java class syntax, C++, BASH, SQL, etc, etc, etc... Because the markup is fairly fixed I actually find it easier to remember the notation (thats just

RE: Python implementation for Ant

2007-02-08 Thread Scot P. Floess
Matt: Interesting read... I certainly do see the points being made...but for me, XML is just another syntax - no different than understanding a Java class syntax, C++, BASH, SQL, etc, etc, etc... Because the markup is fairly fixed I actually find it easier to remember the notation (thats just

RE: Python implementation for Ant

2007-02-08 Thread Matt Benson
Here's a link to Terence Parr's "Humans should not have to grok XML" article: http://www-128.ibm.com/developerworks/xml/library/x-sbxml.html In it he explains the distinction between XML as a data representation format, the use for which it was AFAIK intended, vs. as an explicit interface for hum

RE: Python implementation for Ant

2007-02-08 Thread Scot P. Floess
I'd have to agree with Rob... Have you ever looked at Voice XML? It took is scripting but using XML as the "markup" language What is your aversion to XML with regards to it as a scripting language? I personally like it... -Original Message- >From: "Anderson, Rob (Global Trade)" <

RE: Ant sshexec random failuresrun a fai

2007-02-08 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: cprice [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 07, 2007 2:37 PM > To: user@ant.apache.org > Subject: Ant sshexec random failuresrun a fai > > > Hi there; > > I run a deploy system using ant with sshexec and scp. My > deploy consists of > sshex

RE: Python implementation for Ant

2007-02-08 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: Hans Schwaebli [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 07, 2007 11:23 PM > To: Ant Users List > Subject: Re: Python implementation for Ant > > I reply to all of you here. > > For me it does not matter so much, if Ant's XML is replaced > by

Re: Good editor for Ant scripts?

2007-02-08 Thread Wayne Cannon
Visual SlickEdit is my preferred XML editor. It works quite well. It provides configurable syntax-driven prompting, auto-completion of matching closing statements, "pretty-printing", syntax-specific coloring, and keyword (e.g., element and attribute) prompting. The latter requires a DTD. Th

RE: Python implementation for Ant

2007-02-08 Thread Anderson, Rob (Global Trade)
> -Original Message- > From: Hans Schwaebli [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 07, 2007 3:01 AM > To: Ant Users List > Subject: Python implementation for Ant > > What do you think about the XML format used for writing Ant > scripts? I don't like it. > > What abou

Re: Python implementation for Ant

2007-02-08 Thread Wayne Cannon
Just to add a third-party opinion from a neophyte Ant user experienced in make and other build systems: I appreciated the declarative, as opposed to procedural, nature of Ant. The procedural nature of traditional build tools (scripts, make, etc.) is the very reason they become so fragile with

RE: Using SQL query result as a property, how?

2007-02-08 Thread RADEMAKERS Tanguy
can't find it in my mails, but there's a hack for this. Depending on your database, you should be able to tell it *not* to write that info at the end (something like "set nocount" on oracle). Search the archives, it's come up before... /t >-Original Message- >From: Steve Loughran [mailto

Re: Using SQL query result as a property, how?

2007-02-08 Thread Steve Loughran
Hans Schwaebli wrote: # I have a SQL query which returns one result like 388291. I want to use that result as a property. How can this be done in Ant? In a script language like Python (haha) this is no problem. But how to solve it with Ant? If I use the SQL-Task I only can writ

Re: Using SQL query result as a property, how?

2007-02-08 Thread Dominique Devienne
On 2/8/07, Hans Schwaebli <[EMAIL PROTECTED]> wrote: I have a SQL query which returns one result like 388291. I want to use that result as a property. How can this be done in Ant? In a script language like Python (haha) this is no problem. But how to solve it with Ant? If I use the SQL

RE: Using SQL query result as a property, how?

2007-02-08 Thread Keith Hatton
Hi Hans, Can you rewrite your query so that it will produce output like PropertyName=388291 0 rows affected (e.g. you might write SELECT 'PropertyName=' || (your original column) FROM ...) Then you can write that output to a file and use to read it into a property (the "0 rows affected" line

Using SQL query result as a property, how?

2007-02-08 Thread Hans Schwaebli
I have a SQL query which returns one result like 388291. I want to use that result as a property. How can this be done in Ant? In a script language like Python (haha) this is no problem. But how to solve it with Ant? If I use the SQL-Task I only can write the result to disk. It

RE: Good editor for Ant scripts?

2007-02-08 Thread Burgess, Benjamin
In JEdit, it is specifically the XML Plugin that provides build.xml completion. I submitted a patch to them in the beginning of the year that updates the ant support of that plugin by using a custom ant task based on AntStructure. If you build your own XML Plugin from source, using this new task,