Re: Passing system properties by default to java task

2017-08-18 Thread Stefan Bodewig
On 2017-08-17, Al Le wrote: > How can I achieve that some system properties are passed to the JVM > started by the 'java' task with the 'fork=true' option without > specifying them explicitly in the script? Setting clonevm to true will copy over all system prop

Passing system properties by default to java task

2017-08-17 Thread Al Le
Hello, I'd need an advice from the experts. In my ant script, I run a java program several times (up to 20) via the 'java' task. The program opens a connection to some server and uses the IAIK library for this (some Java security stuff). The server requires a certain level

Aw: Re: macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
Yes, it works! Thank you! > Gesendet: Montag, 29. Mai 2017 um 12:16 Uhr > Von: "Stefan Bodewig" > An: user@ant.apache.org > Betreff: Re: macrodef with parameters to pass to java task > > On 2017-05-29, Al Le wrote: > > > in my ant script I'd like to

AW: macrodef with parameters to pass to java task

2017-05-29 Thread jhm
he.org] > Gesendet: Montag, 29. Mai 2017 12:17 > An: user@ant.apache.org > Betreff: Re: macrodef with parameters to pass to java task > > On 2017-05-29, Al Le wrote: > > > in my ant script I'd like to define a macro (via macrodef) which > would call the 'java' task

Re: macrodef with parameters to pass to java task

2017-05-29 Thread Stefan Bodewig
On 2017-05-29, Al Le wrote: > in my ant script I'd like to define a macro (via macrodef) which would call > the 'java' task as a part of its body/implementation. > In the java task call in the macro, I want to just specify the main class > name and the classpath

Aw: macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
I'm sorry, the last closing tag in the example should of course be "". > Gesendet: Montag, 29. Mai 2017 um 12:04 Uhr > Von: "Al Le" > An: user@ant.apache.org > Betreff: macrodef with parameters to pass to java task > > Hello, > > in my an

macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
Hello, in my ant script I'd like to define a macro (via macrodef) which would call the 'java' task as a part of its body/implementation. In the java task call in the macro, I want to just specify the main class name and the classpath. The parameters (which are usually specified

AW: How to specify a password parameter in Java task

2017-02-27 Thread jhm
] > Gesendet: Samstag, 25. Februar 2017 15:34 > An: user@ant.apache.org > Betreff: Re: How to specify a password parameter in Java task > > On 2017-02-24, Al Le wrote: > > > When I run the script with the "-v" option that parameter is also > > written out to

Re: How to specify a password parameter in Java task

2017-02-25 Thread Stefan Bodewig
On 2017-02-24, Al Le wrote: > When I run the script with the "-v" option that parameter is also > written out to console, in clear text. Is it possible to tell ant to > not write out the value in clear text but rather to display it as, > say, '***'. > Something like No there is no such capabili

How to specify a password parameter in Java task

2017-02-24 Thread Al Le
Hello, in my ant script, I have a call to the "java" task. The parameters are specified via nested "arg" elements. One of the parameters is a password; its value is not stored in the script but is calculated by a javascript and saved to an ant property. When I run the

Java task - why is redirecting out stream to file not compatible with spawn

2013-05-15 Thread Grzegorz Słowikowski
Hi I'm starting a process by configuring and executing Ant Java task from my software, see: https://maven-play-plugin.googlecode.com/svn/mavensite/1.0.0-beta5/play-maven-plugin/xref/com/google/code/play/AbstractAntJavaBasedPlayMojo.html https://maven-play-plugin.googlecode.com/svn/mavensite/

Java task does not check assertions

2011-12-27 Thread Innerebner Markus
Hi, I am trying to enable assertions in my target that invokes the java task. The class AssertionTest works perfectly when compiling it from shell with javac (=source 1.6) and than running it with the command java -ea:AssertionTest AssertionTest but with Ant it looks like assertions are

java task reformats build.xml

