Take a look at the scm plugin : 
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-585

Nicolas,





Martin Jaeger <[EMAIL PROTECTED]>
26/08/2003 14:50
Veuillez r�pondre � "Maven Users List"

 
        Pour :  [EMAIL PROTECTED]
        cc : 
        Objet : Re: CVS tag in a maven goal


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 <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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

Reply via email to