Updated Branches:
  refs/heads/flume-1.3.0 206558317 -> e59397063

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/e5939706
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/e5939706
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/e5939706

Branch: refs/heads/flume-1.3.0
Commit: e593970638aebd9f0db1e0f1cb04d6d8f3daad94
Parents: 2065583
Author: Jarek Jarcec Cecho <[email protected]>
Authored: Sun Sep 9 08:49:02 2012 +0200
Committer: Jarek Jarcec Cecho <[email protected]>
Committed: Sun Sep 9 08:51:50 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/e5939706/flume-ng-core/pom.xml
----------------------------------------------------------------------
diff --git a/flume-ng-core/pom.xml b/flume-ng-core/pom.xml
index 3fc8a8d..90be68b 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>

Reply via email to