Hi, Looking at the documentation on specifying parameters in the mapping of the RPM spec file, it sounds as if the only way to specify a value for the dirmode of any files in the RPM is to use the <defaultDirmode> setting:
If none of the file attributes (filemode, username, and groupname) are populated, the defaults (defaultFileMode, defaultUsername, defaultGroupname, and defaultDirmode) will be used. (http://mojo.codehaus.org/rpm-maven-plugin/map-params.html) Is it possible to set the dirmode of an individual <mapping> element? For example, in a war project I am configuring a mapping of the exploded WAR file by specifying: <mapping> <directory>${myBaseDir}/webapp</directory> <filemode>644</filemode> <username>webapp</username> <groupname>webapp</groupname> <sources> <source> <location>target/${project.name}</location> </source> </sources> </mapping> I'd like to be able to also specify a <dirmode> of 755 but this does not seem supported. Instead, I need to specify <defaultDirMode>755</defaultDirmode>. By setting up a <mapping> for the directory <location>target/${project.name}</location>, it seems like I am taking advantage of the fact that all of the contents of this directory will automatically be included. However, I've found that unless I specify a dirmode of 755, the generated RPM defaults to having permissions of 644 for all of my directories; which then results in no user being able to list the contents of the directory (other than root). Am I doing something wrong by mapping my directory this way - should I have separate mappings for the directory entries themselves and another for the files? Thanks Matt --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email