ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [36/50] [abbrv] incubator-ignite git commit: ignite-211 Date & SHA1 fix
Date Thu, 12 Feb 2015 12:18:19 GMT
ignite-211 Date & SHA1 fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/efabda59
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/efabda59
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/efabda59

Branch: refs/heads/ignite-50
Commit: efabda59baa9c297f6eb28446865fbc8832127f6
Parents: 362820e
Author: avinogradov <avinogradov@gridgain.com>
Authored: Thu Feb 12 12:40:59 2015 +0300
Committer: avinogradov <avinogradov@gridgain.com>
Committed: Thu Feb 12 12:40:59 2015 +0300

----------------------------------------------------------------------
 modules/core/pom.xml | 81 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/efabda59/modules/core/pom.xml
----------------------------------------------------------------------
diff --git a/modules/core/pom.xml b/modules/core/pom.xml
index 417a488..0bf638a 100644
--- a/modules/core/pom.xml
+++ b/modules/core/pom.xml
@@ -172,4 +172,85 @@
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>release</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.7</version>
+                        <inherited>false</inherited>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.apache.ignite</groupId>
+                                <artifactId>ignite-tools</artifactId>
+                                <version>${ignite.version}</version>
+                            </dependency>
+                        </dependencies>
+                        <executions>
+                            <execution>
+                                <id>properties-augmentation</id>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <phase>process-resources</phase>
+                                <configuration>
+                                    <target>
+                                        <exec executable="${git.exec}" outputproperty="ignite.build"
+                                              failonerror="yes">
+                                            <arg line="log -1 --format=%ct"/>
+                                        </exec>
+
+                                        <exec executable="${git.exec}" outputproperty="ignite.revision"
+                                              failonerror="yes">
+                                            <arg line="log -1 --format=%H"/>
+                                        </exec>
+
+                                        <tstamp>
+                                            <format property="ignite.rel.date" pattern="ddMMyyyy"
locale="en"/>
+                                        </tstamp>
+
+                                        <property name="props.file"
+                                                  value="../../modules/core/target/classes/ignite.properties"/>
+
+                                        <replaceregexp file="${props.file}" byline="true">
+                                            <regexp pattern="ignite.version=.*"/>
+                                            <substitution expression="ignite.version=${ignite.version}"/>
+                                        </replaceregexp>
+
+                                        <replaceregexp file="${props.file}" byline="true">
+                                            <regexp pattern="ignite.build=.*"/>
+                                            <substitution expression="ignite.build=${ignite.build}"/>
+                                        </replaceregexp>
+
+                                        <replaceregexp file="${props.file}" byline="true">
+                                            <regexp pattern="ignite.revision=.*"/>
+                                            <substitution expression="ignite.revision=${ignite.revision}"/>
+                                        </replaceregexp>
+
+                                        <replaceregexp file="${props.file}" byline="true">
+                                            <regexp pattern="ignite.rel.date=.*"/>
+                                            <substitution expression="ignite.rel.date=${ignite.rel.date}"/>
+                                        </replaceregexp>
+
+                                        <replaceregexp file="${props.file}" byline="true">
+                                            <regexp pattern="ignite.update.status.params=.*"/>
+                                            <substitution
+                                                    expression="ignite.update.status.params=ver=${ignite.version}"/>
+                                        </replaceregexp>
+                                    </target>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>


Mime
View raw message