|
Lines 27-32
Link Here
|
| 27 |
|
27 |
|
| 28 |
private File mirrorLog; // file to log mirror output to (optional) |
28 |
private File mirrorLog; // file to log mirror output to (optional) |
| 29 |
private ComparatorDescription comparator; |
29 |
private ComparatorDescription comparator; |
|
|
30 |
private boolean ignoreErrors = false; |
| 30 |
|
31 |
|
| 31 |
public MirrorTask() { |
32 |
public MirrorTask() { |
| 32 |
application = new MirrorApplication(); |
33 |
application = new MirrorApplication(); |
|
Lines 59-65
Link Here
|
| 59 |
List<IInstallableUnit> ius = prepareIUs(); |
60 |
List<IInstallableUnit> ius = prepareIUs(); |
| 60 |
application.setSourceIUs(ius); |
61 |
application.setSourceIUs(ius); |
| 61 |
IStatus result = application.run(null); |
62 |
IStatus result = application.run(null); |
| 62 |
if (result.matches(IStatus.ERROR)) |
63 |
if (!ignoreErrors && result.matches(IStatus.ERROR)) |
| 63 |
throw new BuildException(TaskHelper.statusToString(result, IStatus.ERROR, null).toString()); |
64 |
throw new BuildException(TaskHelper.statusToString(result, IStatus.ERROR, null).toString()); |
| 64 |
} catch (ProvisionException e) { |
65 |
} catch (ProvisionException e) { |
| 65 |
throw new BuildException(e); |
66 |
throw new BuildException(e); |
|
Lines 111-116
Link Here
|
| 111 |
* Set whether or not we should ignore errors when running the mirror application. |
112 |
* Set whether or not we should ignore errors when running the mirror application. |
| 112 |
*/ |
113 |
*/ |
| 113 |
public void setIgnoreErrors(boolean value) { |
114 |
public void setIgnoreErrors(boolean value) { |
|
|
115 |
ignoreErrors = value; |
| 114 |
((MirrorApplication) application).setIgnoreErrors(value); |
116 |
((MirrorApplication) application).setIgnoreErrors(value); |
| 115 |
} |
117 |
} |
| 116 |
|
118 |
|