flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: FLUME-1550. Use maven-antrun-plugin to save version
Date Sun, 09 Sep 2012 06:50:35 GMT
Updated Branches:
  refs/heads/trunk b6eae08ee -> 99708a1da


FLUME-1550. Use maven-antrun-plugin to save version

(Hari Shreedharan via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/99708a1d
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/99708a1d
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/99708a1d

Branch: refs/heads/trunk
Commit: 99708a1da0c7ae779511d28134f146747252d26a
Parents: b6eae08
Author: Jarek Jarcec Cecho <jarcec@cloudera.com>
Authored: Sun Sep 9 08:49:02 2012 +0200
Committer: Jarek Jarcec Cecho <jarcec@cloudera.com>
Committed: Sun Sep 9 08:49:02 2012 +0200

----------------------------------------------------------------------
 flume-ng-core/pom.xml |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/99708a1d/flume-ng-core/pom.xml
----------------------------------------------------------------------
diff --git a/flume-ng-core/pom.xml b/flume-ng-core/pom.xml
index 8d2e8d2..9600dfc 100644
--- a/flume-ng-core/pom.xml
+++ b/flume-ng-core/pom.xml
@@ -49,22 +49,24 @@ limitations under the License.
       <build>
         <plugins>
           <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>exec-maven-plugin</artifactId>
-            <version>1.2.1</version>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.7</version>
             <executions>
               <execution>
                 <id>generate-version</id>
                 <phase>generate-sources</phase>
                 <configuration>
-                  <executable>scripts/saveVersion.sh</executable>
-                  <arguments>
-                    <argument>${project.version}</argument>
-                    <argument>${project.build.directory}</argument>
-                  </arguments>
+                  <target>
+                    <mkdir dir="${project.build.directory}/generated-sources/java"/>
+                    <exec executable="sh">
+                      <arg
+                        line = "${basedir}/scripts/saveVersion.sh ${project.version} ${project.build.directory}"
/>
+                    </exec>
+                  </target>
                 </configuration>
                 <goals>
-                  <goal>exec</goal>
+                  <goal>run</goal>
                 </goals>
               </execution>
             </executions>


Mime
View raw message