Re: Capture returned value from Java?

2006-09-28 Thread Robert Clark
On Thursday September 28, 2006 15:21, [EMAIL PROTECTED] wrote: > I'm confused about the "outputproperty" attribute of the > 1) What exactly does the "output of the command" mean? Whatever text is passed to System.out.print* (and System.err.print* usually, that's the "Unless the error stream is

Re: Capture returned value from Java?

2006-09-28 Thread Peter Reilly
It is standard out and standard error. I.e. When a program calls System.out.println("hello world"); or System.err.println("Opps, an error has occuried"); Peter On 9/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm confused about the "outputproperty" attribute of the task. The manual s

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

Capture returned value from Java?

2006-09-28 Thread cknell
I'm confused about the "outputproperty" attribute of the task. The manual says of it, "The name of a property in which the output of the command should be stored. Unless the error stream is redirected to a separate file or stream, this property will include the error output." My questions are:

Re: Preventing targets and macros being overridden

2006-09-28 Thread Dominique Devienne
Build file B imports build file A. Is there any way of preventing B from overriding certain macros and targets in A (like final in java)? No, not that I know of. You'd have to use XML entity includes for that, but that's less flexible than . I believe the FAQ has an example. --DD --

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%

Preventing targets and macros being overridden

2006-09-28 Thread Daffin, Miles \(IT\)
Dear All, Build file B imports build file A. Is there any way of preventing B from overriding certain macros and targets in A (like final in java)? Cordially, Miles -- Miles Daffin Morgan Stanley | EAI | MSDE 20 Cabot Square | Canary Wharf | London

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

2006-09-28 Thread cknell
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? -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Peter Reilly <[EMAI

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: Deploying to windows desktop

2006-09-28 Thread Scot P. Floess
Define "deploy" Do you mean copy the jar to the desktop? Angus Rose wrote: Hi All, I have a Java application deployed as a jar file that I wish to deploy to the users desktop in windows. Is this possible using Ant? Thanks in advance Angus -- Scot P. Floess 27 Lake Royale Louisburg

Deploying to windows desktop

2006-09-28 Thread Angus Rose
Hi All, I have a Java application deployed as a jar file that I wish to deploy to the users desktop in windows. Is this possible using Ant? Thanks in advance Angus -- View this message in context: http://www.nabble.com/Deploying-to-windows-desktop-tf2351455.html#a6548209 Sent from the A

Re: load model with Ant

2006-09-28 Thread Sara
Thank you very much, Jan. puellula - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, September 28, 2006 8:46 AM Subject: AW: load model with Ant I think you ask better on an Eclipse list (maybe GMT). Jan -Ursprüngliche Nachricht- Von: Sara [mailto:[EMAIL