Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344776

Summary: Execute permission not set on antRun scripts
Product: [Eclipse Project] Platform Reporter: Hani Nadra <hinadra>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 3.6.2   
Target Milestone: ---   
Hardware: All   
OS: Unix All   
Whiteboard:

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 ***