forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r110052 - /forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java
Date Mon, 06 Dec 2004 23:52:38 GMT
Author: rick
Date: Mon Dec  6 15:52:37 2004
New Revision: 110052

URL: http://svn.apache.org/viewcvs?view=rev&rev=110052
Log:
Resolves: FOR-404

The projectHome will never equal the defaultHome since projectHome is
defined to be the defaultHome + "/project".  It will however startWith
the defaultHome.


Modified:
   forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java

Modified: forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java?view=diff&rev=110052&p1=forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java&r1=110051&p2=forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java&r2=110052
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java	(original)
+++ forrest/trunk/main/java/org/apache/forrest/log/ForrestLogTargetFactory.java	Mon Dec  6
15:52:37 2004
@@ -38,7 +38,8 @@
         
         try {
             String projectHome = ForrestConfUtils.getProjectHome();
-            if(!projectHome.equals(ForrestConfUtils.defaultHome)){
+
+            if(!projectHome.startsWith(ForrestConfUtils.defaultHome)){
                 DefaultContext newContext = new DefaultContext(context);
                 newContext.put("context-root",projectHome + "/build/webapp");
                 currentContext = newContext;

Mime
View raw message