2011-08-28 Thread Vaclav Barta
Hi, I'm writing a Web Service client (with Axis2 1.6.0), using Ant (1.8.1, packaged by Gentoo) and noticing that Ant not only reads build.xml, but writes it back, discarding my whitespace and triggering a warning from my editor. The behavior is 100% reproducible - build.xml with just a basic co

ant java task debugging problem

2011-07-11 Thread deeputs606
hi am using core ant java task to start application.It is not allowing for remote debugging.plz giv me some suggestions. code Reply With Quote -- View this message in context: http://ant.1045680.n5.nabble.com/ant-java-task-debugging-problem-tp4574739p4574739.html

Re: bug in ant 1.8.2: read on System.in hangs for forked java task

2011-03-23 Thread Ron Goldman
On Mar 23, 2011, at 1:57 PM, Nicolas Lalevée wrote: > I can reproduce it locally. Could you please fill a bugzilla bug report [1], > I'll look deeper into it. > > Nicolas Thanks. Bugzilla bug report 50960 has been filed. -- Ron -- --

Re: bug in ant 1.8.2: read on System.in hangs for forked java task

2011-03-23 Thread Nicolas Lalevée
Le 23 mars 2011 à 07:13, Ron Goldman a écrit : > I just started using Ant 1.8.2 as it was installed along with the latest Java > Update for the Mac (JavaForMacOSX10.6Update4). Projects that worked fine with > Ant 1.8.1 no longer work in 1.8.2. The problem seems to be that a Java tas

bug in ant 1.8.2: read on System.in hangs for forked java task

2011-03-22 Thread Ron Goldman
I just started using Ant 1.8.2 as it was installed along with the latest Java Update for the Mac (JavaForMacOSX10.6Update4). Projects that worked fine with Ant 1.8.1 no longer work in 1.8.2. The problem seems to be that a Java task that forks a jvm hangs when it tries to read from System.in

Re: Wierdness With Java Task

2009-10-02 Thread Eric Fetzer
Subject: Re: Wierdness With Java Task When I run this from the command line with the arguments shown: [java] Executing 'C:\IBM\WebSphere\AppServer\java\bin\java.exe' with arguments: [java] '-Xmx512m' [java] '-classpath' [java] 'C:\Ve

Re: Wierdness With Java Task

2009-10-02 Thread Eric Fetzer
  Now I'm even more confused...  Could there be some minor difference in Ant on the 2 machines that is interpreting the return differently? From: Eric Fetzer To: Ant U

Wierdness With Java Task

2009-10-02 Thread Eric Fetzer
I have a task that I'm using as such on two separate machines:                                                   Up until this point, the log shows identical (version of ant, version of

Re: Help needed regarding Java task

2009-08-27 Thread Gilbert Rebhan
Nadun Herath schrieb: ... > I have to run a Java program Called MiniJavaParser using different file > names as arguements several > times using Java Task. When it runs it gives the message > > "MiniJava program parsed successfully" or Encountered errors

Re: Help needed regarding Java task

2009-08-26 Thread Nadun Herath
iJava program parsed succesfully. Mind you there are number of Java tasks define in the build file. www.nadunh.blogspot.com From: Avlesh Singh To: Ant Users List Sent: Thursday, August 27, 2009 9:46:54 AM Subject: Re: Help needed regarding Java task As such

Re: Help needed regarding Java task

2009-08-26 Thread Avlesh Singh
___ > From: Avlesh Singh > To: Ant Users List > Sent: Thursday, August 27, 2009 9:25:21 AM > Subject: Re: Help needed regarding Java task > > See, if this usage helps: > > > > > > > > > > > > > > &

Re: Help needed regarding Java task

2009-08-26 Thread Nadun Herath
t.com From: Avlesh Singh To: Ant Users List Sent: Thursday, August 27, 2009 9:25:21 AM Subject: Re: Help needed regarding Java task See, if this usage helps: This is being used in the following manner - "ant search -Dkeyword=obama Cheers Avle

