Permalink
Browse files

Update builds to make it possible to regenerate POM files

  • Loading branch information...
1 parent 009a7ea commit 90470373f27a3c35dfb43e275debc65811b600ff @olabini committed Apr 21, 2011
Showing with 15 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +9 −0 build.xml
  3. +2 −2 maven/ikj-lib/{pom.xml → pom.xml.template}
  4. +2 −2 maven/ikj/{pom.xml → pom.xml.template}
View
@@ -35,3 +35,5 @@ nbproject
/maven/ikj/target
/maven/ikj-lib/target
.file_system_test_config.ik
+pom.xml
+
View
@@ -33,6 +33,15 @@
<exec executable="ruby" input="generate_filter_data.rb" failonerror="false" failifexecutionfails="false"/>
</target>
+ <target name="gen-pom" description="Creates new pom.xml files based on the current version configuration. This should be run before doing any Maven stuff">
+ <filter token="VERSION_NAME" value="${VERSION_NAME}"/>
+ <filter token="VERSION_NUMBER" value="${VERSION_NUMBER}"/>
+ <filter token="VERSION_ADDITION" value="${VERSION_ADDITION}"/>
+
+ <copy file="maven/ikj/pom.xml.template" tofile="maven/ikj/pom.xml" filtering="true" overwrite="true"/>
+ <copy file="maven/ikj-lib/pom.xml.template" tofile="maven/ikj-lib/pom.xml" filtering="true" overwrite="true"/>
+ </target>
+
<target name="compile" depends="generate_filters" description="Compile the source files for the project.">
<filter filtersfile="version_data.properties"/>
<filter token="VERSION" value="${VERSION_NAME}"/>
@@ -5,7 +5,7 @@
<groupId>org.ioke</groupId>
<artifactId>ioke-lang-lib</artifactId>
<packaging>jar</packaging>
- <version>P-0.4.1-SNAPSHOT</version>
+ <version>@VERSION_NAME@-@VERSION_NUMBER@@VERSION_ADDITION@</version>
<name>Ioke language runtime ikj library</name>
<build>
@@ -25,7 +25,7 @@
<inherited>false</inherited>
<configuration>
<tasks>
- <copy file="../../lib/ioke-lib.jar" tofile="target/ioke-lang-lib-P-0.4.1-SNAPSHOT.jar" overwrite="true"/>
+ <copy file="../../lib/ioke-lib.jar" tofile="target/ioke-lang-lib-@VERSION_NAME@-@VERSION_NUMBER@@VERSION_ADDITION@.jar" overwrite="true"/>
</tasks>
</configuration>
</execution>
@@ -5,7 +5,7 @@
<groupId>org.ioke</groupId>
<artifactId>ioke-lang</artifactId>
<packaging>jar</packaging>
- <version>P-0.4.1-SNAPSHOT</version>
+ <version>@VERSION_NAME@-@VERSION_NUMBER@@VERSION_ADDITION@</version>
<name>Ioke language runtime ikj</name>
<build>
@@ -25,7 +25,7 @@
<inherited>false</inherited>
<configuration>
<tasks>
- <copy file="../../lib/ioke.jar" tofile="target/ioke-lang-P-0.4.1-SNAPSHOT.jar" overwrite="true"/>
+ <copy file="../../lib/ioke.jar" tofile="target/ioke-lang-@VERSION_NAME@-@VERSION_NUMBER@@VERSION_ADDITION@.jar" overwrite="true"/>
</tasks>
</configuration>
</execution>

0 comments on commit 9047037

Please sign in to comment.