RE: Ant build that compiles and enhances in same build fails to find enhanceable classes

2010-02-01 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Stefan Bodewig [mailto:bode...@apache.org] > Sent: Monday, February 01, 2010 3:16 AM > To: user@ant.apache.org > Subject: Re: Ant build that compiles and enhances in same build fails > to find enhanceable classes > > On 2010-01-31, KARR

Ant build that compiles and enhances in same build fails to find enhanceable classes

2010-01-31 Thread KARR, DAVID (ATTCINW)
I don't know if this is an Ant-specific problem, or an issue with the OpenJPA PCEnhancerTask class. I have an Ant build script whose "build" target has "compile, enhance-classes" as an excerpt from its dependencies. The "compile" target writes classes to "build/classes", and "enhance-classes" ref

Best way to have script fail if not using new enough JDK?

2009-12-20 Thread KARR, DAVID (ATTCINW)
I need to have my Ant script abort if the current JDK version is older than the project needs (1.6). I noticed a "JavaVersionTask" sample at which would probably help, but I wonder if there's an easier way since that article was written (4 years ago). I can see the

Does the "sql" task not close its connection when done?

2009-12-16 Thread KARR, DAVID (ATTCINW)
I'm trying to build a test suite using an embedded Derby server. In my build.xml, I have a "sql" task that executes my "create table" sql, and then I run "junit" to run my tests that use the database. I'm finding that Derby is giving me an error while in the test class, saying that "Another insta

RE: How to copy jars of path variable to dir, excluding some jars?

2009-12-15 Thread KARR, DAVID (ATTCINW)
;*.jar" with excludes for the things I don't want there. It would have been slightly cleaner to start with the "build.classpath" list, but this will be fine. > On Dec 15, 2009, at 2:47 PM, KARR, DAVID (ATTCINW) wrote: > > > I have a path variable that I set in my b

RE: How to copy jars of path variable to dir, excluding some jars?

2009-12-15 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Scot P. Floess [mailto:sflo...@nc.rr.com] > Sent: Tuesday, December 15, 2009 1:15 PM > To: Ant Users List > Subject: Re: How to copy jars of path variable to dir, excluding some > jars? > > > On Tue, 15 Dec 2009, KARR, DAVID (ATTC

How to copy jars of path variable to dir, excluding some jars?

2009-12-15 Thread KARR, DAVID (ATTCINW)
I have a path variable that I set in my build script. I'm trying to assemble a deployment unit where I have to copy all the jars specified in that path variable into a directory, but excluding certain jars. I'm still trying to figure out how I copy the jars of a path var, I'm not even getting to

RE: How to print out resulting classpath from a classpath variable?

2009-12-11 Thread KARR, DAVID (ATTCINW)
e.xml" file, which is stored in one of the classpath entries. I might post a separate note on this issue. > > > > > > > > > -- > Jürgen Knuplesch > -Ursprüngliche Nachricht- > Von: KARR, DAVID (ATTCINW) [mailto:dk0.

How to print out resulting classpath from a classpath variable?

2009-12-11 Thread KARR, DAVID (ATTCINW)
I'm trying to debug a problem with an Ant script executing differently between the command line and Eclipse. It comes down to Eclipse not seeming to get the same classpath as on the command line. I define the classpath that a task (OpenJPA PCTaskEnhancer) needs with an embedded "classpath" elemen

RE: How to override targets specified in import file

2009-09-21 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: KARR, DAVID (ATTCINW) > > I suppose I could instead make the "stub" instead do real work and > assume that the sub-project has defined a "app-inf-jars" property (for > instance) and create the APP-INF/lib directory and

RE: How to override targets specified in import file

2009-09-21 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Martin Gainty [mailto:mgai...@hotmail.com] > Sent: Monday, September 21, 2009 1:23 PM > To: Ant Users List > Subject: RE: How to override targets specified in import file > > > weblogic does that does that for each ear in the build e.g. > > EAR1 > WAR > WE

How to override targets specified in import file

2009-09-21 Thread KARR, DAVID (ATTCINW)
I imagine by now I'm the umpteenth person to ask about something like this, but the search patterns to find this don't seem to be that simple. I'm working on a small project inside a large EAR. The small project imports the main project build file, which defines the important "create-ear" target.

Strategies for reusing targets that require paths

2009-07-28 Thread KARR, DAVID (ATTCINW)
If I have a number of projects with some similar build needs, it's reasonable to define reusable targets in a "commons" project build.xml file and import that file from each project's build.xml file. What are good strategies for reusing those targets effectively, when they certainly require numero