Re: Help needed regarding Java task

2009-08-26 Thread Avlesh Singh
l is like this. > > append="true"> > > > > > > > > > > > > > > >I have to run a Java program Called MiniJavaParser using different file > names as arguements several >times using Java

Help needed regarding Java task

2009-08-26 Thread Nadun Herath
I am new to apache Ant. Some part of my build.xml is like this. I have to run a Java program Called MiniJavaParser using different file names as arguements several times using Java Task. When it runs it gives

Re: AW: setup environment for java task

2009-03-26 Thread JohnBurrows
: 'Ant Users List' Betreff: RE: setup environment for java task Thanks for the suggestion, but here is my problem: 1. These batch files are used at runtime from an end user after installing the product with an installer. 2. Therefore, these batch files cannot be converted to ANT as

AW: setup environment for java task

2009-02-13 Thread Knuplesch, Juergen
7; Betreff: RE: setup environment for java task Thanks for the suggestion, but here is my problem: 1. These batch files are used at runtime from an end user after installing the product with an installer. 2. Therefore, these batch files cannot be converted to ANT as that would duplicate the

RE: setup environment for java task

2009-02-13 Thread Shawn Castrianni
AM To: Ant Users List Subject: AW: setup environment for java task Hello, I would translate the "bat" files to ANT-Tasks. This is a lot of work, but than your Antfile can decide what bat-jobs you run and when. Another way is to run the bat-files itself inside Ant using the exec-task,

AW: setup environment for java task

2009-02-13 Thread Knuplesch, Juergen
on: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] Gesendet: Freitag, 13. Februar 2009 08:27 An: 'Ant Users List' Betreff: setup environment for java task Let's say I have a series of setupEnv.bat files in my source repository that I need to execute as part of setting up my runti

setup environment for java task

2009-02-12 Thread Shawn Castrianni
Let's say I have a series of setupEnv.bat files in my source repository that I need to execute as part of setting up my runtime environment before executing my java code with the java task. I don't see an elegant way of doing this. I could execute these bat files as part of my

SubAnt BaseDir Woes With Java Task

2008-08-17 Thread Francisco Tolmasky
I am having issues with the basedir not being correct in SubAnt again. This time it's because it seems that the java task does not seem to respect the basedir. I have the following structure: My-Project/ build.xml Tools/ Tool1/ build.xml

AW: Current dir of ant-Build / Java-Task

