...
In order to make life easier when these file locations need to be specified in the install.xml, we can befine a variable resourceRoot RESOURCEROOT that will point to the src/main/izPack folder
| Code Block | ||||
|---|---|---|---|---|
| ||||
<installation version="5.0"> <variables> <variable name="resourceRootRESOURCEROOT" value="src/main/izPack"/> </variables> </installation> |
We will discuss varables variables in more detail in the Variables Section.
Another, more Maven-centric approach is pulling in the base directory (and other useful values) directly from a Maven property defined in the POM and accessing them by expressions of kind @{property.key} in install.xml, as described in Properties.