[testng] 342/355: Add rename plugin to change VersionTemplate name

Eugene Zhukov eugene-guest at moszumanska.debian.org
Tue Aug 18 10:20:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.

commit d63bc407d5d38d72efe5b7dcd29776f6b4baabef
Author: etigwuu <tim.t.wu at ericsson.com>
Date:   Wed May 20 09:53:46 2015 +0200

    Add rename plugin to change VersionTemplate name
---
 pom.xml | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
old mode 100644
new mode 100755
index ed361f9..6514b8b
--- a/pom.xml
+++ b/pom.xml
@@ -107,7 +107,7 @@
       <resource>
         <directory>src/main/resources</directory>
         <includes>
-          <include>**/Version.java</include>
+          <include>**/VersionTemplateJava</include>
         </includes>
         <filtering>true</filtering>
         <targetPath>${version.build.directory}</targetPath>
@@ -118,8 +118,27 @@
     </resources>
     <plugins>
 
+      <!-- Rename Version.java -->
+      <plugin>
+        <groupId>com.coderplus.maven.plugins</groupId>
+        <artifactId>copy-rename-maven-plugin</artifactId>
+        <version>1.0.1</version>
+        <executions>
+          <execution>
+		    <id>rename-file</id>
+			<phase>process-resources</phase>
+			<goals>
+			  <goal>rename</goal>
+			</goals>
+			<configuration>
+			  <sourceFile>${version.build.directory}/org/testng/internal/VersionTemplateJava</sourceFile>
+			  <destinationFile>${version.build.directory}/org/testng/internal/Version.java</destinationFile>
+			</configuration>
+		  </execution>
+        </executions>
+      </plugin>
+      
       <!-- Release for bintray -->
-
       <plugin>
         <artifactId>maven-release-plugin</artifactId>
         <configuration>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git



More information about the pkg-java-commits mailing list