tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r609271 - /incubator/tuscany/java/sca/modules/runtime-war/src/main/java/org/apache/tuscany/sca/runtime/war/WarContextListener.java
Date Sun, 06 Jan 2008 08:07:09 GMT
Author: antelder
Date: Sun Jan  6 00:07:07 2008
New Revision: 609271

URL: http://svn.apache.org/viewvc?rev=609271&view=rev
Log:
Tidy up war runtime

Modified:
    incubator/tuscany/java/sca/modules/runtime-war/src/main/java/org/apache/tuscany/sca/runtime/war/WarContextListener.java

Modified: incubator/tuscany/java/sca/modules/runtime-war/src/main/java/org/apache/tuscany/sca/runtime/war/WarContextListener.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/runtime-war/src/main/java/org/apache/tuscany/sca/runtime/war/WarContextListener.java?rev=609271&r1=609270&r2=609271&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/runtime-war/src/main/java/org/apache/tuscany/sca/runtime/war/WarContextListener.java
(original)
+++ incubator/tuscany/java/sca/modules/runtime-war/src/main/java/org/apache/tuscany/sca/runtime/war/WarContextListener.java
Sun Jan  6 00:07:07 2008
@@ -82,12 +82,7 @@
         if (servletContext.getInitParameter("repositoryFolder") != null) {
             repositoryFolder = new File(servletContext.getInitParameter("repositoryFolder"));
         } else {
-            try {
-                repositoryFolder = new File(servletContext.getRealPath(DEFAULT_REPOSITORY_FOLDER));
-            } catch (Exception e) {
-                throw new RuntimeException(e);
-            }
-//            repositoryFolder = new File(servletContext.getRealPath(DEFAULT_REPOSITORY_FOLDER));
+            repositoryFolder = new File(servletContext.getRealPath(DEFAULT_REPOSITORY_FOLDER));
         }
 
         logger.info((new StringBuilder()).append("Contribution Repository -> ").append(repositoryFolder).toString());
@@ -118,6 +113,7 @@
             }
         }
         logger.info("initContextPath: " + contextPath);
+        // TODO: yet another context path hack, Domain/Node seems to need a host and port
         return "http://localhost:8080" + contextPath;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message