mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
This commit is contained in:
parent
21f4465862
commit
c30833b28f
1 changed files with 2 additions and 1 deletions
|
@ -80,12 +80,13 @@ public class TargetBuild {
|
||||||
|
|
||||||
static public void run(boolean fork, IRunnableContext context, final IMakeTarget[] targets) throws InvocationTargetException {
|
static public void run(boolean fork, IRunnableContext context, final IMakeTarget[] targets) throws InvocationTargetException {
|
||||||
try {
|
try {
|
||||||
|
saveAllResources(targets);
|
||||||
|
|
||||||
context.run(fork, true, new IRunnableWithProgress() {
|
context.run(fork, true, new IRunnableWithProgress() {
|
||||||
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
|
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
|
||||||
try {
|
try {
|
||||||
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
saveAllResources(targets);
|
|
||||||
monitor.beginTask("Building Targets...", targets.length);
|
monitor.beginTask("Building Targets...", targets.length);
|
||||||
for( int i = 0; i < targets.length; i++) {
|
for( int i = 0; i < targets.length; i++) {
|
||||||
targets[i].build(new SubProgressMonitor(monitor, 1));
|
targets[i].build(new SubProgressMonitor(monitor, 1));
|
||||||
|
|
Loading…
Add table
Reference in a new issue