add project file path during maven build time

Project: http://git-wip-us.apache.org/repos/asf/vxquery/repo
Commit: http://git-wip-us.apache.org/repos/asf/vxquery/commit/1062664a
Tree: http://git-wip-us.apache.org/repos/asf/vxquery/tree/1062664a
Diff: http://git-wip-us.apache.org/repos/asf/vxquery/diff/1062664a

Branch: refs/heads/steven/hdfs
Commit: 1062664a61dfc38ad8eecae8bc437b3254265618
Parents: 9aa4b18
Author: efikalti <[email protected]>
Authored: Wed Sep 16 18:14:03 2015 +0300
Committer: efikalti <[email protected]>
Committed: Wed Sep 16 18:14:03 2015 +0300

----------------------------------------------------------------------
 pom.xml                                         | 24 ++++++++++++++++++++
 .../src/main/resources/conf/cluster.properties  |  2 +-
 2 files changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/vxquery/blob/1062664a/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 897a0c4..a1e22a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -476,6 +476,29 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
             </plugin>
+            <plugin>
+            <groupId>com.google.code.maven-replacer-plugin</groupId>
+            <artifactId>replacer</artifactId>
+            <version>1.5.3</version>
+            <executions>
+                <execution>
+                    <phase>prepare-package</phase>
+                    <goals>
+                        <goal>replace</goal>
+                    </goals>                    
+                </execution>
+            </executions>
+            <configuration>
+                <ignoreMissingFile>true</ignoreMissingFile>
+                
<file>vxquery-server/src/main/resources/conf/cluster.properties</file>
+                <outputFile>
+                    vxquery-server/src/main/resources/conf/cluster.properties
+                </outputFile>
+                <regex>false</regex>
+                <token>$CONF_PATH$</token>
+                
<value>${basedir}/vxquery-xtest/src/test/resources/hadoop/conf</value>
+            </configuration>
+           </plugin>
         </plugins>
     </build>
 
@@ -526,6 +549,7 @@
                     <maxmemory>2g</maxmemory>
                 </configuration>
             </plugin>
+            
         </plugins>
     </reporting>
 

http://git-wip-us.apache.org/repos/asf/vxquery/blob/1062664a/vxquery-server/src/main/resources/conf/cluster.properties
----------------------------------------------------------------------
diff --git a/vxquery-server/src/main/resources/conf/cluster.properties 
b/vxquery-server/src/main/resources/conf/cluster.properties
index 0a7bc81..f5106cb 100644
--- a/vxquery-server/src/main/resources/conf/cluster.properties
+++ b/vxquery-server/src/main/resources/conf/cluster.properties
@@ -54,4 +54,4 @@ NCJAVA_OPTS="-server -Xmx7G 
-Djava.util.logging.config.file=./vxquery-benchmark/
 # Yourkit mac option: 
-agentpath:/Applications/YourKit_Java_Profiler.app/bin/mac/libyjpagent.jnilib=sampling
 
 #HDFS configuration directory
-HDFS_CONF=/home/efi/Projects/vxquery/vxquery-xtest/src/test/resources/hadoop/conf
+HDFS_CONF=$CONF_PATH$

Reply via email to