AFAIK, Ant doesn't supply default values. The default value are supplied
by Java, and the value is whatever version it is.
I think you should first go back to the beginning and confirm your
suspicions that you are creating 1.5 byte code with a 1.6 JDK.
Run a javap command against one of the clas
Hi Irfan,
You need a manifest file with a main class attribute.
A quick googling of 'jar main-class' brings back a wealth of links to
check out. Here's one:
http://java.sun.com/developer/Books/javaprogramming/JAR/basics/run.html
Thanks,
Kevin
From: [EMAIL PR
to be specified using the -classpath attribute on
command line .. There is no other way ?
Dominique : App1.jar is included in root of Application.jar so it is
physical file itself in the Application.jar ?
Regards,
Ravi
On Thu, May 22, 2008 at 9:20 PM, Toomey, Kevin H (ATS, IT)
<[EMAIL PROTECTED]> wro
Hi Ravi,
I'm assuming the exception is for a class in the App1.jar file. That's
because (unfortunately) jar files can't read jar files contained within
them. You need to place App1.jar on the file system and include it in
your command to your executable jar file.
Ex. java -classpath App1.jar -j
ame ?
Thanks,
Sumit
-Original Message-
From: Toomey, Kevin H (ATS, IT) [mailto:[EMAIL PROTECTED]
Sent: Monday, April 07, 2008 8:38 AM
To: Ant Users List
Subject: RE: Suppress javac warning
Hi Sumit,
Maybe I'm misunderstanding your question, but if you take a look in the
manual you'
Hi Sumit,
Maybe I'm misunderstanding your question, but if you take a look in the
manual you'll see the javac task has attributes (nowarn, deprecation)
that you can set to true/false to control whether you see those
messages.
Thanks,
Kevin
From: [EMAIL PROTECT
I'm writing a web application for among things, managing the building and
deploying of applications, and I'm using Ant (1.7.0) as the engine for those
pieces. The basic flow is:
Project p = new Project();
p.init();
p.setUserProperty("ant.file", "common.xml")
ProjectHelper2 ph = new ProjectHelper
Can you give an example of how the first script is calling the second? Are you
using , or , or , or something else?
-Original Message-
From: jpyork [mailto:[EMAIL PROTECTED]
Sent: Monday, January 21, 2008 11:58 AM
To: user@ant.apache.org
Subject: Halt Ant script question
I am running 2
: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 16, 2008 10:51 AM
To: Ant Users List
Subject: Re: Redirecting compile errors
Toomey, Kevin H (ATS, IT) wrote:
> It looks like support for JSR199 (java compiler API) would give me what I'm
> looking for, but I couldn
hanks,
Kevin
-Original Message-
From: James Abley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 15, 2008 5:06 PM
To: Ant Users List
Subject: Re: Redirecting compile errors
On 10/01/2008, Toomey, Kevin H (ATS, IT) <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using a Java c
Juergen
Your problem appears similar to something I ran across a while back. After
doing some digging I did find the cause but the details are escaping me for the
moment. I believe you're correct that it's a missing jar file. In any event,
since the messages I was sending were plain text, addin
Hi,
I'm using a Java class to execute an Ant project, and am unable to direct
compile errors to the log file used by my BuildLogger.
Here's an abbreviated version of my code:
Project p = new Project();
p.init();
p.setUserProperty("ant.file", "common.xml") //more on this later
DefaultLogger logg
widgets\MyApp\IterativeBuild\jar:file:\C:\SDF_Factory\lib\sdfant.jar!\config\int\SDFAntCommon.xml
Are the ":"s and "!" valid for the path you are trying to use?
"Toomey, Kevin H (ATS, IT)" <[EMAIL PROTECTED]> wrote: I use Ant as the
workhorse of a web applicati
I use Ant as the workhorse of a web application used across our enterprise for
all manner of software construction tasks for ~100 applications. I have a class
(AntTask) which gets instantiated for each request (build, deployment, test,
etc.). The class creates an org.apache.ant.Project, sets it
14 matches
Mail list logo