Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2009-02-04 18:57:41 +0000
committerDJ Houghton2009-02-04 18:57:41 +0000
commite6670ab072018c5fdc741898e9989a07fd831602 (patch)
treea6dcfdb45d6e2b910798007d9a75366a23808864 /bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal
parent5345721445bfd47f75a14fd5e85ce4797358536e (diff)
downloadrt.equinox.p2-e6670ab072018c5fdc741898e9989a07fd831602.tar.gz
rt.equinox.p2-e6670ab072018c5fdc741898e9989a07fd831602.tar.xz
rt.equinox.p2-e6670ab072018c5fdc741898e9989a07fd831602.zip
Bug 263678 - Allow repository transformer to work with existing artifact repositories
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
index d4f1f8deb..f52732427 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
@@ -16,6 +16,7 @@ import java.net.URISyntaxException;
import java.util.*;
import org.apache.tools.ant.*;
import org.apache.tools.ant.types.FileSet;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository;
import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
import org.eclipse.equinox.internal.provisional.p2.core.Version;
@@ -54,7 +55,9 @@ public class Repo2RunnableTask extends Task {
try {
prepareSourceRepos();
prepareIUs();
- application.run(null);
+ IStatus result = application.run(null);
+ if (result.matches(IStatus.ERROR))
+ throw new ProvisionException(result);
} catch (ProvisionException e) {
throw new BuildException("Error occurred while transforming repository.", e);
} catch (URISyntaxException e) {

Back to the top