Re: How do I write this preGoal?

2009-11-11 Thread Lukas Theussl
=jelly:ant preGoal name=javaapp:install ant:mkdir dir=/Users/dalvarado/source/youthful/service/target/classes / /preGoal /project Any ideas how to troubleshoot or write the correct pre-goal? Below is the project.properties file from the same directory

How do I write this preGoal?

2009-11-10 Thread laredotornado
=jelly:ant preGoal name=javaapp:install ant:mkdir dir=/Users/dalvarado/source/youthful/service/target/classes / /preGoal /project Any ideas how to troubleshoot or write the correct pre-goal? Below is the project.properties file from the same directory

Pregoal

2006-07-03 Thread Jeff Mutonho
Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042

Re: Pregoal

2006-07-03 Thread jerome lacoste
On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? You can probbaly use the antrun plugin to make the copy and attach the plugin's execution to the phase before the one that requires

Re: Pregoal

2006-07-03 Thread Jeff Mutonho
On 7/3/06, jerome lacoste [EMAIL PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? You can probbaly use the antrun plugin to make the copy and attach the plugin's

Re: Pregoal

2006-07-03 Thread jerome lacoste
On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: On 7/3/06, jerome lacoste [EMAIL PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? You can probbaly use

Re: Pregoal

2006-07-03 Thread Jeff Mutonho
On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: On 7/3/06, jerome lacoste [EMAIL PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? You can probbaly use

Re: Pregoal

2006-07-03 Thread jerome lacoste
in M1 , as a pregoal? You can probbaly use the antrun plugin to make the copy and attach the plugin's execution to the phase before the one that requires your file to be in the correct location. Jerome Thanks.Basically what I wish to do is to copy some spring xml config files

Re: Pregoal

2006-07-03 Thread Alexandre Poitras
PROTECTED] wrote: On 7/3/06, Jeff Mutonho [EMAIL PROTECTED] wrote: Is there an equivalence of doing a file copy from one location to another as one could do in M1 , as a pregoal? You can probbaly use the antrun plugin to make the copy and attach the plugin's execution

PreGoal ??

2006-01-19 Thread Zheng Wen Zhe
Hi, I have a pregoal set up among some other goals within my maven.xml file. Why this pregoal could run automatically without being called? Is this the nature of PreGoal? Regards, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: PreGoal ??

2006-01-19 Thread Henry Isidro
preGoal executes the scripts you specify before the goal named. For instance, preGoal name=java:compile ... /preGoal Anything between preGoal and /preGoal would execute first and then java:compile would be executed. Regards, Henry Zheng Wen Zhe wrote: Hi, I have a pregoal set up

one more question regarding PreGoal

2006-01-19 Thread Zheng Wen Zhe
Thanks Henry, But what about there are other goals reside in this maven.xml with Pregoal together? For instance, goal name=newVersion delete dir=${basedir}/target/classes/ attainGoal name=jar:install/ /goal *** preGoal name=java:compile cvs command=commit -m 'updated

using preGoal and postGoal in m2?

2005-10-18 Thread Brill Pappin
Sorry if this has been covered on the list before (a quick search didn't turn up anything useful). Since the maven.xml file is now gone, how to I set up pre/post goals in M2? They are one of the really good features of maven 1.x and I'll really miss them if I can't use them. - Brill Pappin

Re: using preGoal and postGoal in m2?

2005-10-18 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The general pattern we've adopted with Maven 2.0 is that of binding your custom behavior to the appropriate place in an absolute lifecycle, rather than relative to some other plugin's execution. The problem with specifying a pre/postGoal is that the

Re: using preGoal and postGoal in m2?

2005-10-18 Thread Brett Porter
Or, just point at the docs: http://maven.apache.org/maven2/lifecycle.html On 10/18/05, John Casey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The general pattern we've adopted with Maven 2.0 is that of binding your custom behavior to the appropriate place in an

Re: using preGoal and postGoal in m2?

2005-10-18 Thread Brill Pappin
I can't say that I've got all that far with m2 yet, however what they used to be good at was fixing behavior of a plugin that didn't quite do what it should/could or allow you to set up a set of goals to be run with one command ... now as a rule I think a plugin that doesn't do what it

Cannot execute the pregoal

2005-07-10 Thread Anthony Kong
Hi, all, In my project.xml, I have this pregoal definition: project !-- == Goals == -- preGoal name=java:compile attainGoal name=checkstyle:run / /preGoal

RE: Cannot execute the pregoal

2005-07-10 Thread Washusen, Dan
July 2005 12:29 PM To: users@maven.apache.org Subject: Cannot execute the pregoal Hi, all, In my project.xml, I have this pregoal definition: project !-- == Goals

preGoal called before several goals - possible and how?

2005-07-06 Thread Gisbert Amm
Hi Maveners, I need to call a preGoal in my maven.xml before two other goals. Is this possible? I tried whitespace and comma separated lists, like this preGoal name=war:init site:deploy ... preGoal name=war:init, site:deploy ... but both didn't work. As a workaround, I've put the piece

Re: preGoal called before several goals - possible and how?

2005-07-06 Thread Kenney Westerhof
On Wed, 6 Jul 2005, Gisbert Amm wrote: This isn't possible. Your dependency tree is somehow wrong. You can either: - find a common goal that both war:init and site:deploy depend on and preGoal that; - split your preGoal content into 2 parts, one for site:deploy and one for war:init (they seem

Re: preGoal called before several goals - possible and how?

2005-07-06 Thread Gisbert Amm
Kenney Westerhof wrote: On Wed, 6 Jul 2005, Gisbert Amm wrote: This isn't possible. Your dependency tree is somehow wrong. You can either: - find a common goal that both war:init and site:deploy depend on and preGoal that; - split your preGoal content into 2 parts, one for site:deploy and one

preGoal - how to stop the build ??

2005-05-05 Thread Mark D. Hansen
I have this: preGoal name=java:compile attainGoal name=goal1/ attainGoal name=goal2/ /preGoal If goal1 fails, the processing continues to try to run goal2. How do I make it stop if goal1 fails? Acually, I'd like the whole build to stop if any part of the preGoal fails. How do I do

Re: preGoal - how to stop the build ??

2005-05-05 Thread Brett Porter
What do you mean by fails? It certainly should stop dead if you hit ant:fail/ or an exception. - Brett On 5/5/05, Mark D. Hansen [EMAIL PROTECTED] wrote: I have this: preGoal name=java:compile attainGoal name=goal1/ attainGoal name=goal2/ /preGoal If goal1 fails, the processing

RE: preGoal - how to stop the build ??

2005-05-05 Thread Mark D. Hansen
: preGoal - how to stop the build ?? What do you mean by fails? It certainly should stop dead if you hit ant:fail/ or an exception. - Brett On 5/5/05, Mark D. Hansen [EMAIL PROTECTED] wrote: I have this: preGoal name=java:compile attainGoal name=goal1/ attainGoal name=goal2

Re: preGoal - how to stop the build ??

2005-05-05 Thread Jamie Bisotti
in a way that does not throw an exception. Sorry for the stupid question! -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, May 05, 2005 9:56 AM To: Maven Users List Subject: Re: preGoal - how to stop the build ?? What do you mean by fails

preGoal question

2005-04-14 Thread Mark D. Hansen
I'd like to associate some simple Ant directory cleanup with all of the testing goals. Is there a way to do that using preGoal without specifying all the test:* goals ?? For example, can I write something like this: preGoal name=test:* myAntTask ... /preGoal instead of these two

Re: preGoal question

2005-04-14 Thread Brett Porter
no, but you only need to pregoal a common denominator, like test:test-resources. - Brett On 4/15/05, Mark D. Hansen [EMAIL PROTECTED] wrote: I'd like to associate some simple Ant directory cleanup with all of the testing goals. Is there a way to do that using preGoal without specifying all

RE: preGoal question

2005-04-14 Thread Mark D. Hansen
thanks - good idea! is there a way to discover, in general, what the dependencies are among goals? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 11:59 AM To: Maven Users List Subject: Re: preGoal question no, but you only need

Re: preGoal question

2005-04-14 Thread Brett Porter
- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 11:59 AM To: Maven Users List Subject: Re: preGoal question no, but you only need to pregoal a common denominator, like test:test-resources. - Brett On 4/15/05, Mark D. Hansen [EMAIL PROTECTED

Way to prohibit goal execution in the according preGoal?

2005-03-10 Thread Martin Heitz
Hi, is there a way to prohibit the execution of a goal in the related preGoal? Background: In a multiproject:site call I can detect in the preGoal that some additional task which gets executed in our site will fail. Because the task has documentational character, it is enough to warn about

RE: Way to prohibit goal execution in the according preGoal?

2005-03-10 Thread Martin Heitz
10:25 AM To: Maven Users List Subject: Way to prohibit goal execution in the according preGoal? Hi, is there a way to prohibit the execution of a goal in the related preGoal? Background: In a multiproject:site call I can detect in the preGoal that some additional task which gets executed in our

maven:set doesn't seem to be exported in pregoal

2005-02-10 Thread Eric Black
Hi, Below is a pregoal code snippet that is supposed to set the maven.multiproject.includes property. When I run it, it echos the correct value but doesn't get passed to the multiproject plugin. If I set the property on the command line with the -D switch it works fine. Anyone have any idea what

Stop build on preGoal failure

2005-01-17 Thread baleineca
Hi, I would like to instruct maven to stop building if an ant:exec task fails inside a preGoal (preGoal name=native:compile). Any suggestion? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Stop build on preGoal failure

2005-01-17 Thread Brett Porter
ant:fail / ? On Mon, 17 Jan 2005 15:42:58 -0800, baleineca [EMAIL PROTECTED] wrote: Hi, I would like to instruct maven to stop building if an ant:exec task fails inside a preGoal (preGoal name=native:compile). Any suggestion? Thanks

Re: Stop build on preGoal failure

2005-01-17 Thread baleineca
Am I doing anyting wrong? This didn't work. Maven carries onto compile even when rc fails... Here is what I am doing: preGoal name=native:compile !-- This is win32 only artifact -- j:if test=${osname == 'win32'} !-- Run resource compiler -- ant:mkdir dir

Re: Stop build on preGoal failure

2005-01-17 Thread Brett Porter
? This didn't work. Maven carries onto compile even when rc fails... Here is what I am doing: preGoal name=native:compile !-- This is win32 only artifact -- j:if test=${osname == 'win32'} !-- Run resource compiler -- ant:mkdir dir=target/native

Re: Stop build on preGoal failure

2005-01-17 Thread baleineca
2005 15:51:07 -0800, baleineca [EMAIL PROTECTED] wrote: Am I doing anyting wrong? This didn't work. Maven carries onto compile even when rc fails... Here is what I am doing: preGoal name=native:compile !-- This is win32 only artifact -- j:if test=${osname == 'win32

preGoal not invoked

2004-04-13 Thread Sonnathi, Venkat
Hi, I have the following maven.xml: maven.xml project default=foobar-dist xmlns:m=jelly:maven xmlns:ant=jelly:ant xmlns:j=jelly:core goal name=foobar-dist attainGoal name=war:war / preGoal name=war:webapp ant:echoIn the preGoal

Re: preGoal not invoked

2004-04-13 Thread Craig S. Cottingham
/ preGoal name=war:webapp ant:echoIn the preGoal of war:init/ant:echo ant:available property=baseWebappSourceDir type=dir file=${gold.base.webapp.dir}/ j:if test=${baseWebappSourceDir == 'true'} ant:copy todir=${maven.war.webapp.dir

RE: preGoal not invoked

2004-04-13 Thread Sonnathi, Venkat
Thanks. --Venkat. -Original Message- From: Craig S. Cottingham [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:38 PM To: Maven Users List Subject: Re: preGoal not invoked On Tue, 2004-04-13 at 11:25, Sonnathi, Venkat wrote: I have the following maven.xml

preGoal, attainGoal question

2004-01-21 Thread mruff
attainGoal name=clean/ attainGoal name=site:generate/ /goal preGoal name=site:generate attainGoal name=scm:checkout-project/ /preGoal /project The problem now is the the scm:checkout-project is not exectued, and I do not know why. The project.xml and project.properties files

How can I tell if if a specific goal has been invoked when a preGoal/postGoal is called..

2003-11-04 Thread Eric Pugh
I have a postGoal to the clean that causes some of the properties used by the WAR plugin to be changed.. Which is fine when I invoke my code. However, I want to know whether to change the properties or not based on if a specific goal, war:war has been invoked or not.. So, if 'maven clean war' is

Re: preGoal before any goal

2003-10-31 Thread Dominik Roblek
I've thought it over and I saw I don't really need it in my project. However I see the need for it as it has been discussed in Overall preGoal in parent maven.xml? thread. --- Jason van Zyl [EMAIL PROTECTED] wrote: On Wed, 2003-10-29 at 16:11, Dominik Roblek wrote: Is it possible define a kind

RE: Overall preGoal in parent maven.xml?

2003-10-29 Thread Sean Timm
In the maven.xml in my child projects, whose project.xml extends a ${basedir}/../project.xml, I have the following lines: property environment=env/ util:properties file=../project.properties trim=true / util:properties file=../build.properties trim=true / This is immediately

preGoal before any goal

2003-10-29 Thread Dominik Roblek
Is it possible define a kind of preGoal action in maven.xml, which would be executed at the beginning before any other goal? Dominik __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears

Re: preGoal before any goal

2003-10-29 Thread Jason van Zyl
On Wed, 2003-10-29 at 16:11, Dominik Roblek wrote: Is it possible define a kind of preGoal action in maven.xml, which would be executed at the beginning before any other goal? What's your use case for that? It's not possible, but it's wouldn't be hard to add something like that to werkz I'm

Re: preGoal before any goal

2003-10-29 Thread dion
, Dominik Roblek wrote: Is it possible define a kind of preGoal action in maven.xml, which would be executed at the beginning before any other goal? What's your use case for that? It's not possible, but it's wouldn't be hard to add something like that to werkz I'm just wondering why you

Re: preGoal before any goal

2003-10-29 Thread Jason van Zyl
define a kind of preGoal action in maven.xml, which would be executed at the beginning before any other goal? What's your use case for that? It's not possible, but it's wouldn't be hard to add something like that to werkz I'm just wondering why you would want to do

Overall preGoal in parent maven.xml?

2003-10-28 Thread Sean Timm
in various preGoal tags. I tried to declare the properties outside of any preGoal to attempt to globally set some, but it didn't appear to work. I've been able to successfully do it in various specific preGoals, but I'd rather not have to update it every time a new goal comes along... Is there a goal

RE: Overall preGoal in parent maven.xml?

2003-10-28 Thread Brett Porter
[mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 11:43 AM To: [EMAIL PROTECTED] Subject: Overall preGoal in parent maven.xml? The current .properties file scheme doesn't work for project inheritance (since they don't get inherited, naturallly), so I was hoping to be able to set

RE: Overall preGoal in parent maven.xml?

2003-10-28 Thread Sean Timm
I haven't checked for a while, but I believe build:start still exists and is attained first. This didn't seem to work... However, if you put the code inside the parent maven.xml, outside of any goal definitions, it should be executed before any goals are attained. That seemed to hold

RE: Overall preGoal in parent maven.xml?

2003-10-28 Thread Brett Porter
2003 11:58 AM To: Maven Users List Subject: RE: Overall preGoal in parent maven.xml? I haven't checked for a while, but I believe build:start still exists and is attained first. This didn't seem to work... However, if you put the code inside the parent maven.xml, outside of any goal

Re: Overall preGoal in parent maven.xml?

2003-10-28 Thread khote
an environment variable, say MY_REPO_REMOTE, this value will be available as ${env.MY_REPO_REMOTE} - Original Message - From: Sean Timm [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 4:58 PM Subject: RE: Overall preGoal in parent maven.xml? I

Re: maven.test.dest property not set for test:test preGoal

2003-10-19 Thread dion
Jeffrey Bonevich [EMAIL PROTECTED] wrote on 19/10/2003 09:32:17 AM: Am I correct in thinking that the scope of individual plugin properties does not extend to preGoals and postGoals? Did some more testing (e.g. with the maven-jar-plugin and trying to get at 'maven.jar.excludes') and this

maven.test.dest property not set for test:test preGoal

2003-10-18 Thread Jeffrey Bonevich
Got a maven.xml file with the following: preGoal name=test:test echomaven.test.dest (before)= ${maven.test.dest}/echo attainGoal name=mevenide:prepare-fs/ /preGoal goal name=mevenide:prepare-fs echomaven.test.dest = ${maven.test.dest}/echo echomaven.build.dir

Re: maven.test.dest property not set for test:test preGoal

2003-10-18 Thread Jeffrey Bonevich
with the following: preGoal name=test:test echomaven.test.dest (before)= ${maven.test.dest}/echo attainGoal name=mevenide:prepare-fs/ /preGoal goal name=mevenide:prepare-fs echomaven.test.dest = ${maven.test.dest}/echo echomaven.build.dir = ${maven.build.dir}/echo copy

Stopping a goal in the pregoal

2003-08-22 Thread Neil Blue
Hello, We have a goal with a pregoal set. Sometimes it is the case that after a check faild in the pregoal we do not want to run the main goal. Is there a way to prevent the goal from running? Thanks Neil - To unsubscribe

Re: Stopping a goal in the pregoal

2003-08-22 Thread Nicolas . CHALUMEAU
Do a fail message=why I stop build/ in your pregoal in the case of an error. Nicolas Neil Blue [EMAIL PROTECTED] 22/08/2003 10:50 Veuillez répondre à Maven Users List Pour : Maven Users List [EMAIL PROTECTED] cc : Objet : Stopping a goal in the pregoal Hello

Re: Inheritance of preGoal to sub-subprojects

2003-08-14 Thread dion
subprojects. All project.xml files inherit from the top-level parent. The top level parent maven.xml file has in it the following pregoal: preGoal name=jar:jar attainGoal name=someotherplugin:goal/ /preGoal This pregoal gets called correctly for each immediate subproject

Re: multiproject: preGoal is not call

2003-08-14 Thread dion
} includes=**/${pattern}/**/project.xml excludes=project.xml goals=test:dist banner=Building ignoreFailures=true/ /goal and an pregoal of war:init preGoal name=war:init attainGoal name=subwebapp:get-webapp/ ... /preGoal In sub project, I

Re: Inheritance of preGoal to sub-subprojects

2003-08-14 Thread Brent Hale
have a directory structure which includes subprojects some of which have also have subprojects. All project.xml files inherit from the top-level parent. The top level parent maven.xml file has in it the following pregoal: preGoal name=jar:jar attainGoal name=someotherplugin:goal

Re: Inheritance of preGoal to sub-subprojects

2003-08-11 Thread Jason van Zyl
of which have also have subprojects. All project.xml files inherit from the top-level parent. The top level parent maven.xml file has in it the following pregoal: preGoal name=jar:jar attainGoal name=someotherplugin:goal/ /preGoal This pregoal gets called correctly for each

multiproject: preGoal is not call

2003-08-09 Thread Nicolas . CHALUMEAU
I define in the base project : goal name=test:dist-all maven:reactor basedir=${basedir} includes=**/${pattern}/**/project.xml excludes=project.xml goals=test:dist banner=Building ignoreFailures=true/ /goal and an pregoal of war:init

RE: Problem with preGoal

2003-06-25 Thread Neil Blue
Thanks, that worked in the end. But an interesting point is that we didn't have any other source to compile apart from that which was auto generated. So our POM source was set to ${basedir}/target/java. This meant that the maven.compile.src.set was not available in the java:compile preGoal

Problem with preGoal

2003-06-24 Thread Neil Blue
Using MAVEN_1_0_B9. I have a pre goal set up as follows: preGoal name=java:compile attainGoal name=generateSrc/ sleep seconds=10/ /preGoal where the goal generate source will generate source code and put it in the ${maven.src.dir}/java directory. On running 'maven java:compile

Re: Problem with preGoal

2003-06-24 Thread Alexey Demakov
- Original Message - From: Neil Blue [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 8:54 PM Subject: Problem with preGoal Using MAVEN_1_0_B9. I have a pre goal set up as follows: preGoal name=java:compile attainGoal name=generateSrc/ sleep