Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344776 - Execute permission not set on antRun scripts
Summary: Execute permission not set on antRun scripts
Status: CLOSED DUPLICATE of bug 292778
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.6.2   Edit
Hardware: All Unix All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 19:56 EDT by Hani Nadra CLA
Modified: 2011-05-05 09:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hani Nadra CLA 2011-05-04 19:56:44 EDT
The scripts under plugins/org.apache.ant_1.7.1.v20100518-1145/bin should have execute permissions in the packaged eclipse tar.

The missing permissions cause the following error when running the exec ant task with vmlauncher="false":

Execute failed: java.io.IOException: Cannot run program "path-to-eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun": error=13, Permission denied

The error can be reproduced by running the following ant task in eclipse on Linux or Mac:

<exec executable="/bin/sh" vmlauncher="true">
    <arg line="-c 'echo from exec.....'" />
</exec>

Thanks!
Comment 1 Hani Nadra CLA 2011-05-04 19:58:51 EDT
Correction... the ant task should have vmlauncher="false" to see the error:

<exec executable="/bin/sh" vmlauncher="false">
    <arg line="-c 'echo from exec.....'" />
</exec>
Comment 2 Michael Rennie CLA 2011-05-05 09:38:40 EDT

*** This bug has been marked as a duplicate of bug 292778 ***