Skip to content

ggtools/regex-copy-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

A Maven copy plugin on steroids

Resources

License

Stars

Watchers

Forks

Packages

No packages published