RE: Implementing a loop in ANT

2006-06-08 Thread dbrosius
ant-contrib.sourceforge.net has some tasks to do this. -Original Message- From: "Guru Balse" <[EMAIL PROTECTED]> Sent: Wed, June 7, 2006 2:17 pm To: "Ant Users List" Subject: Implementing a loop in ANT I am sure this question has been asked before, and I could not see any reasonable a

UNSUBSCRIBE ME PLEASE

2006-06-08 Thread jason suplizio
I've unsubscribed to this list a dozen time. SOMEONE PLEASE get me off of this. From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" Subject: RE: ANT's Scp fails without a passphase Date: Thu, 8 Jun 2006 10:51:25 -0700 You cannot specify a r

Re: Implementing a loop in ANT

2006-06-08 Thread Guru Balse
Thanks to Dominique Devienne, Peter Reilly, Ninju Bohra, Scot P. Floess, Ben Stringer, and Steve Lughran for giving me such good ideas on achieving the loop functionality.I will get back to individuals if I need further help. The Ant Users List rocks! -

Re: Re: Methods inside Java ant task

2006-06-08 Thread Antoine Levy-Lambert
> Original-Nachricht > Datum: Thu, 8 Jun 2006 13:14:21 -0400 > Von: 1800 tbsfunny <[EMAIL PROTECTED]> > An: Ant Users List > Betreff: Re: Methods inside Java ant task > > Thanks Antonie. > > I created a wrapper class. > > public class TestSingletonInitializer > { > public

RE: calling maven2 files from ant - any suggestions?

2006-06-08 Thread EJ Ciramella
Any suggestions on this folks? I'm completely wedged... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 11:31 AM To: Ant Users List Subject: RE: calling maven2 files from ant I'm trying with the task, but I keep getting this: Execute:Jav

Re: File Sets Based on File Attributes

2006-06-08 Thread Jeffrey E Care
It's not that Ant doesn't support this - it's that the JDK does not provide a way to query or access file attributes. The short answer is that if you want to do this you'll need to write a custom task the uses JNI or execs a native executable to get this information. JEC __

File Sets Based on File Attributes

2006-06-08 Thread RWADAMS1
Has anyone know how (short of writing a custom task or selector) to create a file set based on the files' attribute flags? Specifically, I'd like to create a set of files that have the Windows "archive" bit set. I saw the Ant Attrib task, but it appears to be write only. I'm looking for a way to pu

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
That is what I thought. I could not see a way to get it to work. Thanks for all of your help. Eric -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 1:51 PM To: Ant Users List Subject: RE: ANT's Scp fails without a passphase

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Anderson, Rob (Global Trade)
You cannot specify a remote fileset. Filesets can only be used to specify local files. -Rob A > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 08, 2006 10:24 AM > To: Ant Users List > Subject: RE: ANT's Scp fails without a passphase > > That does

Re: macrodef and uri

2006-06-08 Thread Scot P. Floess
OK, someone feel free to kick me and call me a newbie! I found my problem... I didn't define the namespace in the Regardless...disregard! Scot P. Floess wrote: I am trying to find some examples using a uri on macrodef... My assumption was, if I used a uri, I could use that to prefix using t

macrodef and uri

2006-06-08 Thread Scot P. Floess
I am trying to find some examples using a uri on macrodef... My assumption was, if I used a uri, I could use that to prefix using the macrodef itself... For instance: ... ... But that does not seem to work (as in I get an error)... I found a link regarding this as being a bug but could

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
That doesn't seem to work, but I can get it to work by passing a password on the command line so I can get the scp to pull a file, but what I really want to do is pull a bunch of remote files using a fileset to a local directory and the parameters that I specify is very confussing from the document

Re: Methods inside Java ant task

2006-06-08 Thread 1800 tbsfunny
Thanks Antonie. I created a wrapper class. public class TestSingletonInitializer { public static void main(String[] args) { TestSingleton.initialize(); } } This still doesnt run very well. But when I use my initialize method inside of the junit tests. ex. TestSingleton.initial

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Anderson, Rob (Global Trade)
You have not specified a knownhosts file. Either specify a knownhosts file or trust="true". -Rob A > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 08, 2006 10:07 AM > To: Ant Users List > Subject: RE: ANT's Scp fails without a passphase > > Tried

Re: Bug(?) with and attribute forkmode="perBatch" with nested - ant 1.6.5

2006-06-08 Thread Antoine Levy-Lambert
Hello Tariq, Try to download the sources of ant from subversion and build it. Maybe this is fixed in the head revision. see this http://issues.apache.org/bugzilla/show_bug.cgi?id=37426 Regards, Antoine > Original-Nachricht > Datum: Thu, 8 Jun 2006 17:53:26 +0100 > Von: "Master

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
Tried that and a bogus passphase and I still get BUILD FAILED /llbean/tools/ant/ecomm/build.xml:11: com.jcraft.jsch.JSchException: Auth cancel Eric -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 12:57 PM To: Ant Us

Re: Methods inside Java ant task

2006-06-08 Thread Antoine Levy-Lambert
Hello, you need to write a main method which calls the method you want to run. May be add a main method to util.runtime.TestSingleton. The only method which can be invoked by is static void main (String [] args). Regards, Antoine > Original-Nachricht > Datum: Thu, 8 Jun 2006

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Anderson, Rob (Global Trade)
Specify an empty passphrase. -Rob A > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 08, 2006 9:53 AM > To: Ant Users List > Subject: ANT's Scp fails without a passphase > > I can't seem to run ant's scp without a passphase even though > the key t

Methods inside Java ant task

2006-06-08 Thread 1800 tbsfunny
Hi Ant gurus, I am trying to write an Ant task that looks something like that - This fails on me because we cannot run methods directly. Any suggesstions?

ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
I can't seem to run ant's scp without a passphase even though the key that I generated and have distributed to the remote machine was generated without a passphase. Any idea how I can get ant's scp to work without specifying a passphase? Eric

Bug(?) with and attribute forkmode="perBatch" with nested - ant 1.6.5

2006-06-08 Thread Master, Tariq \(Abbeywood\)
My junit task is to run a batch test on all test classes under a test dir. It all works fine if forkmode="perTest" (default). However, if forkmode="perBatch" or forkmode="once", then only one test in the whole batch file list will be run. Interesting. --

RE: calling maven2 files from ant

2006-06-08 Thread EJ Ciramella
I'm trying with the task, but I keep getting this: Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments: '-classpath' 'E:\buildtools\maven-2.0.3\core\boot\classworlds-1.1.jar;E:\buildtools\maven-2.0.3\bin\m2.conf' 'org.codehaus.classworlds

Re: Print exact version of jvm (java -version)

2006-06-08 Thread Steve Loughran
Mikael Petterson (KI/EAB) wrote: Since I am using cross compilation I don't get the correct java version. With 'java -version' I get the java version that ant is started with ( jdk1.4.2) and not the version I use to crosscompile with ,1.3.1_11. (a) no, there is nothing in javac or it would be

RE: Print exact version of jvm (java -version)

2006-06-08 Thread Mikael Petterson \(KI/EAB\)
Since I am using cross compilation I don't get the correct java version. With 'java -version' I get the java version that ant is started with ( jdk1.4.2) and not the version I use to crosscompile with ,1.3.1_11. Cheers, //mikael -Original Message- From: Scot P. Floess [mailto:[EMAIL PRO

Re: Print exact version of jvm (java -version)

2006-06-08 Thread Hakan Koseoglu
On 6/8/06, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: How can I print what compiler is used ( exact version like 'java -version') when compiling? Probably the easiest way is creating a new task stuffed with all sorts of information you want to log and calling it as a task: The followi

Re: Print exact version of jvm (java -version)

2006-06-08 Thread Scot P. Floess
Mikael: Yes that's correct. I wasn't sure and ran "javac -version " which worked. But then realized my JAVA_HOME is using JDK 1.5. Regardless, calling out in this fashion is probably not a good solution... Now that I think about it, one can use ${java.version} as java.version is a System p

RE: Print exact version of jvm (java -version)

2006-06-08 Thread Mikael Petterson \(KI/EAB\)
I guess javac -version is specific to jdk 1.5 since jdk 1.4.1 gives the following out put For javac -version: javac: invalid flag: -version Usage: javac where possible options include: -gGenerate all debugging info -g:none Generate no debugging info

Re: Implementing ant task which extends ExecTask

2006-06-08 Thread Scot P. Floess
What do you mean by "parses them?" Sorry, I am not following what functionality you desire... exquisitus wrote: Hello I am trying to implement an ant task, which founds in a directory some files, parses them and pass this converted Strings to the ExexTask as arguments. So for me it's not

Re: Print exact version of jvm (java -version)

2006-06-08 Thread Scot P. Floess
For versions of JDK prior to 1.5... I just executed javac -version using JDK 1.5... Mikael Petterson (KI/EAB) wrote: By the way there is no javac -version :-) but java -version. Cheers, //mikael -Original Message- From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] Sent: de

