You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Martin Jaeger <mj...@netcetera.ch> on 2003/08/26 14:17:05 UTC
CVS tag in a maven goal
Hi together
I want to build my project in this manner:
1) Clean checkout from CVS
2) Start something like maven makeMyCoolApp
3) Receive my wonderful application somewhere
the first job of the makeMyCoolApp goal is to tag the checked out
version.
I tried it with this goal
<goal name="vega:tagAll">
<u:tokenize var="tokenizedSCM" delim=":">
${pom.repository.connection}
</u:tokenize>
<cvs cvsroot="${tokenizedSCM[2]}"
package="${tokenizedSCM[3]}"
command="tag maventest5"/>
</goal>
It would work, but the CVS task from ant is run in the wrong directory.
(should be /projects/ but is /projects/MyProject)
How could I change the working directory for the cvs call?
Thanks
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: CVS tag in a maven goal
Posted by Martin Jaeger <mj...@netcetera.ch>.
Hi
I found the solution myself:
Simply add the dest attribute to the cvs task:
<goal name="vega:tagAll">
<u:tokenize var="tokenizedSCM" delim=":">
${pom.repository.connection}</u:tokenize>
<cvs cvsroot="${tokenizedSCM[2]}"
dest="/home/mjaeger/maventest/"
package="${tokenizedSCM[3]}"
command="tag maventest5"/>
</goal>
Okay, I know these directory stuff should be managed in variables ;)
Bye
Martin
On Tue, 26 Aug 2003, Martin Jaeger wrote:
> From: Martin Jaeger <mj...@netcetera.ch>
> To: users@maven.apache.org
> Subject: CVS tag in a maven goal
> Date: Tue, 26 Aug 2003 14:17:05 +0200 (MEST)
>
> Hi together
>
> I want to build my project in this manner:
> 1) Clean checkout from CVS
> 2) Start something like maven makeMyCoolApp
> 3) Receive my wonderful application somewhere
>
> the first job of the makeMyCoolApp goal is to tag the checked out
> version.
>
> I tried it with this goal
> <goal name="vega:tagAll">
> <u:tokenize var="tokenizedSCM" delim=":">
> ${pom.repository.connection}
> </u:tokenize>
> <cvs cvsroot="${tokenizedSCM[2]}"
> package="${tokenizedSCM[3]}"
> command="tag maventest5"/>
> </goal>
>
> It would work, but the CVS task from ant is run in the wrong directory.
> (should be /projects/ but is /projects/MyProject)
>
>
> How could I change the working directory for the cvs call?
>
>
> Thanks
> Martin
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org