Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepasrap2012-11-13 17:14:07 -0500
committerPascal Rapicault2012-11-16 22:46:50 -0500
commit2e76918e2f52b5bbccb6362d15b9641d1b36b8f9 (patch)
tree5955c1176a571ddfbb1de6a8e919b5fd9a283855 /bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse
parentf0c014f98919be76c6abd2a8fb8d172500774099 (diff)
downloadrt.equinox.p2-2e76918e2f52b5bbccb6362d15b9641d1b36b8f9.tar.gz
rt.equinox.p2-2e76918e2f52b5bbccb6362d15b9641d1b36b8f9.tar.xz
rt.equinox.p2-2e76918e2f52b5bbccb6362d15b9641d1b36b8f9.zip
Allow to install from a repository without copying the artifacts
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java9
1 files changed, 7 insertions, 2 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 a25b594c0..f782f626b 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
@@ -10,12 +10,11 @@
*******************************************************************************/
package org.eclipse.equinox.p2.internal.repository.tools.tasks;
-import org.eclipse.equinox.p2.core.ProvisionException;
-
import java.util.List;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.equinox.p2.core.ProvisionException;
import org.eclipse.equinox.p2.internal.repository.tools.Messages;
import org.eclipse.equinox.p2.internal.repository.tools.Repo2Runnable;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
@@ -33,6 +32,7 @@ import org.eclipse.osgi.util.NLS;
public class Repo2RunnableTask extends AbstractRepositoryTask {
private boolean failOnError = true;
+ private boolean flagAsRunnable = false;
/*
* Constructor for the class. Create a new instance of the application
@@ -54,6 +54,7 @@ public class Repo2RunnableTask extends AbstractRepositoryTask {
if ((ius == null || ius.size() == 0) && !(application.hasArtifactSources() || application.hasMetadataSources()))
throw new BuildException(Messages.exception_needIUsOrNonEmptyRepo);
application.setSourceIUs(ius);
+ ((Repo2Runnable) application).setFlagAsRunnable(flagAsRunnable);
IStatus result = application.run(null);
if (failOnError && result.matches(IStatus.ERROR))
throw new ProvisionException(result);
@@ -69,4 +70,8 @@ public class Repo2RunnableTask extends AbstractRepositoryTask {
public void setFailOnError(boolean fail) {
this.failOnError = fail;
}
+
+ public void setFlagAsRunnable(boolean runnable) {
+ this.flagAsRunnable = runnable;
+ }
}

Back to the top