Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Oberlies2013-03-12 05:46:23 -0400
committerTobias Oberlies2013-03-12 05:46:23 -0400
commit43d03cdba58ef6cb0c94b0e5a23ddf101778c7cd (patch)
tree4e9316f0f9075f0ef954120affc966776cbc70f4 /bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse
parent82481b8cc624dcb849b30fc4bb5426db301bb59d (diff)
downloadrt.equinox.p2-43d03cdba58ef6cb0c94b0e5a23ddf101778c7cd.tar.gz
rt.equinox.p2-43d03cdba58ef6cb0c94b0e5a23ddf101778c7cd.tar.xz
rt.equinox.p2-43d03cdba58ef6cb0c94b0e5a23ddf101778c7cd.zip
391962 Create atomic repositories by defaultI20130313-2000I20130313-0800I20130312-2000
- Bug 344851 already added the possibility to set the atomic flag on composite repositories. As follow-up of the discussion on bug 356561, the default for newly created repositories is changed to atomic=true. Bug: 391962
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/CreateCompositeArtifactRepositoryTask.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/CreateCompositeArtifactRepositoryTask.java b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/CreateCompositeArtifactRepositoryTask.java
index 5cfac9125..000d325b2 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/CreateCompositeArtifactRepositoryTask.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/CreateCompositeArtifactRepositoryTask.java
@@ -31,7 +31,7 @@ public class CreateCompositeArtifactRepositoryTask extends Task {
URI location; // desired location of the composite repository
String name = "Composite Artifact Repository";
- boolean atomic = false;
+ boolean atomic = true; // bug 356561: newly created repositories shall be atomic (by default)
boolean compressed = true;
boolean failOnExists = false; // should we fail if a repo already exists?
Map<String, String> properties = new HashMap<String, String>();
@@ -69,8 +69,7 @@ public class CreateCompositeArtifactRepositoryTask extends Task {
// set the properties
if (compressed)
properties.put(IRepository.PROP_COMPRESSED, Boolean.toString(true));
- if (atomic)
- properties.put(CompositeArtifactRepository.PROP_ATOMIC_LOADING, Boolean.toString(true));
+ properties.put(CompositeArtifactRepository.PROP_ATOMIC_LOADING, Boolean.toString(atomic));
// create the repository
try {

Back to the top