diff options
author | John Arthorne | 2008-01-11 22:07:13 +0000 |
---|---|---|
committer | John Arthorne | 2008-01-11 22:07:13 +0000 |
commit | 0a62cad891cb3eee1b25743dbbe183a6ddd60dc6 (patch) | |
tree | 0afdcaa54b705d35eab992971fae7127df80a4ee /bundles/org.eclipse.equinox.p2.artifact.repository/src/org | |
parent | e44b8b34e81b0969fd11e066872f201318197af6 (diff) | |
download | rt.equinox.p2-0a62cad891cb3eee1b25743dbbe183a6ddd60dc6.tar.gz rt.equinox.p2-0a62cad891cb3eee1b25743dbbe183a6ddd60dc6.tar.xz rt.equinox.p2-0a62cad891cb3eee1b25743dbbe183a6ddd60dc6.zip |
Create constant for simple artifact repository type
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.artifact.repository/src/org')
3 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/mirror/MirrorApplication.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/mirror/MirrorApplication.java index 984220f5c..2bbd4918b 100644 --- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/mirror/MirrorApplication.java +++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/mirror/MirrorApplication.java @@ -65,7 +65,7 @@ public class MirrorApplication implements IApplication { // the given repo location is not an existing repo so we have to create something // TODO for now create a Simple repo by default. String repositoryName = destinationLocation + " - artifacts"; //$NON-NLS-1$ - return manager.createRepository(destinationLocation, repositoryName, "org.eclipse.equinox.p2.artifact.repository.simpleRepository"); //$NON-NLS-1$ + return manager.createRepository(destinationLocation, repositoryName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY); } public void stop() { diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/ArtifactRepositoryManager.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/ArtifactRepositoryManager.java index 24288b113..a9c69a0dd 100644 --- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/ArtifactRepositoryManager.java +++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/ArtifactRepositoryManager.java @@ -398,7 +398,7 @@ public class ArtifactRepositoryManager implements IArtifactRepositoryManager { // TODO should do something here since we are failing to restore. return; try { - SimpleArtifactRepository cache = (SimpleArtifactRepository) createRepository(location.getArtifactRepositoryURL(), "download cache", "org.eclipse.equinox.p2.artifact.repository.simpleRepository"); //$NON-NLS-1$ //$NON-NLS-2$ + SimpleArtifactRepository cache = (SimpleArtifactRepository) createRepository(location.getArtifactRepositoryURL(), "download cache", TYPE_SIMPLE_REPOSITORY); //$NON-NLS-1$ cache.setProperty(IRepository.PROP_SYSTEM, Boolean.TRUE.toString()); } catch (ProvisionException e) { LogHelper.log(e); diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java index a65b1d8f3..99189bca2 100644 --- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java +++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java @@ -147,7 +147,7 @@ public class SimpleArtifactRepository extends AbstractArtifactRepository impleme {"(& (namespace=eclipse) (classifier=native))", "${repoUrl}/native/${id}_${version}"}, //$NON-NLS-1$ //$NON-NLS-2$ {"(& (namespace=eclipse) (classifier=feature))", "${repoUrl}/features/${id}_${version}.jar"}}; //$NON-NLS-1$//$NON-NLS-2$ private static final String JAR_EXTENSION = ".jar"; //$NON-NLS-1$ - static final private String REPOSITORY_TYPE = "org.eclipse.equinox.p2.artifact.repository.simpleRepository"; //$NON-NLS-1$ + static final private String REPOSITORY_TYPE = IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY; static final private Integer REPOSITORY_VERSION = new Integer(1); private static final String XML_EXTENSION = ".xml"; //$NON-NLS-1$ |