Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 896 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 896 Bytes

regex-copy-plugin

Build Status

Description

The maven resource plugins lacks the possibility of renaming the resources during the copy process. This plugin aims at fixing this by providing a versatile renaming system. In a nutshell a regular expression will be used to match the source resources and the groups from this regular expression will be used to build the destination.

Configuration

<plugin>
    <artifactId>regex-copy-maven-plugin</artifactId>
    <configuration>
        <sourceDirectory>src/main/java</sourceDirectory>
        <destinationDirectory>target/test-harness/regex-copy</destinationDirectory>
        <source>(net/ggtools/maven)/(.+)\.java</source>
        <destination>{2}/Test.java</destination>
    </configuration>
</plugin>