cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12158] New: - some improvements to Main.java
Date Thu, 29 Aug 2002 12:04:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12158>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12158

some improvements to Main.java

           Summary: some improvements to Main.java
           Product: Cocoon 2
           Version: Current CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: michael.enke@wincor-nixdorf.com


If org.apache.cocoon.Main is called:
1) cocoon.xconf default location in Main.java is {$context}/cocoon.xconf
   Since cocoon.xconf has moved to WEB-INF this should also be
   reflected in Main.java:
            File context = getDir(contextDir, "context");
            File conf = null;

            if ( null == configFile ) {
                conf = getConfigurationFile(context);
            } else {
                 conf = new File(configFile);
                 if(!conf.exists())
                     conf = new File(context, configFile);
            }
   should be read as
            File configDir = getDir(contextDir + File.separator + "WEB-INF",
"configDir");
            File conf = null;

            if ( null == configFile ) {
                conf = getConfigurationFile(configDir);
            } else {
                 conf = new File(configFile);
                 if(!conf.exists())
                     conf = new File(configDir, configFile);
            }

2)          switch (option.getId()) {
                case 0:
   should better be
            switch (option.getId()) {
                case CLOption.TEXT_ARGUMENT:

3) Why avoid multiple processing of the same URI?
   For some samples I have explicitely to call one page more than one time
   in the same session. This is now not possible.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message