DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22234>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22234 ANT tar does not preserve directory permissions Summary: ANT tar does not preserve directory permissions Product: Ant Version: 1.5.3 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I'm running SunOS 5.7 and Ant 1.5.3-1 and the file permissions match the permissions in the mode but the directory permissions do not. Running as 'root' or changes to the umask have no effect. Directories are always 755 in the tar file. The following output shows the problem: (bmolla)bart:/home/bmolla/anttest>ls -ltrR .: total 6 drwxrwxrwx 2 bmolla dev 512 Aug 7 19:31 dir2 drwxrwxrwx 2 bmolla dev 512 Aug 7 19:31 dir1 -rw-rw-rw- 1 bmolla dev 257 Aug 7 19:37 build.xml ./dir2: total 0 ./dir1: total 2 -rw-rw-rw- 1 bmolla dev 6 Aug 7 19:38 test.txt (bmolla)bart:/home/bmolla/anttest>ant Buildfile: build.xml tar: [tar] Building tar: /home/bmolla/anttest/tartest.tar BUILD SUCCESSFUL Total time: 3 seconds (bmolla)bart:/home/bmolla/anttest>tar -tvf tartest.tar drwxr-xr-x 0/0 0 Aug 7 19:31 2003 dir1/ -r--r--r-- 0/0 6 Aug 7 19:38 2003 test.txt (bmolla)bart:/home/bmolla/anttest>cat build.xml <project name="anttest" default="tar" basedir="." > <target name="tar"> <tar tarfile="tartest.tar" > <tarfileset dir="." mode="777" includes="dir1"/> <tarfileset dir="dir1" mode="444" includes="*.txt" /> </tar> </target> </project> (bmolla)bart:/home/bmolla/anttest>umask 0 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]