summaryrefslogtreecommitdiff
path: root/BKUWebStart
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-11-02 19:18:26 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-11-02 19:18:26 +0000
commit3987eefc567022135f5eacd88feeeb55f611227b (patch)
tree8fc61badde7cb754f53a18c54b79c6411467b2cf /BKUWebStart
parent3b447e83cd8e0a09963b07c85ee07346a9530a68 (diff)
downloadmocca-3987eefc567022135f5eacd88feeeb55f611227b.tar.gz
mocca-3987eefc567022135f5eacd88feeeb55f611227b.tar.bz2
mocca-3987eefc567022135f5eacd88feeeb55f611227b.zip
POM Housekeeping
* Whitespace unified * Avoid "SVNRevMissing" when using git svn git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@995 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUWebStart')
-rw-r--r--BKUWebStart/pom.xml60
1 files changed, 59 insertions, 1 deletions
diff --git a/BKUWebStart/pom.xml b/BKUWebStart/pom.xml
index 7c6abfe5..c87282a5 100644
--- a/BKUWebStart/pom.xml
+++ b/BKUWebStart/pom.xml
@@ -52,7 +52,7 @@
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
- <revisionOnScmFailure>SvnRevMissing</revisionOnScmFailure>
+ <revisionOnScmFailure>SvnRevMissing</revisionOnScmFailure>
</configuration>
</plugin>
@@ -206,6 +206,64 @@
</build>
<!-- TODO somehow provide javaws.jar on manifest class-path -->
</profile>
+
+ <profile>
+ <!--
+ This profile is here for triggering when another scm than svn is
+ used (for example git). Instead of getting the version build number
+ from svn we will use the build date and the user name.
+ -->
+ <id>buildnumber-git</id>
+ <activation>
+ <file>
+ <missing>.svn</missing>
+ </file>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ def gitSvnProc = ["sh", "-c", "git svn info | awk '/Revision:/ { print \$2 }'"].execute()
+ gitSvnProc.waitFor()
+ project.properties['gitSvnRev'] = gitSvnProc.in.text.trim()
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>false</doCheck>
+ <doUpdate>false</doUpdate>
+ <format>{0}</format>
+ <items>
+ <item>${gitSvnRev}</item>
+ </items>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<dependencies>