You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/10/31 15:28:27 UTC
svn commit: r590681 - in
/incubator/tuscany/java/sca/distribution/webapp/src/main:
java/org/apache/tuscany/sca/webapp/WarContextListener.java
webapp/WEB-INF/web.xml
Author: antelder
Date: Wed Oct 31 07:28:25 2007
New Revision: 590681
URL: http://svn.apache.org/viewvc?rev=590681&view=rev
Log:
Add the function from TUSCANY-1884 by Sunny Ip to specify an external repo to the webapp distro
Modified:
incubator/tuscany/java/sca/distribution/webapp/src/main/java/org/apache/tuscany/sca/webapp/WarContextListener.java
incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/WEB-INF/web.xml
Modified: incubator/tuscany/java/sca/distribution/webapp/src/main/java/org/apache/tuscany/sca/webapp/WarContextListener.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/distribution/webapp/src/main/java/org/apache/tuscany/sca/webapp/WarContextListener.java?rev=590681&r1=590680&r2=590681&view=diff
==============================================================================
--- incubator/tuscany/java/sca/distribution/webapp/src/main/java/org/apache/tuscany/sca/webapp/WarContextListener.java (original)
+++ incubator/tuscany/java/sca/distribution/webapp/src/main/java/org/apache/tuscany/sca/webapp/WarContextListener.java Wed Oct 31 07:28:25 2007
@@ -277,7 +277,12 @@
useHotUpdate = Boolean.valueOf(servletContext.getInitParameter("hotUpdate")).booleanValue();
- repository = new File(servletContext.getRealPath(REPOSITORY_FOLDER_NAME));
+ if (servletContext.getInitParameter("repositoryFolder") != null) {
+ repository = new File(servletContext.getInitParameter("repositoryFolder"));
+ } else {
+ repository = new File(servletContext.getRealPath(REPOSITORY_FOLDER_NAME));
+ }
+ logger.info("Tuscany Contribution Repository -> " + repository);
}
}
Modified: incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/WEB-INF/web.xml?rev=590681&r1=590680&r2=590681&view=diff
==============================================================================
--- incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/WEB-INF/web.xml (original)
+++ incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/WEB-INF/web.xml Wed Oct 31 07:28:25 2007
@@ -29,17 +29,25 @@
</listener>
<context-param>
+ <param-name>repositoryFolder</param-name>
+ <param-value>/TuscanyRepository</param-value>
+ </context-param>
+
+ <!-- context-param>
<param-name>domainName</param-name>
<param-value>http://localhost:8877/</param-value>
- </context-param>
+ </context-param -->
+
<context-param>
<param-name>nodeName</param-name>
<param-value>http://localhost:8080/</param-value>
</context-param>
+
<context-param>
<param-name>hotDeployInterval</param-name>
<param-value>2000</param-value>
</context-param>
+
<context-param>
<param-name>hotUpdate</param-name>
<param-value>no</param-value>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org