You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/06/01 00:39:51 UTC

[Bug 53340] New: Simplify catalina.bat ^C handling

https://issues.apache.org/bugzilla/show_bug.cgi?id=53340

          Priority: P2
            Bug ID: 53340
          Assignee: dev@tomcat.apache.org
           Summary: Simplify catalina.bat ^C handling
          Severity: enhancement
    Classification: Unclassified
                OS: Windows XP
          Reporter: sebb@apache.org
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: Packaging
           Product: Tomcat 7

Created attachment 28867
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28867&action=edit
Patch as per bug description

As mentioned in Bug 53115, one way to avoid a recursive call to catalina.bat is
to split the batch file into 2 parts.

The first part, catalina.bat, performs the input redirection for the "run"
mode.

For all modes, it then transfers to the second part, which is named
_catalina_.bat.

The patch also includes the file Y.txt which is used to answer the "Terminate
batch" prompt.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53340] Simplify catalina.bat ^C handling

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53340

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28867|0                           |1
           is patch|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53340] Simplify catalina.bat ^C handling

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53340

--- Comment #2 from Sebb <se...@apache.org> ---
The point of this was to avoid any possible problems with the TEMP variable
setting.

It may require 2 extra files, but so what?
The result (in my view) is somewhat easier to understand.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53340] Simplify catalina.bat ^C handling

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53340

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
Having more that 1 file to handle the debug-level feature of "catalina run" is
ridiculous. The patch makes it 3 files. ;(


There could be run.bat, like there is startup.bat. But even that seems too much
for a debug feature.

I like you idea of using "_RECURSE_" variable from your comment on bug 53115,
but it solves only small part of complexity.

I do not see a way to get rid of the temporary "Y" file. I tried several
variants of piping "echo Y | " into the recursively called batch file, but all
they do not work.  It gets rid of one "Terminate this batch?" confirmation, but
second one appears.


If there ever are noticeable concerns with the "^C" handling code in
catalina.bat, I think it all could be removed, reverting to the simple
catalina.bat of Tomcat 6.  The current code is a bit complicated, but I cannot
call it broken and worth of fixing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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