FileSwitcher Maven Plugin

A Maven plugin to switch files between release and debug versions.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.kobusgrobler
ArtifactId

ArtifactId

fileswitcher-maven-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

FileSwitcher Maven Plugin
A Maven plugin to switch files between release and debug versions.
Project URL

Project URL

https://github.com/kobusgrobler/fileswitcher-maven-plugin
Source Code Management

Source Code Management

https://github.com/kobusgrobler/fileswitcher-maven-plugin

Download fileswitcher-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.kobusgrobler</groupId>
    <artifactId>fileswitcher-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven : maven-artifact jar 2.0
org.apache.maven : maven-project jar 2.0
org.codehaus.plexus : plexus-utils jar 3.0.8

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

fileswitcher-maven-plugin

A Maven plugin to switch files between release and debug versions.

Typically used to switch log configuration files used during development with that used for a production build.

To build, test and install the plugin

mvn -Prun-its install

Usage

To copy logging-debug.properties to logging.properties IF the debug variable is set to true, otherwise use logging-release.properties

            <plugin>
                <groupId>com.github.kobusgrobler</groupId>
                <artifactId>fileswitcher-maven-plugin</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <useDebug>${debug}</useDebug>
                    <outFile>logging.properties</outFile>
                    <debugFile>logging-debug.properties</debugFile>
                    <releaseFile>logging-release.properties</releaseFile>
                </configuration>
                <executions>
                    <execution>
                        <id>fileswitchid</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>fileswitch</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Versions

Version
1.0.0