Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2012-02-29 11:00:19 -0500
committerFred Bricon2012-02-29 11:00:19 -0500
commita110d90acc856de4057c8e7f4447ef2921c85472 (patch)
treee68a043d38de3de6fc29e75781da638a93a840eb /org.eclipse.m2e.discovery
parentb8faae0fec669fdf6158badad383ff37c200b34d (diff)
downloadm2e-core-a110d90acc856de4057c8e7f4447ef2921c85472.tar.gz
m2e-core-a110d90acc856de4057c8e7f4447ef2921c85472.tar.xz
m2e-core-a110d90acc856de4057c8e7f4447ef2921c85472.zip
337912 : add -Dm2e.discovery.url environment property support
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.discovery')
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java
index e27d5303..bee80939 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java
@@ -59,8 +59,10 @@ public class MavenDiscovery {
private static final Tag MAVEN_TAG = new Tag("maven", Messages.MavenDiscovery_Wizard_MavenTag); //$NON-NLS-1$
- public static final String PATH = "http://download.eclipse.org/technology/m2e/discovery/directory-1.1.xml"; //$NON-NLS-1$
-
+ public static final String DEFAULT_URL = "http://download.eclipse.org/technology/m2e/discovery/directory-1.1.xml"; //$NON-NLS-1$
+
+ public static final String PATH = System.getProperty("m2e.discovery.url", DEFAULT_URL); //$NON-NLS-1$
+
public static final String LIFECYCLE_PATH = "lifecycle/"; //$NON-NLS-1$
public static final String LIFECYCLE_EXT = ".xml"; //$NON-NLS-1$

Back to the top