Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPWEBSERVER-1

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPWEBSERVER-1
    Summary: Add user and group properties
       Type: Improvement

     Status: Closed
   Priority: Minor
 Resolution: FIXED

 Original Estimate: 15 minutes
 Time Spent: Unknown
  Remaining: 15 minutes

    Project: maven-webserver-plugin

   Assignee: Brett Porter
   Reporter: Guillaume Lasnier

    Created: Wed, 14 Apr 2004 9:25 AM
    Updated: Sat, 24 Apr 2004 10:14 PM

Description:
These properties correspond to the user and group to run the webserver as. It is used 
to subsitute token in the httpd.conf file for Apache 2.x for the User and Group 
Directives.
Below is the patch that adds this new feature.

Index: plugin.jelly
===================================================================
retrieving revision 1.20
diff -u -r1.20 plugin.jelly
--- plugin.jelly        4 Mar 2004 18:39:37 -0000       1.20
+++ plugin.jelly        14 Apr 2004 13:17:38 -0000
@@ -241,6 +241,10 @@
         value="${context.getVariable('maven.webserver.dir.path')}" />
       <ant:filter token="maven.webserver.root"
         value="${context.getVariable('maven.webserver.root.path')}" />
+      <ant:filter token="maven.webserver.user"
+        value="${context.getVariable('maven.webserver.user')}" />
+      <ant:filter token="maven.webserver.group"
+        value="${context.getVariable('maven.webserver.group')}" />
 
       <!-- allow integration with the properties of the appserver plugin -->
       <ant:filter token="maven.appserver.home"
Index: plugin.properties
===================================================================
retrieving revision 1.7
diff -u -r1.7 plugin.properties
--- plugin.properties   4 Mar 2004 18:39:37 -0000       1.7
+++ plugin.properties   14 Apr 2004 13:17:38 -0000
@@ -103,3 +103,9 @@
 maven.webserver.conf.dir=${maven.conf.dir}/webserver/${maven.webserver.fullname}
 
 
+#-------------------------------------------------------#
+# OPTIONNAL PROPERTIES RESOLVING TOKENS IN HTTPD.CONF   #
+#-------------------------------------------------------#
+# The user and group to run httpd as
+#maven.webserver.user=apache
+#maven.webserver.group=apache
\ No newline at end of file
 


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to