[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-cocoon-dev
Subject: Re: cvs commit: xml-cocoon2/src/org/apache/cocoon/environment AbstractEnvironment.java
From: Davanum Srinivas <dims () yahoo ! com>
Date: 2001-05-31 20:38:34
[Download RAW message or body]
Oops...Sorry the Simple Internationalization is not working in WebLogic/WAR deployment (not the
sub-sitemap's...)
Thanks,
dims
--- dims@apache.org wrote:
> dims 01/05/31 13:37:05
>
> Modified: src/org/apache/cocoon/environment AbstractEnvironment.java
> Log:
> Patch for Weblogic/WAR deployment - relative path issues
> from Jiri Luzny (jiri_luzny@yahoo.com)
> One problem left for WebLogic/WAR deployment. Sub-sitemaps are not working.....
>
> Revision Changes Path
> 1.6 +17 -11 xml-cocoon2/src/org/apache/cocoon/environment/AbstractEnvironment.java
>
> Index: AbstractEnvironment.java
> ===================================================================
> RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/environment/AbstractEnvironment.java,v
> retrieving revision 1.5
> retrieving revision 1.6
> diff -u -r1.5 -r1.6
> --- AbstractEnvironment.java 2001/05/29 17:04:54 1.5
> +++ AbstractEnvironment.java 2001/05/31 20:37:05 1.6
> @@ -117,19 +117,25 @@
> this.prefix.append(prefix);
> uri = uri.substring(prefix.length());
>
> + //if the resource is zipped into a war file (e.g. Weblogic temp deployment)
> + if (this.context.getProtocol().equals("zip")) {
> + this.context = new URL(this.context.toString() + context);
> +
> // if we got a absolute context or one with a protocol resolve it
> - if (context.charAt(0) == '/') {
> - this.context = new URL("file:" + context);
> - }else if (context.indexOf(':') > 1) {
> - this.context = new URL(context);
> - }else {
> - this.context = new URL(this.context, context);
> - }
> - File f = new File(this.context.getFile());
> - if (f.isFile()) {
> - this.context = f.getParentFile().toURL();
> } else {
> - this.context = f.toURL();
> + if (context.charAt(0) == '/') {
> + this.context = new URL("file:" + context);
> + } else if (context.indexOf(':') > 1) {
> + this.context = new URL(context);
> + } else {
> + this.context = new URL(this.context, context);
> + }
> + File f = new File(this.context.getFile());
> + if (f.isFile()) {
> + this.context = f.getParentFile().toURL();
> + } else {
> + this.context = f.toURL();
> + }
> }
> } else {
> getLogger().error("The current URI ("
>
>
>
>
> ----------------------------------------------------------------------
> In case of troubles, e-mail: webmaster@xml.apache.org
> To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-cvs-help@xml.apache.org
>
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic