You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2016/04/06 17:38:38 UTC
[2/2] isis git commit: ISIS-1335: improvements to the pom.xml for
isis site documentation
ISIS-1335: improvements to the pom.xml for isis site documentation
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/33e79878
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/33e79878
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/33e79878
Branch: refs/heads/master
Commit: 33e798784efb356542a5c6092536c82505d87b04
Parents: dcdd0cd
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Apr 6 16:38:27 2016 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Wed Apr 6 16:38:27 2016 +0100
----------------------------------------------------------------------
adocs/documentation/pom.xml | 44 +++++++++++++++++++++++++++++++++++-----
1 file changed, 39 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/33e79878/adocs/documentation/pom.xml
----------------------------------------------------------------------
diff --git a/adocs/documentation/pom.xml b/adocs/documentation/pom.xml
index 13df594..b6e5938 100644
--- a/adocs/documentation/pom.xml
+++ b/adocs/documentation/pom.xml
@@ -449,11 +449,9 @@
}
}
- // doesn't seem to do anything :-(
- "git commit --message '${message}'".execute(null, siteDir).text
-
- // and so, commenting this out.
- // println "git reset --hard".execute(null, siteDir).in.text
+ // the commit doesn't seem to do anything; so instead using antrun plugin below to complete.
+ // "git commit --message '${message}'".execute(null, siteDir).text
+ // "git reset --hard".execute(null, siteDir).in.text
return null
</source>
@@ -461,6 +459,42 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <id>install</id>
+ <phase>install</phase>
+ <configuration>
+ <target>
+ <echo message=""/>
+ <echo message=""/>
+ <echo message="git commit -m '${message}' "/>
+ <echo message=""/>
+ <exec executable="git" dir="${isis-site.dir}">
+ <arg value="commit"/>
+ <arg value="-m"/>
+ <arg value="${message}"/>
+ </exec>
+
+ <echo message=""/>
+ <echo message=""/>
+ <echo message="git reset --hard"/>
+ <echo message=""/>
+ <exec executable="git" dir="${isis-site.dir}">
+ <arg value="reset"/>
+ <arg value="--hard"/>
+ </exec>
+ <echo message=""/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>