Archives Management

The plugin offers to manage placeholders in text files not only in a folder but also in archive files (zip, tar, ear, war).

<plugin>
    <groupId>com.xebialabs.utils</groupId>
    <artifactId>placeholders-mustachifier-maven-plugin</artifactId>
    <version>0.5-SNAPSHOT</version>
    <configuration>
        <filesets>
            <fileset>
                <directory>target/myproject.war</directory>
                <include>classes/**/*.properties</include>
            </fileset>
        <filesets>
    </configuration>
    <executions>
        <execution>
            <phase>install</phase>
            <goals>
                <goal>mustache-tokey</goal>      <!-- or mustache-tovalue or mustache-property-generate -->
            </goals>
        </execution>
    </executions>
</plugin>

The property file before the plugin execution

param1={{PARAM1:45}}
param2={{param22}}
param3=44
param4=http://{{host:localhost}}:{{port:8080}}/{{context:default}}

The property file after the plugin execution

param1={{PARAM1}}
param2={{param22}}
param3=44
param4=http://{{host}}:{{port}}/{{context}}