Re: Ant loop

2008-05-21 Thread David Weintraub
Sounds like what you REALLY want to do is the task. This allows you to specify multiple tasks that can take place at the same time. The task will wait for each to complete before continuing. There's no need for a flag or a loop.

Re: AW: antrc & ant.conf files

2008-05-21 Thread David Weintraub
The file used in Windows is ant.bat. I don't have a copy of ant.bat, but I don't believe you can "source" DOS batch files as you can "source" Unix shell scripts. Sourcing means including one shell script into another and that's what happens when you see: . somefile.sh in a shell script. You'd nee

Ant loop

2008-05-21 Thread I am Who i am
Hi All, Is there a way to loop the ant executing on time basis, eg. Lets say i'm doing db and code deployment in parallel, but i want to wait for both to be completed before restarting servers for code deployment. so i thought i would create a flag at the end of db deployment, then at the end of

Need help calling one build file from another

2008-05-21 Thread Bryan Richardson
Hello all, I'm having trouble calling one build file from another. I'm using Eclipse, and I have two projects: Foo Bar Each project has a build.xml file, and the Bar project depends on a jar file generated by the Foo project. The following is the build.xml file for project Foo: Build fil

Re: AW: Checking for build.properties and properties upon initialization

2008-05-21 Thread Gilbert Rebhan
Dimitris Mouchritsas schrieb: What I'd like to accomplish is checking if build.properties exists (which loadproperties ensures) and then check to see if a set of properties is set. If a property is missing I'd like to display a message with the name of the property missing. What are your thoug

RE: Ant on AIX using SCP to transfer files with ssh2 keys

2008-05-21 Thread Anderson, Rob (Global Trade)
You do not need a known_hosts file since you have set trust="true". You will need to generate a key pair on the machine running ant. You may need to convert the private key to openssh format. Use the private key file in the ant build file... keyfile = "path/to/key/file" ... Then you need to copy t

Re: AW: antrc & ant.conf files

2008-05-21 Thread David J. B. Hollis
Hi, David Many thanks for the info! Is it possible to write these files for Windows & *nix? Thanks, David It appears that the $HOME/.ant/ant.conf and $HOME/.antrc files are just two different ways to do the same thing. $HOME/.ant/ant.conf is executed firsrt, so if something is defined in bot

Re: AW: Checking for build.properties and properties upon initialization

2008-05-21 Thread Dimitris Mouchritsas
Knuplesch, Juergen wrote: Use the task from antcontrib, which makes things easier. Hmm, ok I've made it work But what I really want to know is: How can I check if a set of properties exists? My thoughts were to load a sample properties file like: but I can't get to comparing th

Re: AW: AW: generate file list with parameterized regexp

2008-05-21 Thread msorens
My humblest apologies--I did not state my problem clearly. I want to find a set of files whose contents (not the file name) includes a string based on the name of the file containing it. That is, for each file path/xxx.yyy, I want to know if the file contains a string like this: "See doc page at

AW: Checking for build.properties and properties upon initialization

2008-05-21 Thread Knuplesch, Juergen
Use the task from antcontrib, which makes things easier. -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-299 Geschäftsführer: Uwe Se

SSH, Publish, Mode, and the bleeding edge..

2008-05-21 Thread astrien
To fix some of the problems in IVY with resolution of transitive dependencies, we built the Ivy library from the current trunk (r658272) and installed it into our build system. The good new is this fixed A LOT of problems with resolving dependencies. The bad news is this broke publish whe

Re: Defining ant target to run junit tests using dbunit

2008-05-21 Thread Carlos Alonso
Well, let's go step by step over the classpath definitions that you can find in the example I attached a few mails ago. The first classpath definition is required to tell the task where to find the implementation of the mysql driver (as far as I know, you did that successfully because the oracl

Re: Checking for build.properties and properties upon initialization

2008-05-21 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Hi everyone. I'm trying to create a sample project to test if the build.properties file exists and if the required properties are set upon initialization. But I'm not quite sure if I use correctly the condition task. This is what I've come up with right now:

Re: Defining ant target to run junit tests using dbunit

2008-05-21 Thread tmni
I thought I had included the junit.jar in the classpath, but maybe it's defined improperly. I didn't see it in your sample, where do you define that part of the classpath? I think I'm getting confused about the different places the classpaths are defined, and how to list multiple files/directori

Checking for build.properties and properties upon initialization

2008-05-21 Thread Dimitris Mouchritsas
Hi everyone. I'm trying to create a sample project to test if the build.properties file exists and if the required properties are set upon initialization. But I'm not quite sure if I use correctly the condition task. This is what I've come up with right now:

Re: Defining ant target to run junit tests using dbunit

2008-05-21 Thread Carlos Alonso
Have you included the java junit.jar library into the classpath provided for the junit task? The TestListener class is actually included in that .jar file. Regards. Carlos tmni escribió: I appreciate both attempts to help. I had already viewed that other web page and tried to follow it. It do