[
https://issues.jboss.org/browse/JBDS-3755?page=com.atlassian.jira.plugin....
]
Nick Boldt edited comment on JBDS-3755 at 4/1/16 10:08 AM:
-----------------------------------------------------------
"Note that file permissions will not be stored in the resulting zipfile." --
https://ant.apache.org/manual/Tasks/zip.html
So... this is a bug introduced during JBDS-3598 because the zip created by a maven mojo
(with permissions) is updated here to add in a readme file (which removes the
permissions):
{code}
<!-- JBDS-3598 add CSP src zip readme into src zip too -->
<copy todir="${project.build.directory}"
overwrite="true">
<fileset
file="${project.basedir}/../results/customer-portal/src.manual-instructions.txt"
/>
<mapper type="merge"
to="README.how-to-build-from-sources-zip.txt" />
<filterchain>
<expandproperties />
</filterchain>
</copy>
<zip
destfile="${project.build.directory}/jboss-devstudio-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${BUILD_ALIAS}-src.zip"
whenempty="fail" update="true">
<zipfileset dir="${project.build.directory}/"
includes="README.how-to-build-from-sources-zip.txt"/>
</zip>
{code}
--
https://github.com/jbdevstudio/jbdevstudio-product/commit/e43a227464f9180...
was (Author: nickboldt):
"Note that file permissions will not be stored in the resulting zipfile." --
https://ant.apache.org/manual/Tasks/zip.html
So... this is a bug introduced during JBDS-3598 because the zip created by a maven mojo
(with permissions) is updated here to add in a readme file:
{code}
<!-- JBDS-3598 add CSP src zip readme into src zip too -->
<copy todir="${project.build.directory}"
overwrite="true">
<fileset
file="${project.basedir}/../results/customer-portal/src.manual-instructions.txt"
/>
<mapper type="merge"
to="README.how-to-build-from-sources-zip.txt" />
<filterchain>
<expandproperties />
</filterchain>
</copy>
<zip
destfile="${project.build.directory}/jboss-devstudio-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${BUILD_ALIAS}-src.zip"
whenempty="fail" update="true">
<zipfileset dir="${project.build.directory}/"
includes="README.how-to-build-from-sources-zip.txt"/>
</zip>
{code}
--
https://github.com/jbdevstudio/jbdevstudio-product/commit/e43a227464f9180...
JBDS source zip: all files have 000 permissions after unzip
-----------------------------------------------------------
Key: JBDS-3755
URL:
https://issues.jboss.org/browse/JBDS-3755
Project: Developer Studio (JBoss Developer Studio)
Issue Type: Feature Request
Components: build
Affects Versions: 9.1.0.CR1
Reporter: Martin Malina
Assignee: Nick Boldt
While verifying JBDS-3598 and trying to build from the latest source zip
(jboss-devstudio-9.1.0.CR1-v20160326-0059-B443-src.zip), I hit a problem:
When I unzipped the zip, I could not cd to the directory. It turned out that all the
files had zero permissions. So I had to do "chmod -R 777
jboss-devstudio-9.1.0.CR1-src" first. Could we fix that?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)