[ http://jira.codehaus.org/browse/MASSEMBLY-70?page=all ] Trygve Laugstol closed MASSEMBLY-70: ------------------------------------
Resolution: Fixed Fix Version: 2.1 This was fixed a while back. > assembly:directory does not honor <fileMode> > -------------------------------------------- > > Key: MASSEMBLY-70 > URL: http://jira.codehaus.org/browse/MASSEMBLY-70 > Project: Maven 2.x Assembly Plugin > Type: Bug > Versions: 2.0.1 > Environment: Linux 2.6.10-gentoo-r4 #1 SMP Mon Jan 10 14:53:56 EST 2005 i686 > AMD Athlon(tm) MP 2400+ AuthenticAMD GNU/Linux > java version "1.4.2_10" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) > Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode) > Reporter: Andrew Moore > Assignee: Trygve Laugstol > Fix For: 2.1 > > > When running {{assembly:assembly}}, the {{<fileMode>}} specified in the > assembly descriptor [[#1]] is honored in the resulting archive [[#2]]. > When running {{assembly:directory}}, the {{<fileMode>}} is not honored in the > resulting directory structure [[#3]]. > {anchor:1} > {code:xml|title=Listing 1: package.xml} > <assembly> > <id>package</id> > <formats> > <format>tar.gz</format> > </formats> > <includeBaseDirectory>false</includeBaseDirectory> > <fileSets> > <fileSet> > <directory>target</directory> > <outputDirectory>/lib</outputDirectory> > <includes> > <include>*.jar</include> > </includes> > <fileMode>0640</fileMode> > </fileSet> > <fileSet> > <directory>src/main/shell/bin</directory> > <outputDirectory>/bin</outputDirectory> > <includes> > <include>**/*</include> > </includes> > <fileMode>0750</fileMode> > </fileSet> > <fileSet> > <directory>src/main/shell/environments</directory> > <outputDirectory>/environments</outputDirectory> > <includes> > <include>**/*</include> > </includes> > <fileMode>0640</fileMode> > </fileSet> > <fileSet> > <directory>src/main/shell/etc</directory> > <outputDirectory>/etc</outputDirectory> > <includes> > <include>**/*</include> > </includes> > <fileMode>0640</fileMode> > </fileSet> > </fileSets> > <dependencySets> > <dependencySet> > <outputDirectory>/lib</outputDirectory> > <scope>runtime</scope> > <fileMode>0640</fileMode> > </dependencySet> > </dependencySets> > </assembly> > {code} > {anchor:2} > {code:title=Listing 2: target/nabpoc-b1_0_0001-package.tar.gz} > $ tar -tvzf target/nabpoc-b1_0_0001-package.tar.gz > drwxr-xr-x / 0 2006-02-16 10:23:40 environments/databases/ > -rw-r----- / 257398 2006-02-16 10:56:41 lib/nabpoc-b1_0_0001.jar > ... > -rwxr-x--- / 1152 2006-02-16 10:23:40 bin/sting > -rwxr-x--- / 392 2006-02-16 10:23:40 bin/distra > -rwxr-x--- / 578 2006-02-16 10:23:40 bin/get_classpath > -rwxr-x--- / 1545 2006-02-16 10:23:40 bin/set_rate > -rwxr-x--- / 1817 2006-02-16 10:23:40 bin/sting.bat > -rw-r----- / 1570 2006-02-16 10:23:40 > environments/databases/lab-installation.xml > -rw-r----- / 729 2006-02-16 10:23:40 environments/nabpoc.xml > -rw-r----- / 990 2006-02-16 10:23:40 environments/systest.xml > -rw-r----- / 3084 2006-02-16 10:23:41 etc/switch.conf > -rw-r----- / 2820 2006-02-16 10:23:41 etc/sim.conf > -rw-r----- / 1523 2006-02-16 10:23:41 etc/distra.conf > -rw-r----- / 1322 2006-02-16 10:23:41 etc/harouter.conf > {code} > {anchor:3} > {code:title=Listing 3: target/nabpoc-b1_0_0001-package/} > files under bin/ should be rwxr-x--- as in tar.gz, above > $ find target/nabpoc-b1_0_0001-package -ls > 2596412 0 drwxr-sr-x 6 amm coders 152 Feb 16 11:02 > target/nabpoc-b1_0_0001-package > 2596462 0 drwxr-sr-x 2 amm coders 184 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/bin > 2596463 4 -rw-r--r-- 1 amm coders 1152 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/bin/sting > 2596464 4 -rw-r--r-- 1 amm coders 392 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/bin/distra > 2596465 4 -rw-r--r-- 1 amm coders 578 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/bin/get_classpath > 2596466 4 -rw-r--r-- 1 amm coders 1545 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/bin/set_rate > 2596467 4 -rw-r--r-- 1 amm coders 1817 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/bin/sting.bat > 2596472 0 drwxr-sr-x 2 amm coders 168 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/etc > 2596473 4 -rw-r--r-- 1 amm coders 3084 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/etc/switch.conf > 2596474 4 -rw-r--r-- 1 amm coders 2820 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/etc/sim.conf > 2596475 4 -rw-r--r-- 1 amm coders 1523 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/etc/distra.conf > 2596479 4 -rw-r--r-- 1 amm coders 1322 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/etc/harouter.conf > 2596420 1 drwxr-sr-x 2 amm coders 1616 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/lib > 2596459 252 -rw-r--r-- 1 amm coders 257398 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/lib/nabpoc-b1_0_0001.jar > ... > 2596414 0 drwxr-sr-x 3 amm coders 144 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/environments > 2596419 0 drwxr-sr-x 2 amm coders 88 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/environments/databases > 2596468 4 -rw-r--r-- 1 amm coders 1570 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/environments/databases/lab-installation.xml > 2596469 4 -rw-r--r-- 1 amm coders 729 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/environments/nabpoc.xml > 2596470 4 -rw-r--r-- 1 amm coders 990 Feb 16 11:02 > target/nabpoc-b1_0_0001-package/environments/systest.xml > {code} -- 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