AW: Conditionally executing a script in profile

2014-07-24 Thread Bernd Eckenfels
There are two typical things done - you either use two profiles or you use a plugin which supports a skip property. other ways are hard to understand (like adding a property to the include pattern to make it not find the resource) and should be avoided. i dont know if your particular

Re: AW: Conditionally executing a script in profile

2014-07-24 Thread hanuman
thanks very much(martin and brend) for your prompt replies . i.e.., can I conditionally invoke a profile within the other profile? or create a two profiles and run a separate command for each of them? ex: mvn -Pcreate-profile1 -e(to execute script1 and script2

Re: AW: Conditionally executing a script in profile

2014-07-24 Thread Martin Todorov
You cannot conditionally trigger one profile from within the other. You will need to have two separate ones. On Thu, Jul 24, 2014 at 6:17 PM, hanuman hanumannallap...@gmail.com wrote: thanks very much(martin and brend) for your prompt replies . i.e.., can I conditionally invoke a profile

Re: AW: Conditionally executing a script in profile

2014-07-24 Thread Ron Wheeler
http://books.sonatype.com/mvnref-book/reference/profiles-sect-activation.html#profiles-sect-activation-config suggests that you might be able to split your task into 2 sections. Put the first 2 sql scripts in a profile that is always activated and put the 3rd one into a profile that is only