2008-06-09 Thread Knuplesch, Juergen
Thanks. I could not see it -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Dominique Devienne [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Juni 2008 17:55 An: Ant Users List Betreff: Re: Current dir of ant-Build / Java-Task > Or do I have to change the working dir of

Re: Current dir of ant-Build / Java-Task

2008-06-06 Thread Dominique Devienne
> Or do I have to change the working dir of my build before I start this task? >From the doc for : dir The directory to invoke the VM in. (ignored if fork is disabled) - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Current dir of ant-Build / Java-Task

2008-06-06 Thread Knuplesch, Juergen
Hello, I want to start an application using the java-Task. My application writes files relative to the path I start it from. The application is starting fine and writing files relative to the path of my Batchfile, that starts the buildfile. How can I set the working dir for my java-task, so

Re: How to display the classpath that Ant is using to launch the java task?

2008-03-04 Thread Fred Janon
Hi Steve, Thanks for the explanation. It still would save some head scratching and $$$ (I spent almost a whole day trying to get my ant file running) if the fork option documentation was a bit expanded. Cheers, Fred --- Steve Loughran <[EMAIL PROTECTED]> wrote: > Fred Janon wrote: > > Hi Garre

Re: How to display the classpath that Ant is using to launch the java task?

2008-03-04 Thread Steve Loughran
Fred Janon wrote: Hi Garrett, Thanks for the answer, the TopAntTips got the ansmwer for my problem. Following up on my ant java target question, the "fork" option for those who use ant to run java apps seem to be important when specifying the classpath: with fork='true' in the java target, her

Re: How to display the classpath that Ant is using to launch the java task?

2008-03-03 Thread Fred Janon
; On Tue, Feb 26, 2008 at 6:38 PM, Fred Janon <[EMAIL PROTECTED]> wrote: > > Is there anything to display the classpath that Ant is using to > launch > > a java task besides the verbose and debug ant options that don't > > display it? > > > This might n

AW: How to display the classpath that Ant is using to launch the java task?

2008-02-27 Thread Rainer Noack
launch the java task? Is there anything to display the classpath that Ant is using to launch a java task besides the verbose and debug ant options that don't display it? How can I debug Ant file in general? I check the Ant manual left and right and didn't find anything. Th

Re: How to display the classpath that Ant is using to launch the java task?

2008-02-26 Thread Garrett Smith
On Tue, Feb 26, 2008 at 6:38 PM, Fred Janon <[EMAIL PROTECTED]> wrote: > Is there anything to display the classpath that Ant is using to launch > a java task besides the verbose and debug ant options that don't > display it? > This might not be the answer to what you

Re: How to display the classpath that Ant is using to launch the java task?

2008-02-26 Thread Ramu Sethu
to get printed > > > > > ${prop} > > (or) > > > ${java.class.path} > > > Let me know if i am wrong > > > On Wed, Feb 27, 2008 at 8:08 AM, Fred Janon <[EMAIL PROTECTED]> wrote: > > > Is there anything to display the classpath

Re: How to display the classpath that Ant is using to launch the java task?

2008-02-26 Thread Ramu Sethu
is using to launch > a java task besides the verbose and debug ant options that don't > display it? > > How can I debug Ant file in general? I check the Ant manual left and > right and didn't find anything. > > Thanks > > Fred > > > ---

AW: How to display the classpath that Ant is using to launch the java task?

2008-02-26 Thread Jan.Materne
gt; An: user@ant.apache.org > Betreff: How to display the classpath that Ant is using to > launch the java task? > > Is there anything to display the classpath that Ant is using to launch > a java task besides the verbose and debug ant options that don't > display it? > > How

How to display the classpath that Ant is using to launch the java task?

2008-02-26 Thread Fred Janon
Is there anything to display the classpath that Ant is using to launch a java task besides the verbose and debug ant options that don't display it? How can I debug Ant file in general? I check the Ant manual left and right and didn't find anything. Th

Re: java.lang.NoClassDefFoundError after adding element to a java task

2008-01-09 Thread Steve Loughran
Luciano Resende wrote: Thanks Martin, but all the necessary jars are in the CLASSPATH, and as mentioned on the e-mail, the program runs ok (no issues with noClassDefFoundError)... the noClassDefFoundError just start after adding the ... it seems that it loose the ability to read the classpath or

Re: java.lang.NoClassDefFoundError after adding element to a java task

2008-01-08 Thread Luciano Resende
Luciano Resende" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, January 08, 2008 2:11 PM > Subject: java.lang.NoClassDefFoundError after adding e

Re: java.lang.NoClassDefFoundError after adding element to a java task

2008-01-08 Thread Martin Gainty
assDefFoundError after adding element to a java task > I have the following ant task : > > > > > > > > > > > > > > When I ru

java.lang.NoClassDefFoundError after adding element to a java task

2008-01-08 Thread Luciano Resende
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.close(DefaultSCADomain.java:264) [java] at helloworld.BPELClient.main(BPELClient.java:39) After I fix the security problem by adding the permissions element to the java task I start getting

Re: Java task, classpath problem

2007-08-28 Thread Ognjen Blagojevic
Hi Peter, Thanks for your answer. And sorry for late reply, I was on vacation. Peter Reilly wrote: The task does strange things with the classloader. My advice would be to use fork="yes" unless there is a reason not to. Yes, I see. fork="yes" solved the problem. As regards the exception y

Re: Java task, classpath problem

2007-08-16 Thread Peter Reilly
sk: > > > > > > gives: > >java.lang.NoSuchMethodException: (...)ContextFactory.main > > Which is what I expected. ContextFactory is class in JRE's lib rt.jar, > java task can find it, but it does not have main method. However, this task: >

Java task, classpath problem

2007-08-10 Thread Ognjen Blagojevic
Hi, Can someone try to explain this behavior of java ant task: gives: java.lang.NoSuchMethodException: (...)ContextFactory.main Which is what I expected. ContextFactory is class in JRE's lib rt.jar, java task can find it, but it does not have main method. However, this

Warnings from Java task

2007-05-14 Thread Ro
I run a Java task from my ant script. That task does some various Logger.global.log(Level.INFO, "message") calls. The problem is that these are registered as warnings in my ant log. Is there something that can be done about this? I use Ant 1.7.0 and JDK 1.6 -- View this message

Re: Problems with calling an ant java task programatically

2007-04-13 Thread Ninju Bohra
't think you need to go through all the code you wrote (though it is wonderfully written) Good Luck Ninju - Original Message From: "Balasubramanian, Ravi Shankar" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Friday, April 13, 2007 3:21:43 AM Subject: Problems wi

Problems with calling an ant java task programatically

2007-04-13 Thread Balasubramanian, Ravi Shankar
Hi , I am using ant 1.6.5 and My ant script is as follows: " " I am trying to call this target programmatically from a java appli

java task and permissions in 1.7.0

2007-02-11 Thread Jing Xue
Hi, This task has been working fine until I recently upgraded to 1.7.0: In 1.7.0, I get the "exitVM disallowed" error. So I changed it to: and got: java.lang.SecurityException: Permission (java.util.PropertyPermission ant.

Re: java task question

2007-01-26 Thread Peter Reilly
essage as: Could not find jse.core.HelloWorld. Make sure you have it in your classpath I see that java task has a classpath attribute, but I am not sure how to use it. Please advice. Thanks. In your case you compile to the basedir, so the looks like this: Normally, one has a source dir

java task question

2007-01-26 Thread Leo
. Make sure you have it in your classpath I see that java task has a classpath attribute, but I am not sure how to use it. Please advice. Thanks. - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit.

Re: java task question for ant 1.6.5

2006-10-27 Thread Peter Reilly
On 10/27/06, Dominique Devienne <[EMAIL PROTECTED]> wrote: On 10/27/06, Jeff Holt <[EMAIL PROTECTED]> wrote: > The reason I don't want to use is that I have to qualify the > executable path. Otherwise, for some yet unknown reason, ant executes > /usr/bin/java rather than the one in the PATH. And

RE: java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
Yes, java.home works. I see that I am definitely not the first person to experience it. Thanks, Dom. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 4:15 PM To: Ant Users List Subject: Re: java task question for ant 1.6.5 On 10/27/06

Re: java task question for ant 1.6.5

2006-10-27 Thread Dominique Devienne
On 10/27/06, Jeff Holt <[EMAIL PROTECTED]> wrote: The reason I don't want to use is that I have to qualify the executable path. Otherwise, for some yet unknown reason, ant executes /usr/bin/java rather than the one in the PATH. And, of course, /usr/bin/java, is not appropriate. Both and have

RE: java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
looked but didn't see where I had to change anything else. I just assumed jre is a built in property namespace. Bad assumption? -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 3:24 PM To: Ant Users List Subject: Re: java task questio

Re: java task question for ant 1.6.5

2006-10-27 Thread Dominique Devienne
On 10/27/06, Jeff Holt <[EMAIL PROTECTED]> wrote: To make my build script a bit less susceptible to environmental errors, I'd like to rewrite the following task: Simply replace ${env.JAVA_HOME} by ${jre.home}, and it will use the same JRE or JDK used by Ant itself. is better than + in this c

RE: java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
Ah, yes. I forgot all about that one. It probably will do the trick. Thanks, Matt. -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 2:57 PM To: Ant Users List Subject: Re: java task question for ant 1.6.5 You might look at using ant-contrib&#

Re: java task question for ant 1.6.5

2006-10-27 Thread Matt Benson
You might look at using ant-contrib's task with . -Matt --- Jeff Holt <[EMAIL PROTECTED]> wrote: > To make my build script a bit less susceptible to > environmental errors, > I'd like to rewrite the following task: > > > > > > > > > > > >

java task question for ant 1.6.5

2006-10-27 Thread Jeff Holt
To make my build script a bit less susceptible to environmental errors, I'd like to rewrite the following task: Here is something that probably conveys what I want:

Re: How to get debug info on java task failure

2006-09-28 Thread Robert Clark
On Thursday September 28, 2006 13:31, [EMAIL PROTECTED] wrote: > The %ERRORLEVEL% value is 0, so I'm really no closer to > understanding why the execution of the class works at the command > line and fails in Ant. > > Is there a way to get more information from Ant? You can use the -v/-verbose or

re :How to get debug info on java task failure]

2006-09-28 Thread cknell
I found a typo was causing my error. Thanks. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: [EMAIL PROTECTED] Sent: Thu, 28 Sep 2006 13:31:16 -0400 To: user@ant.apache.org Subject: RE: Re: How to get debug info on java task failure The %ERRORLEVEL

RE: Re: How to get debug info on java task failure

2006-09-28 Thread cknell
eilly <[EMAIL PROTECTED]> Sent: Thu, 28 Sep 2006 18:17:13 +0100 To: "Ant Users List" Subject: Re: How to get debug info on java task failure "Java returned: 1" means that the java program called System.exit(1) to finish its execution. This return code is not shown

Re: How to get debug info on java task failure

2006-09-28 Thread Peter Reilly
"Java returned: 1" means that the java program called System.exit(1) to finish its execution. This return code is not shown when you call from the command line, it is placed in the env variable %ERRORLEVEL% on dos, so after calling the java program call echo %ERRORLEVEL% Peter On 9/28/06, [EMAIL

How to get debug info on java task failure

2006-09-28 Thread cknell
I am executing a single task. I have the failonerror attribute set to "true". It fails, but I don't have any information to work with. This is the target. SQL string is ${sql.string} The output I get is: "BUILD FAILED H:\dev\java\buildj.xml:46

Re: Java task classpath problem

2006-08-01 Thread Andrew Goktepe
2ee.rmi.RMIInitialContextFactory as the initail context >> factory. >> I have done everything obvious to solve this problem but to no avail. Has >> anybody had any similar experiences and if so, how did they resolve them? >> >> Thanks >> >> Angus >>

Re: Java task classpath problem

2006-08-01 Thread Angus Rose
t; factory. >> I have done everything obvious to solve this problem but to no avail. Has >> anybody had any similar experiences and if so, how did they resolve them? >> >> Thanks >> >> Angus >> -- &

Re: Java task classpath problem

2006-07-31 Thread Andrew Goktepe
nce of oracle.j2ee.rmi.RMIInitialContextFactory as the initail context factory. I have done everything obvious to solve this problem but to no avail. Has anybody had any similar experiences and if so, how did they resolve them? Thanks Angus -- View this message in context: http://www.nabble.com/Java-task-classpath-p

Java task classpath problem

2006-07-31 Thread Angus Rose
://www.nabble.com/Java-task-classpath-problem-tf2026624.html#a5573041 Sent from the Ant - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: classpath problem using the java task

2006-07-05 Thread James Fuller
to access env vars (http://ant.apache.org/manual/index.html) and then echo out. though its best to leave nothing to chance and completely control either via a batch script that runs Ant or definition in ant build file things like PATH, etc... gl, Jim Fuller ---

Re: classpath problem using the java task

2006-07-05 Thread James Abley
HE ANT CODE. NOTHING FOLLOWS; PLEASE EMAIL ME IF YOU WOULD > LIKE TO HELP AND HAVE SOME IDEA. I CANNOT LIST EVERYTHING I HAVE > TRIED, BUT BELIEVE ME I HAVE TRIED EVERYTHING I COULD FIND WHILE > RESEARCHING THE PROBLEM ON THE INTERNET. I EVEN WOULD BE GREATFUL > FOR SOME IDEA HOW TO

Re: classpath problem using the java task

2006-07-04 Thread Jeffrey E Care
VERYTHING I COULD FIND WHILE > RESEARCHING THE PROBLEM ON THE INTERNET. I EVEN WOULD BE GREATFUL > FOR SOME IDEA HOW TO PRINT THE CLASSPATH THE java TASK IS USING. I > FOUND MANY WAYS TO DO THIS, BUT NONE, NONE OF THEM WORKED FOR ME. > THIS HAS BEEN A REALLY UGLY DAY, AND ON TOP OF

Re: classpath problem using the java task

2006-07-04 Thread Dominique Devienne
E INTERNET. I EVEN WOULD BE GREATFUL FOR SOME IDEA HOW TO PRINT THE CLASSPATH THE java TASK IS USING. I FOUND MANY WAYS TO DO THIS, BUT NONE, NONE OF THEM WORKED FOR ME. THIS HAS BEEN A REALLY UGLY DAY, AND ON TOP OF IT I READ SOME REALLY DISTURBING REPLIES FROM THE DEVELOPER'S AT ANT, RE

classpath problem using the java task

2006-07-04 Thread Douglas Dunn
CLASSPATH THE java TASK IS USING. I FOUND MANY WAYS TO DO THIS, BUT NONE, NONE OF THEM WORKED FOR ME. THIS HAS BEEN A REALLY UGLY DAY, AND ON TOP OF IT I READ SOME REALLY DISTURBING REPLIES FROM THE DEVELOPER'S AT ANT, REPLIES TO OTHER PEOPLE HAVING SIMILAR PROBLEMS. MANY TH

Re: Logging output from the Java task?

2006-06-28 Thread Steve Loughran
Vincent Massol wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi 27 juin 2006 18:27 To: user@ant.apache.org Subject: AW: Logging output from the Java task? If you dont set these properties, logs should go to Ant's log - means to Ca

Re: Logging output from the Java task?

2006-06-28 Thread Steve Loughran
Vincent Massol wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi 27 juin 2006 17:52 To: user@ant.apache.org Subject: AW: Logging output from the Java task? Do you get the output of when using "Ant alone"? No. When using there&#x

RE: Logging output from the Java task?

2006-06-27 Thread Vincent Massol
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: mardi 27 juin 2006 18:27 > To: user@ant.apache.org > Subject: AW: Logging output from the Java task? > > >> If you dont set these properties, logs should go to Ant'

AW: Logging output from the Java task?

2006-06-27 Thread Jan.Materne
>> If you dont set these properties, logs should go to Ant's >log - means >> to Cargo's > >Rah! So simple... Over all those years I've never realized >that not specifying an output would make Ant log the process's >output... Dunno why I didn't think about it... > >Thanks a lot Jan. I'm real

RE: Logging output from the Java task?

2006-06-27 Thread Vincent Massol
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: mardi 27 juin 2006 17:52 > To: user@ant.apache.org > Subject: AW: Logging output from the Java task? > > >> Do you get the output of when using "Ant alone"? >

AW: Logging output from the Java task?

2006-06-27 Thread Jan.Materne
>> Do you get the output of when using "Ant alone"? > >No. When using there's an "output" attribute to collect >the process's output but it points to a file. AFAIK there's no >way to have the task's output logged when using Ant >1.5.x but that's what I would like to confirm... :-) If you don

RE: Logging output from the Java task?

2006-06-27 Thread Vincent Massol
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: mardi 27 juin 2006 17:39 > To: user@ant.apache.org > Subject: AW: Logging output from the Java task? > > >Thanks Jan. Actually you're right! We're already using a build &g

AW: Logging output from the Java task?

2006-06-27 Thread Jan.Materne
>Thanks Jan. Actually you're right! We're already using a build >listener to catch Ant's logs so I guess simply using a >redirector with the alwayslog attribute set to true should do >the trick. Is that correct? Do you get the output of when using "Ant alone"? Then you should get the output vi

RE: Logging output from the Java task?

2006-06-27 Thread Vincent Massol
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: mardi 27 juin 2006 17:21 > To: user@ant.apache.org > Subject: AW: Logging output from the Java task? > > I think upgrading Ant is a good idea ;-) > Ant 1.6.5 is current, 1.7 is on th

AW: Logging output from the Java task?

2006-06-27 Thread Jan.Materne
mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 27. Juni 2006 17:08 >An: user@ant.apache.org >Betreff: Logging output from the Java task? > >Hi, > >I'm using Ant programatically in Cargo (to start J2EE >containers) and I'd like to be able to log Ant's Java task

Logging output from the Java task?

2006-06-27 Thread Vincent Massol
Hi, I'm using Ant programatically in Cargo (to start J2EE containers) and I'd like to be able to log Ant's Java task output to Cargo's logging system. We're currently using Ant 1.5.x but I've seen that there's now an I/O redirector in Ant 1.6.2 which ma

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread cknell
Thanks to all who replied. That's the answer I needed. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Grant Lewis <[EMAIL PROTECTED]> Sent: Fri, 12 May 2006 21:01:35 -0400 To: Ant Users List Subject: Re: Iterate over "filelist&quo

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Grant Lewis
I generally define macrodef under project but it's also legal under target. Where you put the definition defines the scope of the macro. If you so choose, you can define macros in a project by themselves and use the import task to pull them into the current build file. Import and macros are a power

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread Varadarajan, Srivathsan
RE: Re: Iterate over "filelist" with java task? > > Thanks, I am using 1.6.5. I'v checked the docs but there's something > missing. What is/are the parent element/s of the and the > resulting task? > -- > Charles Knell > [EMAIL PROTECTED] - email > > &

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Scot P. Floess
Once you define the macrodef...you can use it like any other target... For instance - if you define a macrodef named foo, you can use it like This of course is dependent upon attributes (if you define them) and default values... [EMAIL PROTECTED] wrote: Thank you for your reply, but it

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread cknell
ECTED] - email -Original Message- From: Grant Lewis <[EMAIL PROTECTED]> Sent: Fri, 12 May 2006 19:16:38 -0400 To: Ant Users List Subject: Re: Iterate over "filelist" with java task? A macrodef can pretty much include any other ant task between its sequent

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Grant Lewis
A macrodef can pretty much include any other ant task between its sequential tag. Below is an example from the docs showing the macro definition and a call to the macro. Pay close attention to the tag and replace it with a tag named and you get the general idea of a macro. When the macro is exec

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread cknell
ay 2006 15:35:37 -0400 To: Ant Users List Subject: Re: Iterate over "filelist" with java task? If you are using 1.6.x, define a macro using macrodef and call the macro with each file. I used a similar approach to automate xdoclet tasks for differe

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Grant Lewis
If you are using 1.6.x, define a macro using macrodef and call the macro with each file. I used a similar approach to automate xdoclet tasks for different groups of files. Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Scot P. Floess
that requires me to do post-processing after an XSLT transformation on a list of files. I accomplish this (for a single file) by defining a "target" for each post-processing step. Each target contains a "java" task that performs the processing. Will it be necessary for me to c

Iterate over "filelist" with java task?

2006-05-12 Thread cknell
I have a project that requires me to do post-processing after an XSLT transformation on a list of files. I accomplish this (for a single file) by defining a "target" for each post-processing step. Each target contains a "java" task that performs the processing. Will it be

  1   2   >