From 7e667d07b26bfaacba8f8775b38fccba5582e18f Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 29 Jul 2011 15:07:43 +0000
Subject: [PATCH] Add profile so that unit tests can be run in isolation using "mvn compile -Ptests-only"

---
 opendj-sdk/opends/pom.xml |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/pom.xml b/opendj-sdk/opends/pom.xml
index d147f21..68cd3e4 100644
--- a/opendj-sdk/opends/pom.xml
+++ b/opendj-sdk/opends/pom.xml
@@ -170,4 +170,32 @@
       </plugin>
     </plugins>
   </build>
+  <profiles>
+    <profile>
+      <id>tests-only</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>compile</id>
+                <phase>compile</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <target>
+                <!-- We need to significantly refactor build.xml in order
+                     to split this up any more -->
+                    <ant target="test" />
+                  </target>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

--
Gitblit v1.10.0