Re: replace version info in maven2 pom with ant

2009-06-15 Thread jhoomsharabi
Why don't you use xmltask by oopsconsultancy http://www.oopsconsultancy.com/software/xmltask/ If you use xmltask your ant build.xml will look like this: Say your pom.xml looks like this: pom.xml --- http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

Re: Doing Ant builds

2009-06-15 Thread Michael Ludwig
Steve Loughran schrieb am 15.06.2009 um 12:40:59 (+0100): > Michael Ludwig wrote: > >Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100): > > > >>we do strive to be more declarative than fully procedural languages, > >>we don't have loops and so lack full turing-equivalence. There are > >>also

Re: Abort build with successful status

2009-06-15 Thread David Weintraub
Can you be more specific what you want to do? In what circumstance do you want to suddenly stop your build process, but consider it a success? Let's say you want to do "A", "B", and "C" as three tasks in a build, can't you simply make them targets with dependencies: "C" depends upon "B" and "B"

Re: ANT enhancements

2009-06-15 Thread David Weintraub
On Mon, Jun 15, 2009 at 1:44 PM, Shawn Castrianni < shawn.castria...@halliburton.com> wrote: > Yes, I use antcontrib extensively. All of this should be added to ANT > proper. > > However, this doesn't help with my item #2 since the only way to stop any > dependent targets it to put an if/else thr

Re: cannot find symbol

2009-06-15 Thread David Weintraub
It looks like they're defining a classpath called "classpath" (easy enough to remember). Have you looked at the Ant documentation at < http://ant.apache.org/manual/index.html>? The "path" called "classpath" is defined by all of the jarfiles located under the directory called ${lib_dir}. You will h

RE: ANT enhancements

2009-06-15 Thread Shawn Castrianni
Yes, I use antcontrib extensively. All of this should be added to ANT proper. However, this doesn't help with my item #2 since the only way to stop any dependent targets it to put an if/else throughout all dependent targets. It would be much more efficient to do something like my #2 request.

Re: ANT enhancements

2009-06-15 Thread David Weintraub
You might be interested in the AntContrib package. This package allows you to include full if/else logic inside a target without having to define a separate targets. The big disadvantage of AntContrib is that you have to install it in addi

Re: cannot find symbol

2009-06-15 Thread Hungry Snail
Hi David, Many thanks for the reply. I am using a script that someone sent me, this is the first time I have ever attempted to compile anything :). This is what is in the build.xml by looking at that I am guessing that the class path isnt

Re: cannot find symbol

2009-06-15 Thread David Weintraub
This isn't an Ant error as much as a "javac" command error. What you're being told is that a particular program is trying to resolve a symbol, but can't find the reference to that symbol. For example, these particular classes are defined in a jarfile called something like org.eclipse.swt.._.jar whi

RE: Abort build with successful status

2009-06-15 Thread Shawn Castrianni
I think as mentioned, that this approach would solve the ANT return code, but would still print out BUILD FAILED. Poking around the source code of ANT, (I love open source). I found a perfect solution by writing my own task. See below. It uses the fireBuildFinished method from the Project.

replace version info in maven2 pom with ant

2009-06-15 Thread Saberex
Hi to all, I´ m trying to filter/replace a maven2 pom with ant. So long not the biggest problem. One is my need to replace the property. So far just a small problem. I only have to replace the version which is inside the declaration. Seems no

RE: Generics and compilation problems

2009-06-15 Thread Martin Gainty
the answer to the question was ? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede u

Re: Generics and compilation problems

2009-06-15 Thread Lorenzo Carnevale
Thank you Gilbert,, you were most useful! - Original Message - From: "Rebhan, Gilbert" To: "'Ant Users List'" Sent: Monday, June 15, 2009 3:53 PM Subject: RE: Generics and compilation problems - To unsubscribe, e-ma

oddity

2009-06-15 Thread Rebhan, Gilbert
Hi, found another oddity after upgrading to Ant 1.7.1, regarding the handling of properties and xmlproperties. ${ant.version} $${xmlkey} == ${xmlkey} $${txtkey} == ${txtkey} xmlkey set and != null xmlkey n

AW: ****SPAM**** cannot find symbol

2009-06-15 Thread Knuplesch, Juergen
Obviously you dont have some necessary jar files on your compile classpath. package org.eclipse.swt.widgets You probably have this files on your Eclipse classpath / buildpath. You have to add allof them to your compile classpath (see reference of javac task) If you use Eclipse: You could also u

RE: Generics and compilation problems

2009-06-15 Thread Rebhan, Gilbert
Hi, -Original Message- From: Lorenzo Carnevale [mailto:lorenzo.carnev...@innovery.it] Sent: Monday, June 15, 2009 11:31 AM To: user@ant.apache.org Subject: Generics and compilation problems /* [...] What I want to ask is: is it possible to log somehow which "javac.exe" is actually bei

Re: Abort build with successful status

2009-06-15 Thread Matt Benson
Ah, I had already replied similarly before seeing your response, Steve. :) --- On Mon, 6/15/09, Steve Loughran wrote: > From: Steve Loughran > Subject: Re: Abort build with successful status > To: "Ant Users List" > Date: Monday, June 15, 2009, 6:43 AM > You could fail but set the exit code

Re: Abort build with successful status

2009-06-15 Thread Matt Benson
--- On Mon, 6/15/09, Shawn Castrianni wrote: > From: Shawn Castrianni > Subject: Abort build with successful status > To: "'user@ant.apache.org'" > Date: Monday, June 15, 2009, 12:18 AM > Is there a way to end a build > prematurely, successfully?  I can use , but > then the return value of a

cannot find symbol

2009-06-15 Thread Hungry Snail
Hi People. I am trying to compile some files with ant but am getting the following errors. [javac] D:\Stats\src\org\selectbf\gui\ConfigurationDialog.java:32: package org.eclipse.swt.widgets does not exist [javac] import org.eclipse.swt.widgets.Text; [javac]^ [

Re: Abort build with successful status

2009-06-15 Thread Steve Loughran
You could fail but set the exit code to 0. It will still print fail, though that is actually the job of the logger. There's no reason why a custom logger cant skip that fail message if the exit code is 0, or even print out whatever the exception message text is that raises. --

Re: Doing Ant builds

2009-06-15 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100): we do strive to be more declarative than fully procedural languages, we don't have loops and so lack full turing-equivalence. There are also limits to what you can do in java I think I can take this to mean "in An

Re: Generics and compilation problems

2009-06-15 Thread Avlesh Singh
Stack trace would help. Cheers Avlesh On Mon, Jun 15, 2009 at 3:01 PM, Lorenzo Carnevale < lorenzo.carnev...@innovery.it> wrote: > Hello everybody > I have to create a deployment script for a J2EE project. > I have a big problem because, during the "javac" task, the compiler gives > an error due

Generics and compilation problems

2009-06-15 Thread Lorenzo Carnevale
Hello everybody I have to create a deployment script for a J2EE project. I have a big problem because, during the "javac" task, the compiler gives an error due to the generics. (Eclipse is just fine compiling this code). We are talking of this: http://bugs.sun.com/view_bug.do?bug_id=6548436 I don'

AW: Abort build with successful status

2009-06-15 Thread Knuplesch, Juergen
Hello, I would use from antcontrib to achieve this. Sth.like -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] Gesendet: Montag, 15. Juni 2009 07:18 An: 'user@ant.apache.org' Betreff: Abort build with successful st