Getting ant to run all junit tests in a jar file

2010-05-19 Thread Søren Krogh Neigaard
Hi I have a jar file with some compiled *.class junit tests in it, and I would like to get ant to execute all these tests. How do I do this? I am following this tutorial: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html, however this tutorial runs *.java files. I have tried to modif

how to ensure that paths are carried through when using nested ANT scripts

2010-05-19 Thread kim1
Hi there. I have an interesting situation with an ant script I am working on. There are 3 scripts in total: (1) Main File Copying script (2) Error message script and now I have been given a requirement to put a wrapper script (3) around the existing Main File Copying script. I have numbered them

encoding problem with tokens (on Linux)

2010-05-19 Thread Brian C. Hill
I am having a weird problem with the encoding during token replacement (ant code below). Details: CentOS 5, SunOS 5, Darwin 9 // ant 1.6/1.7 // java 1.3/1.5/1.6 I have a simple token file with a simple variable ('A') and a single Chinese character (广 or cat -v: M-eM-9M-?). The template is j

Re: Ant telnet task fails to login to a few unix boxes

2010-05-19 Thread Antoine Levy-Lambert
I suggest using ssh instead of telnet. Regards, Antoine Original-Nachricht > Datum: Wed, 19 May 2010 04:56:32 -0700 (PDT) > Von: Nabble_fan > An: user@ant.apache.org > Betreff: Ant telnet task fails to login to a few unix boxes > > I am running a simple Ant telnet code snippe

Re: Java system property

2010-05-19 Thread Antoine Levy-Lambert
Hello Juergen, here is what you can do : - use the ANT_OPTS environment variable to set the system property before you start ant, ie set ANT_OPTS="-Dfoo=bar" on Windows - create a custom task to set a system property in a running VM, (I thought we even had that in ant but I might have dreamt, I

Re: uploading ant with ivy to nexus central repository

2010-05-19 Thread Antoine Levy-Lambert
Thanks Maarten, I will try this, Antoine Original-Nachricht > Datum: Tue, 18 May 2010 14:51:13 -0700 (PDT) > Von: Maarten Coene > An: ivy-u...@ant.apache.org > Betreff: Re: uploading ant with ivy to nexus central repository > First of all, I've never published something to Nex

Re: How to echo the empty directories of a fileset ?

2010-05-19 Thread Bruno Medeiros
On Mon, May 17, 2010 at 4:06 PM, Matt Benson wrote: > > On May 15, 2010, at 4:30 AM, Bruno Medeiros wrote: > >> On Thu, May 13, 2010 at 7:14 PM, Matt Benson wrote: >>> >>> On May 13, 2010, at 12:48 PM, Bruno Medeiros wrote: >>> Hello. If I do something like this:            

Java system property

2010-05-19 Thread Knuplesch, Juergen
Hello, I am using my self written Ant tasks and want to set a Java system property for this task. Is there a way to pass on Java system properties from the ANT to the task? I guess I have to add a certain attribute to my task an do it there... Greetings Juergen

Ant telnet task fails to login to a few unix boxes

2010-05-19 Thread Nabble_fan
I am running a simple Ant telnet code snippet to login to a unix box. y /home/${username} The above code does not work for the box with the details given below. In a unix box which displays the following messages while logging in, I am not quite sure whether this code is standard