.xml : Maven.
maven. .properties :
key1 = ${src1.dir}
key2 = ${src1.dir}/${filename}
key3 = ${project.basedir}
maven pom.xml( ) - :
<resources>
<resource>
<filtering>true</filtering>
<directory>just-path-to-the-properties-file-without-it</directory>
<includes>
<include>file-name-to-be-filtered</include>
</includes>
</resource>
</resources>
...
<properties>
<src1.dir>/home/root</src1.dir>
<filename>some-file-name</filename>
</properties>
, , , :
key1 = /home/root
key2 = /home/root/some-file-name
key3 = the-path-to-your-project
, , pom.xml:
mvn clean install -DskipTests