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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to