Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/util/SetupUtil.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/util/SetupUtil.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/util/SetupUtil.java b/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/util/SetupUtil.java
deleted file mode 100644
index 56d2d8bafc..0000000000
--- a/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/util/SetupUtil.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (c) 2013, 2014 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.releng.setup.util;
-
-import org.eclipse.emf.cdo.releng.internal.setup.AbstractSetupTaskContext;
-
-/**
- * @author Eike Stepper
- */
-public final class SetupUtil
-{
- private SetupUtil()
- {
- }
-
- public static String getProperty(String key)
- {
- return getProperty(key, null);
- }
-
- public static String getProperty(String key, String defaultValue)
- {
- String value = System.getProperty(key);
- if (value == null)
- {
- value = System.getenv(key);
- if (value == null && key.indexOf('.') != -1)
- {
- key = key.replace('.', '_');
- value = getProperty(key, defaultValue);
- }
- }
-
- if (value == null)
- {
- value = defaultValue;
- }
-
- return value;
- }
-
- public static String escape(String string)
- {
- return AbstractSetupTaskContext.escape(string);
- }
-
- public static String encodePath(String path)
- {
- return path.replace(':', '_').replace('/', '_').replace('\\', '_');
- }
-}

Back to the top