1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 02:35:37 +02:00

Check-in for bug 68485 - CoreException after creating a Managed C project

This commit is contained in:
Sean Evoy 2004-06-25 13:31:38 +00:00
parent 162af467d5
commit efcd048454
2 changed files with 7 additions and 14 deletions

View file

@ -48,9 +48,10 @@ MakefileGenerator.comment.source.list = All of the sources participating in the
MakefileGenerator.comment.build.rule = Each subdirectory must supply rules for building sources it contributes MakefileGenerator.comment.build.rule = Each subdirectory must supply rules for building sources it contributes
MakefileGenerator.comment.module.make.includes = Include the makefiles for each source subdirectory MakefileGenerator.comment.module.make.includes = Include the makefiles for each source subdirectory
MakefileGenerator.comment.module.dep.includes = Include automatically-generated dependency list: MakefileGenerator.comment.module.dep.includes = Include automatically-generated dependency list:
MakefileGenerator.comment.autodeps = Automatically-generated dependency list: MakefileGenerator.comment.autodeps=Automatically-generated dependency list:
MakefileGenerator.comment.header = Automatically-generated file. Do not edit! MakefileGenerator.comment.header=Automatically-generated file. Do not edit!
MakefileGenerator.error.spaces = Cannot generate makefile for folder with spaces in name MakefileGenerator.error.spaces=Cannot generate makefile for folder with spaces in name
MakefileGenerator.warning.no.source=Nothing to build for project {0}
ManagedBuildInfo.message.job.init = Initializing path container for {0} ManagedBuildInfo.message.job.init = Initializing path container for {0}
ManagedBuildInfo.message.init.ok = Initializing path container succeeded for {0} ManagedBuildInfo.message.init.ok = Initializing path container succeeded for {0}

View file

@ -791,7 +791,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
depFile.delete(true, new SubProgressMonitor(monitor, 1)); depFile.delete(true, new SubProgressMonitor(monitor, 1));
} catch (CoreException e) { } catch (CoreException e) {
// This had better be allowed during a build // This had better be allowed during a build
ManagedBuilderCorePlugin.log(e);
} }
} }
} }
@ -811,7 +811,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
depFile.delete(true, new SubProgressMonitor(monitor, 1)); depFile.delete(true, new SubProgressMonitor(monitor, 1));
} catch (CoreException e) { } catch (CoreException e) {
// This had better be allowed during a build // This had better be allowed during a build
ManagedBuilderCorePlugin.log(e);
} }
} }
} }
@ -866,7 +866,6 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
throw e; throw e;
} catch (IOException e) { } catch (IOException e) {
// Keep trying // Keep trying
ManagedBuilderCorePlugin.log(e);
continue; continue;
} }
} }
@ -1229,7 +1228,6 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
firstLine = (String) deps.get(0); firstLine = (String) deps.get(0);
} catch (ArrayIndexOutOfBoundsException e) { } catch (ArrayIndexOutOfBoundsException e) {
// This makes no sense so bail // This makes no sense so bail
ManagedBuilderCorePlugin.log(e);
return; return;
} }
@ -1522,7 +1520,6 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
throw e; throw e;
} catch (IOException e) { } catch (IOException e) {
// This looks like a problem reading or writing the file // This looks like a problem reading or writing the file
ManagedBuilderCorePlugin.log(e);
continue; continue;
} }
} }
@ -1541,12 +1538,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
// Populate the makefile if any source files have been found in the project // Populate the makefile if any source files have been found in the project
if (getSubdirList().isEmpty()) { if (getSubdirList().isEmpty()) {
throw new CoreException(new Status( monitor.subTask(ManagedMakeMessages.getFormattedString("MakefileGenerator.warning.no.source", project.getName())); //$NON-NLS-1$
IStatus.WARNING,
ManagedBuilderCorePlugin.getUniqueIdentifier(),
NO_SOURCE_FOLDERS,
new String(),
null));
} }
// Create the top-level directory for the build output // Create the top-level directory for the build output