Re: Implementing a loop in ANT

2006-06-08 Thread Scot P. Floess
Ben: Wow...thats sorta neat ;) I like what you did here with build.number - cool :) Ben Stringer wrote: On Wed, 2006-06-07 at 11:17 -0700, Guru Balse wrote: I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a l

Re: Implementing a loop in ANT

2006-06-08 Thread Scot P. Floess
Guru: Ah, I see your point and what you wish to do... Hmmm - have you considered doing your own macro def to accomplish this? I wasn't aware of the task - I appreciate you pointing it out. This functionality sorta inspires me, so I think I am going to investigate writing my own macrodef t

Re: Implementing a loop in ANT

2006-06-08 Thread Steve Loughran
Dominique Devienne wrote: Ant-Contrib's accepts any type which exposes an iterator() oh, you have just given me an idea for a devious little java1.5 class. something that implements Iterable, for use in the fancy for loops, but which reflects onto a class passed in and calls the iterator() m

Re: Multiple directories

2006-06-08 Thread Ben Stringer
On Thu, 2006-06-08 at 09:02 +0100, David Bates wrote: > I have the following target: > > > > > > > > > > > > > > > > > > > > > > > > > > I run this prior to doing a deployment to ensure we have a backup of > what was on the server i

Re: Problems Compiling Using Ant

2006-06-08 Thread Petar Tahchiev
On 08/06/06, Mary M <[EMAIL PROTECTED]> wrote: Dear All, When I ran the ant command, I got the error below - -- compile: [javac] compling 1 source file to ...\WEB-INF\classes

re: Problems Compiling Using Ant

2006-06-08 Thread Mary M
Dear All, When I ran the ant command, I got the error below - -- compile: [javac] compling 1 source file to ...\WEB-INF\classes [javac] MyBean.java:5: cannot access java.lang.O

Re: Implementing a loop in ANT

2006-06-08 Thread Ben Stringer
On Wed, 2006-06-07 at 11:17 -0700, Guru Balse wrote: > I am sure this question has been asked before, and I could not see any > reasonable answer in the archives. How can I implement a loop in ANT > without using scripts? For example, if I want to call a certain target > N times, how can I do

Re: Print exact version of jvm (java -version)

2006-06-08 Thread Petar Tahchiev
On 08/06/06, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: If I use javac -version where do I tie that into my xml file? With an execute task? Cheers, //mikael -Original Message- From: Petar Tahchiev [mailto:[EMAIL PROTECTED] Sent: den 8 juni 2006 10:00 To: Ant Users List Subjec

Re: Implementing a loop in ANT

2006-06-08 Thread Peter Reilly
Here is a example (beanshell rocks!): import java.util.Iterator; public class Loop implements Iterator { private int begin = 0; private int end = 10; private int curr = 0; public void setBegin(int b) { begin = b;

RE: Print exact version of jvm (java -version)

2006-06-08 Thread Mikael Petterson \(KI/EAB\)
By the way there is no javac -version :-) but java -version. Cheers, //mikael -Original Message- From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] Sent: den 8 juni 2006 10:02 To: Ant Users List Subject: RE: Print exact version of jvm (java -version) I wonder if there is an att

RE: Print exact version of jvm (java -version)

2006-06-08 Thread Mikael Petterson \(KI/EAB\)
If I use javac -version where do I tie that into my xml file? With an execute task? Cheers, //mikael -Original Message- From: Petar Tahchiev [mailto:[EMAIL PROTECTED] Sent: den 8 juni 2006 10:00 To: Ant Users List Subject: Re: Print exact version of jvm (java -version) On 08/06/06, Mi

RE: Print exact version of jvm (java -version)

2006-06-08 Thread Mikael Petterson \(KI/EAB\)
I wonder if there is an attribute to the javac task. Cheers, //mikael -Original Message- From: Petar Tahchiev [mailto:[EMAIL PROTECTED] Sent: den 8 juni 2006 10:00 To: Ant Users List Subject: Re: Print exact version of jvm (java -version) On 08/06/06, Mikael Petterson (KI/EAB) <[EMAIL

Multiple directories

2006-06-08 Thread David Bates
I have the following target: I run this prior to doing a deployment to ensure we have a backup of what was on the server in case everything goes wrong. The property "backup.backend.dir" comes from a property file. The problem i

Re: Print exact version of jvm (java -version)

2006-06-08 Thread Petar Tahchiev
On 08/06/06, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: How can I print what compiler is used ( exact version like 'java -version') when compiling? Cheers, //mikael BUILD.TARGET.VM=1.3 BUILD.BOOTCLASSPATH=/app/j2sdk/1.3.1_11/jre/lib/rt.jar

Print exact version of jvm (java -version)

2006-06-08 Thread Mikael Petterson \(KI/EAB\)
How can I print what compiler is used ( exact version like 'java -version') when compiling? Cheers, //mikael BUILD.TARGET.VM=1.3 BUILD.BOOTCLASSPATH=/app/j2sdk/1.3.1_11/jre/lib/rt.jar