Author: jlaskowski
Date: Thu Dec 20 00:00:20 2007
New Revision: 605827

URL: http://svn.apache.org/viewvc?rev=605827&view=rev
Log:
openejb.debug profile to run tests in debug mode.

Execute

  mvn test -Popenejb.debug

and attach to 5005 port to start debugging.

Modified:
    openejb/trunk/openejb3/container/openejb-jee/pom.xml

Modified: openejb/trunk/openejb3/container/openejb-jee/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/pom.xml?rev=605827&r1=605826&r2=605827&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/pom.xml (original)
+++ openejb/trunk/openejb3/container/openejb-jee/pom.xml Thu Dec 20 00:00:20 
2007
@@ -77,5 +77,23 @@
       <artifactId>xmlunit</artifactId>
       <scope>test</scope>
     </dependency>
-  </dependencies>
+  </dependencies>
+  <profiles>
+    <profile>
+      <id>openejb.debug</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <forkMode>pertest</forkMode>
+              <argLine>-enableassertions 
-agentlib:jdwp=transport=dt_socket,server=y,address=5005</argLine>
+              <workingDirectory>${basedir}/target</workingDirectory>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>


Reply via email to