You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by bs...@apache.org on 2008/03/05 16:33:34 UTC
svn commit: r633878 -
/servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java
Author: bsnyder
Date: Wed Mar 5 07:33:32 2008
New Revision: 633878
URL: http://svn.apache.org/viewvc?rev=633878&view=rev
Log:
SM-1262 - SMX 3.2 org.apache.servicemix.lwcontainer.LwContainerComponentTest fails if the maven repository location is non-default.
Modified:
servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java
Modified: servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java?rev=633878&r1=633877&r2=633878&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java (original)
+++ servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/DeploySupport.java Wed Mar 5 07:33:32 2008
@@ -121,7 +121,11 @@
public String getRepositoryDir() {
if (repositoryDir == null) {
- repositoryDir = getHomeDir() + "/.m2/repository";
+ if (System.getProperty("localRepository") != null) {
+ repositoryDir = System.getProperty("localRepository");
+ } else {
+ repositoryDir = getHomeDir() + "/.m2/repository";
+ }
}
return repositoryDir;
}