Permissions for folder based on defaultDirMode are not working correctly
------------------------------------------------------------------------
Key: MRPM-68
URL: http://jira.codehaus.org/browse/MRPM-68
Project: Mojo RPM Plugin
Issue Type: Bug
Components: rpm
Affects Versions: 2.0.1
Environment: Linux
Reporter: Karl Heinz Marbaise
Assignee: Brett Okken
I have the following configuration for the RPM plugin: (Version 2.0.1)
<defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
</defineStatements>
<defaultGroupname>users</defaultGroupname>
<defaultUsername>nexus</defaultUsername>
<defaultDirMode>0755</defaultDirMode>
<defaultFileMode>2644</defaultFileMode>
<mappings>
<mapping>
<directory>${hudson.home}/tomcat-${project.version}/lib</directory>
<filemode>0644</filemode>
<username>${hudson.user}</username>
<groupname>users</groupname>
<dependency>
<includes>
<include>org.apache.tomcat:annotations-api</include>
<include>org.apache.tomcat:catalina</include>
<include>org.apache.tomcat:tribes</include>
<include>org.apache.tomcat:catalina-ha</include>
<include>org.apache.tomcat:el-api</include>
<include>org.apache.tomcat:jasper-jdt</include>
<include>org.apache.tomcat:jasper-el</include>
<include>org.apache.tomcat:jasper</include>
<include>org.apache.tomcat:servlet-api</include>
<include>org.apache.tomcat:coyote</include>
<include>org.apache.tomcat:dbcp</include>
<include>org.apache.tomcat:juli</include>
</includes>
</dependency>
</mapping>
So based on the above configuration i expected that the folder /lib/ has the
0755 set which is not the case it's set to 0644 instead (filemode?) but the
defaultDirMode expresses different...
So i expect to have the folder the 0755 where as the files have 0644 set...
but i got the following:
drw-r--r-- 2 hudson users 0 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib
-rw-r--r-- 1 hudson users 15119 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/annotations-api-6.0.24.jar
-rw-r--r-- 1 hudson users 1180908 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/catalina-6.0.24.jar
-rw-r--r-- 1 hudson users 128412 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/catalina-ha-6.0.24.jar
-rw-r--r-- 1 hudson users 758225 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/coyote-6.0.24.jar
-rw-r--r-- 1 hudson users 232785 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/dbcp-6.0.24.jar
-rw-r--r-- 1 hudson users 32126 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/el-api-6.0.24.jar
-rw-r--r-- 1 hudson users 522568 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/jasper-6.0.24.jar
-rw-r--r-- 1 hudson users 107431 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/jasper-el-6.0.24.jar
-rw-r--r-- 1 hudson users 1408152 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/jasper-jdt-6.0.24.jar
-rw-r--r-- 1 hudson users 62759 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/juli-6.0.24.jar
-rw-r--r-- 1 hudson users 88199 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/servlet-api-6.0.24.jar
-rw-r--r-- 1 hudson users 234845 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/lib/tribes-6.0.24.jar
drwxr-xr-x 2 hudson users 0 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/logs
drwxr-xr-x 2 hudson users 0 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/temp
drwxr-xr-x 2 hudson users 0 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/webapps
drwxr-xr-x 2 hudson users 0 Mar 25 16:35
/home/hudson/tomcat-1.0.4-SNAPSHOT/works
May be someone can give me hint how to reach this...May be I'm oversight
something...
--
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