Re: attainGoal in Ant

2006-07-24 Thread dcabasson


Michael Mekaail wrote:
> 
> Hey,
> How do I call an ant/Java plugin from within an ant/Java plugin.
> Eg. in Maven 1 i used to do
> 
> 
> What's the equivalent in Maven 2.0.4
> 

Not sure what you are trying to do...
To execute a ant target in your build use the maven-antrun-plugin:
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html

Denis
-- 
View this message in context: 
http://www.nabble.com/attainGoal-in-Ant-tf1990293.html#a5463091
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: attainGoal,what is it?

2006-01-18 Thread Zheng Wen Zhe
Thanks Arnaud.Very helpful.

Regards,
Jason

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Sent: 18 January 2006 15:54
To: Maven Users List
Subject: Re: attainGoal,what is it?


It's not really documented in maven :
http://maven.apache.org/maven-1.x/tags.html#werkz:mavenAttainGoal

This tag is used to call another goal.

In your case, if you don't do anything else that to use several attainGoal
you could do :


Arnaud

On 1/18/06, Zheng Wen Zhe <[EMAIL PROTECTED]> wrote:
>
> Hi,
> what does this attainGoal do within the code below?
>
> 
> 
> 
> 
>   
> 
> Is there any article I could refer to?
>
> Thanks,
> Jason
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: attainGoal,what is it?

2006-01-18 Thread Arnaud HERITIER
It's not really documented in maven :
http://maven.apache.org/maven-1.x/tags.html#werkz:mavenAttainGoal

This tag is used to call another goal.

In your case, if you don't do anything else that to use several attainGoal
you could do :


Arnaud

On 1/18/06, Zheng Wen Zhe <[EMAIL PROTECTED]> wrote:
>
> Hi,
> what does this attainGoal do within the code below?
>
> 
> 
> 
> 
>   
> 
> Is there any article I could refer to?
>
> Thanks,
> Jason
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: attainGoal

2004-04-15 Thread Sri Sankaran
It's how you call another goal from another goal (or pre/postGoal).

For example


  
 

Here if you run "maven myPlugin:myGoal", the java:compile goal will get executed.

If you have (in your maven.xml)


  


The xdoclet:webdoclet goal will be executed before java:compile is run.

Hope that helps

Sri

-Original Message-
From: Raphael Philipe Mendes da Silva [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 8:56 AM
To: Maven Users List (E-mail)
Subject: attainGoal

What do exactly the attainGoal tag??

I can't found some documentation about it. Someone can help me???


Raphael Philipe Mendes da Silva
DSB - Diretoria de Soluções em Billing
CPqD Telecom & IT Solutions
Tel.: +55 19 3705-6957
www.cpqd.com.br
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AttainGoal question

2003-12-11 Thread Jefferson K. French
Is this also the reason the console plugin fails when it tries to run
a multiproject:goal a second time?

On Thu, 11 Dec 2003, at 09:28:28 [GMT +1100] Peter Donald wrote:

> On Thu, 11 Dec 2003 03:10 am, Lester Ward wrote:
>> Can anyone tell me what the difference is between running a goal from the
>> command line vs. having that goal called by an  tag? Over the
>> last few days, I've seen three problems where I could run a goal just fine
>> from a command line, but if the same goal was invoked from an 
>> tag, various strange errors occur.
>>
>> Makes it very hard to track down the problem. I assume there is some sort
>> of differnce between the way the goal is invoked that is the culprit.

> AtainGoal starts a new session so if you do an attainGoal on a goal already 
> completed it will be reprocessed BUT pregoals and postgoals will not be 
> re-executed. Major PITA :)


-- 
mailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AttainGoal question

2003-12-10 Thread Peter Donald
On Thu, 11 Dec 2003 03:10 am, Lester Ward wrote:
> Can anyone tell me what the difference is between running a goal from the
> command line vs. having that goal called by an  tag? Over the
> last few days, I've seen three problems where I could run a goal just fine
> from a command line, but if the same goal was invoked from an 
> tag, various strange errors occur.
>
> Makes it very hard to track down the problem. I assume there is some sort
> of differnce between the way the goal is invoked that is the culprit.

AtainGoal starts a new session so if you do an attainGoal on a goal already 
completed it will be reprocessed BUT pregoals and postgoals will not be 
re-executed. Major PITA :)

-- 
Cheers,

Peter Donald
"Never interrupt your enemy when he is making 
a mistake." - Napoleon Bonaparte (1769-1821) 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AttainGoal question

2003-12-10 Thread Jason van Zyl
On Wed, 2003-12-10 at 11:56, Lester Ward wrote:
> > Currently  doesn't share the same session in 
> > which the rest of the goals are attained.
> 
> How might this session be different? Does it use a different classpath? Load
> plugins differently?

It's the werkz session which keeps track of which goals have been
attainted and those that have not. I would have to take a look if there
is anything different other than that.

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AttainGoal question

2003-12-10 Thread Lester Ward
> Currently  doesn't share the same session in 
> which the rest of the goals are attained.

How might this session be different? Does it use a different classpath? Load
plugins differently?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AttainGoal question

2003-12-10 Thread Jason van Zyl
On Wed, 2003-12-10 at 11:10, Lester Ward wrote:
> Can anyone tell me what the difference is between running a goal from the
> command line vs. having that goal called by an  tag? Over the
> last few days, I've seen three problems where I could run a goal just fine
> from a command line, but if the same goal was invoked from an 
> tag, various strange errors occur.

 creates a new werkz session which is mostly likely the
cause of the strange behaviour you are seeing.

> Makes it very hard to track down the problem. I assume there is some sort of
> differnce between the way the goal is invoked that is the culprit.

Currently  doesn't share the same session in which the rest
of the goals are attained.

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]