Create logs directory in run target
-----------------------------------
Key: MOJO-1270
URL: http://jira.codehaus.org/browse/MOJO-1270
Project: Mojo
Issue Type: Improvement
Components: tomcat
Reporter: Martin Ellis
Priority: Minor
Attachments: create-logs-dir.diff
A 'vanilla' tomcat installation contains a directory 'logs' just under the top
level directory.
Where a web application is only ever intended to be run on tomcat, its logging
can be configured (e.g. in log4j.properties) to write to a log file under
${catalina.home}/logs/.
The tomcat mojo doesn't currently create the logs directory, and hence using
tomcat:run to run an application with a logging configuration as described
above doesn't work very well: the directory to which the log should be written
doesn't exist.
This can be remedied by creating the logs directory when the target/tomcat
directory structure is created.
Trivial patch attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email