1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Add some missing Autotools test fixes done after initial move.

- fix some findBugs issues with ProjectTools.java
- make the configure script executable to support using sh -c to
  invoke the script
This commit is contained in:
Jeff Johnston 2012-03-30 18:13:35 -04:00
parent 6272193b34
commit a3a513fffb
3 changed files with 22 additions and 13 deletions

View file

@ -1,3 +1,12 @@
2012-03-30 Jeff Johnston <jjohnstn@redhat.com>
* src/org/eclipse/cdt/autotools/tests/ProjectTools.java
(setup): Fix to return false when Workbench is null.
2012-03-30 Jeff Johnston <jjohnstn@redhat.com>
* zip/project2.zip: Fix autogen.sh to make the configure script executable.
2012-03-29 Jeff Johnston <jjohnstn@redhat.com>
* src/org/eclipse/cdt/autotools/tests/ProjectTools.java (build): Refresh the workspace root so resource tests

View file

@ -59,19 +59,19 @@ public class ProjectTools {
*/
public static boolean setup() throws Exception {
if (!setupComplete) {
IWorkspaceDescription desc;
workspace = ResourcesPlugin.getWorkspace();
root = workspace.getRoot();
monitor = new NullProgressMonitor();
if(workspace == null) {
return false;
}
if(root == null) {
return false;
}
desc = workspace.getDescription();
desc.setAutoBuilding(false);
workspace.setDescription(desc);
IWorkspaceDescription desc;
workspace = ResourcesPlugin.getWorkspace();
if (workspace == null) {
return false;
}
root = workspace.getRoot();
monitor = new NullProgressMonitor();
if (root == null) {
return false;
}
desc = workspace.getDescription();
desc.setAutoBuilding(false);
workspace.setDescription(desc);
}
setupComplete = true;
return true;