[
http://jira.jboss.com/jira/browse/JBPORTAL-1515?page=comments#action_1236... ]
Rajesh Rajasekaran commented on JBPORTAL-1515:
----------------------------------------------
tarfileset has an attribute called filemode where you can set the permissions of the files
that go into the tar.
I have used <tarfileset prefix="${portal.release.normal.name}-src"
filemode="755" dir="${portal.build.src}"/> in distrib.xml to build
the src tar.
But this feature is available only in ant 1.7 and i used it just to build the src tar for
this release.
Execute permissions removed while building the jboss-portal src
distro
----------------------------------------------------------------------
Key: JBPORTAL-1515
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1515
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.6 CR3
Reporter: Rajesh Rajasekaran
Assigned To: Julien Viet
Fix For: 2.8 Final, 2.6.1 Final
A temporary copy of the portal src is made to the build/output directory before the src
distro is created.
This ant copy task in distrib.xml removes all execute permissions on .sh files, the ant
executable packaged etc.
Trying to build from the src distro says
[rrajasekaran@dev03 build]$ sh build.sh
build.sh: *WARNING* Ignoring environment value for $ANT_HOME
build.sh: *FATAL* Ant script is not executable:
/home/rrajasekaran/jboss-portal-2.6-CR3-src/tools/bin/ant
The ant manual says
"Unix Note: File permissions are not retained when files are copied; they end up
with the default UMASK permissions instead. This is caused by the lack of any means to
query or set file permissions in the current Java runtimes."
Either the build needs to be modified or i can try something with the UMASK settings
while building.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira