Tips & Tricks: Simpler way to use profiles with Pax Runner


In the upcoming Pax Runner (1.2.0) I added an alternative way to specify which profiles should be provisioned by Pax Runner. Till now the (only) way to specify a profile was to use “–profiles” option. Not bad, but from now on, there is a better way. Lets see an example where I want to use Pax Web- latest version, Spring Framework – version 2.5.6 and Pax Logging – any version between 1.0 and 2.0 exclusive:

Using “–profiles” you will have to do: pax-run --profiles=web,spring/2.5.6,log/[1.0,2.0)
While using the new method you will do: pax-run web spring/2.5.6 log/[1.0,2.0)

So, you just have to specify them in the command line, separated by space, like any other provisioning url.


About this entry