Composite provisioning - Advanced

Advanced usage

If the standard features of composite scanner are not enough here are some advanced things toy can do:

Using placeholders

If you are in need to use system properties in your provision specs the the composite files you can do so by using ${property.name}, where the property name is the name of the system property to be replaced as for example user.home. Here is an example of such a file:

scan-bundle:file:${user.home}/my-repository/foo.jar

in this example the ${user.home} will be replaced in my case with /Users/adreghiciu so the actual provisioning spec will be scan-bundle:file:/Users/adreghiciu/my-repository/foo.jar

There are also two special placeholders that you can use that are easier to explain via examples:

Relative URLs

Sometimes you do not want to hardcode absolute urls in your composite file but