Hi Nick
I think the good issue for your problem is to launch a new maven
instance in the new directory.
<project
...
xmlns:m="maven"/>
<goal name="...>
<maven:maven
basedir="${your.new.dir}"
descriptor="${your.new.dir}/project.xml"
goals="YOUR_BATCH_GOAL"
ignoreFailures="true"
/>
</goal>
...
</project>
Emmanuel
-----Message d'origine-----
De: [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Date: 21/11/02
Objet: HELP: setting maven basedir
Hi,
I am trying to change the maven basedir from within a goal - but I cant
work out how to do it.
I want to do something like:
<goal name=batch>
<tmstamp/>
<attainGoal name="batch:createTimestampDir"/>
<!-- change the basedir to the newly created dir so that the rest of
the build continues there -->
< help ! >
<!-- so the rest of thes goals will execute in the new basedir -->
<attainGoal name="batch:getSrc"/>
<attainGoal name="batch:incrementBuildNumber"/>
<attainGoal name="dist:deploy"/>
<attainGoal name="site:deploy"/>
<!-- etc -->
</goal>
Thanks,
Nick
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
__________________________________________________
Modem offert : 150,92 euros rembours�s sur le Pack eXtense de Wanadoo !
Haut d�bit � partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
__________________________________________________
Modem offert : 150,92 euros rembours�s sur le Pack eXtense de Wanadoo !
Haut d�bit � partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>