You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by veeseekay <ve...@gmail.com> on 2009/02/23 11:31:39 UTC

How to : add pre-build/post build tasks?

Folks,

I have a requirement to set up continumm for my project.
However its bit complicated because there are scripts/prop files that needs
to be changed each time before the build can begin. Its a completely
mavenised project.

the typical flow would be :

1) source code check out
2) change properties, etc files in the code.(first task)
3) build
4) copy all the jars to a deployable location(another task here)
5) run junit tests.

basically, I need to be able to provide pre build and post build tasks in
the form of shell scripts.

any idea on how this can be achieved?

thanks
~v
-- 
View this message in context: http://www.nabble.com/How-to-%3A-add-pre-build-post-build-tasks--tp22158970p22158970.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: How to : add pre-build/post build tasks?

Posted by Denis Schettl <de...@hzd.hessen.de>.

veeseekay wrote:
> 
> 1) source code check out
> 2) change properties, etc files in the code.(first task)
> 3) build
> 4) copy all the jars to a deployable location(another task here)
> 5) run junit tests.
> 

Hi,
change your maven project in using profiles. There you define different
properites for development and e.g. continuum. Then you change the
source-code (property-files, file-content). Test different versions with
"-Pxxx" with xxx for the profile-name and check the results.
THEN definie in Continuum the build with parameter "-Pxxx" for Continuum ...

So long ....
Denis
-- 
View this message in context: http://www.nabble.com/How-to-%3A-add-pre-build-post-build-tasks--tp22158970p22160540.html
Sent from the Continuum - Users mailing list archive at Nabble.com.