RE: javac source and target default values

2008-10-22 Thread Toomey, Kevin H (ATS, IT)
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

RE: unable to execute JAR file

2008-06-18 Thread Toomey, Kevin H (ATS, IT)
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

RE: Class-Path not recognised from MANIFEST.MF

2008-05-22 Thread Toomey, Kevin H (ATS, IT)
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

RE: Class-Path not recognised from MANIFEST.MF

2008-05-22 Thread Toomey, Kevin H (ATS, IT)
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

RE: Suppress javac warning

2008-04-07 Thread Toomey, Kevin H (ATS, IT)
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'

RE: Suppress javac warning

2008-04-07 Thread Toomey, Kevin H (ATS, IT)
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

Looking for help with context classloader

2008-01-23 Thread Toomey, Kevin H (ATS, IT)
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

RE: Halt Ant script question

2008-01-21 Thread Toomey, Kevin H (ATS, IT)
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

RE: Redirecting compile errors

2008-01-16 Thread Toomey, Kevin H (ATS, IT)
: 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

RE: Redirecting compile errors

2008-01-16 Thread Toomey, Kevin H (ATS, IT)
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

RE: Mail Task

2008-01-11 Thread Toomey, Kevin H (ATS, IT)
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

Redirecting compile errors

2008-01-10 Thread Toomey, Kevin H (ATS, IT)
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

RE: target unable to find buildfile

2007-12-28 Thread Toomey, Kevin H (ATS, IT)
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

target unable to find buildfile

2007-12-28 Thread Toomey, Kevin H (ATS, IT)
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