Hi,
I'm using ant to compile sources in java application.
Can I set some parameters to skip this?
[Error]: Note: Some input files use or override a deprecated API.
[Error]: Note: Recompile with -Xlint:deprecation for details.
[Error]: Note: Some input files use unchecked or unsafe operations.
[E
Thanks a lot.
-Original Message-
From: Keith Hatton [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 5:48 PM
To: Ant Users List
Subject: RE: Using Ant in Java
There is a createArg() method which sounds like what you want.
The manual included in the Ant download has API docs for
First of all I tried to find this method..
JavaTask is instance of org.apache.tools.ant.taskdefs.Java class.
This class doesn't have such a method.
Which class should I use?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 5:41 PM
To: u
Hi, everybody.
I'm using ant in java to run another java application.
Here is the example of code:
JavaTask runner = new JavaTask();
.
runner.setArgs("--xsdschemaroot=C:/aschemas --outputdir=C:/obj
--language=java --basepath=..");
runner.execute();
It says:
[java] The args attribut
Guys,
How can I get the result of execution?
For example, I have Java task.
runner.execute(); is void
If I set the following:
runner.setFailonerror(true);
Than I don't see the error output.
But I need both.
So, how can I know if application is failed?
Regards,
Denis.
Visit our website at
Thanks, will investigate it.
-Original Message-
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 1:38 PM
To: Ant Users List
Subject: Re: Using ANT from Java application
[EMAIL PROTECTED] wrote:
> Hi, all!
>
> I'm using ant tasks from my application:
>
> 1
Is there any working example of it?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 9:25 AM
To: user@ant.apache.org
Subject: AW: Using ant in java
You could implement a Redirector for catching the output into your GUI.
Jan
Hi, all!
I'm using ant tasks from my application:
1. Java task. It run's java application that generates java source file,
according to xsd files.
2. Javac task. It compiles generated source files.
3. Jar task. Packes the result.
The question is:
How can I catch up the output (including error s
Hello everybody!
I'm using ant in java to launch java application, to compile sources and
to pack the result in jar file.
How can I catch the result of launching java application, for example? I
need to show it on UI.
I have found setError, setOutput methods with the File parameter, but
I'm not s