1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
David Inglis 2003-11-28 21:42:18 +00:00
parent 21f4465862
commit c30833b28f

View file

@ -80,12 +80,13 @@ public class TargetBuild {
static public void run(boolean fork, IRunnableContext context, final IMakeTarget[] targets) throws InvocationTargetException {
try {
saveAllResources(targets);
context.run(fork, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
saveAllResources(targets);
monitor.beginTask("Building Targets...", targets.length);
for( int i = 0; i < targets.length; i++) {
targets[i].build(new SubProgressMonitor(monitor, 1));