jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1505828 - in /jackrabbit/branches/2.6: ./ jackrabbit-jcr2dav/pom.xml jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
Date Mon, 22 Jul 2013 21:50:09 GMT
Author: reschke
Date: Mon Jul 22 21:50:09 2013
New Revision: 1505828

URL: http://svn.apache.org/r1505828
Log:
JCR-3625: make port number for webdav integration tests configurable (ported to 2.6)

Modified:
    jackrabbit/branches/2.6/   (props changed)
    jackrabbit/branches/2.6/jackrabbit-jcr2dav/pom.xml
    jackrabbit/branches/2.6/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java

Propchange: jackrabbit/branches/2.6/
------------------------------------------------------------------------------
  Merged /jackrabbit/trunk:r1505795

Modified: jackrabbit/branches/2.6/jackrabbit-jcr2dav/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.6/jackrabbit-jcr2dav/pom.xml?rev=1505828&r1=1505827&r2=1505828&view=diff
==============================================================================
--- jackrabbit/branches/2.6/jackrabbit-jcr2dav/pom.xml (original)
+++ jackrabbit/branches/2.6/jackrabbit-jcr2dav/pom.xml Mon Jul 22 21:50:09 2013
@@ -48,6 +48,10 @@
                   <value>true</value>
                 </property>
                 <property>
+                  <name>org.apache.jackrabbit.jcr2dav.RepositoryStubImpl.port</name>
+                  <value>${org.apache.jackrabbit.jcr2dav.RepositoryStubImpl.port}</value>
+                </property>
+                <property>
                   <name>known.issues</name>
                   <value>
                       <!--

Modified: jackrabbit/branches/2.6/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.6/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java?rev=1505828&r1=1505827&r2=1505828&view=diff
==============================================================================
--- jackrabbit/branches/2.6/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
(original)
+++ jackrabbit/branches/2.6/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
Mon Jul 22 21:50:09 2013
@@ -53,7 +53,9 @@ public class RepositoryStubImpl extends 
         if (connector == null) {
             connector = new SocketConnector();
             connector.setHost("localhost");
-            connector.setPort(0);
+            String pvalue = System.getProperty("org.apache.jackrabbit.jcr2dav.RepositoryStubImpl.port",
"0");
+            int port = pvalue.equals("") ? 0 : Integer.parseInt(pvalue);
+            connector.setPort(port);
         }
 
         if (server == null) {



Mime
View raw message