camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: Delete data dir after running tests in camel-solr
Date Sat, 18 Jul 2015 08:23:17 GMT
Repository: camel
Updated Branches:
  refs/heads/master d234a5311 -> c0702debf


Delete data dir after running tests in camel-solr


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

Branch: refs/heads/master
Commit: c0702debf5c37bfce1c78b638143ee3b6c2c47c6
Parents: d234a53
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Jul 18 10:30:04 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Jul 18 10:30:04 2015 +0200

----------------------------------------------------------------------
 components/camel-solr/pom.xml | 37 +++++++++++++++++++++++++++++++++----
 1 file changed, 33 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c0702deb/components/camel-solr/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-solr/pom.xml b/components/camel-solr/pom.xml
index 737de6f..f163ec0 100644
--- a/components/camel-solr/pom.xml
+++ b/components/camel-solr/pom.xml
@@ -15,7 +15,8 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <artifactId>components</artifactId>
@@ -36,7 +37,7 @@
     <java.awt.headless>true</java.awt.headless>
   </properties>
 
-  <dependencies> 
+  <dependencies>
     <dependency>
       <groupId>org.apache.camel</groupId>
       <artifactId>camel-core</artifactId>
@@ -60,7 +61,7 @@
       <artifactId>httpmime</artifactId>
       <version>${httpclient4-version}</version>
     </dependency>
-    
+
     <!-- test dependencies -->
     <dependency>
       <groupId>org.apache.camel</groupId>
@@ -84,7 +85,7 @@
           <artifactId>jdk.tools</artifactId>
         </exclusion>
       </exclusions>
-    </dependency>    
+    </dependency>
     <dependency>
       <groupId>org.apache.solr</groupId>
       <artifactId>solr-cell</artifactId>
@@ -126,4 +127,32 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <!-- clean the data directory before installing -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-clean-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>auto-clean</id>
+            <phase>install</phase>
+            <goals>
+              <goal>clean</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <excludeDefaultDirectories>true</excludeDefaultDirectories>
+          <filesets>
+            <fileset>
+              <directory>${basedir}/data</directory>
+            </fileset>
+          </filesets>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>


Mime
View raw message