X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=inline;f=eclipse%2Fplugins%2Forg.argeo.slc.ide.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fide%2Fui%2FDeployedSlcSystem.java;fp=eclipse%2Fplugins%2Forg.argeo.slc.ide.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fide%2Fui%2FDeployedSlcSystem.java;h=0000000000000000000000000000000000000000;hb=651d33e13bfa9a7b46464be412023ee747e612e8;hp=89924322aec5dc521169bf4ccbfb0a4ab97c211e;hpb=868102c0f0220e12eca836b6ec9b3a2b9a3441e4;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/DeployedSlcSystem.java b/eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/DeployedSlcSystem.java deleted file mode 100644 index 89924322a..000000000 --- a/eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/DeployedSlcSystem.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.argeo.slc.ide.ui; - -import java.io.File; -import java.io.IOException; -import java.util.List; -import java.util.Vector; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.jdt.launching.IVMInstall; -import org.eclipse.jdt.launching.JavaRuntime; - -public class DeployedSlcSystem implements SlcSystem { - private File baseDir; - private String relLibDir = "lib"; - - public DeployedSlcSystem(String baseDirPath) { - try { - this.baseDir = new File(baseDirPath).getCanonicalFile(); - } catch (IOException e) { - throw new RuntimeException("Cannot get path for " + baseDirPath, e); - } - } - - public String[] getClasspath() throws CoreException { - List classpath = new Vector(); - File libDir = new File(baseDir.getPath() + File.separator + relLibDir); - File[] files = libDir.listFiles(); - for (File file : files) { - try { - classpath.add(file.getCanonicalPath()); - } catch (IOException e) { - throw new RuntimeException("Cannot get path for " + file, e); - } - } - return classpath.toArray(new String[classpath.size()]); - } - - public IVMInstall getVmInstall() throws CoreException { - return JavaRuntime.getDefaultVMInstall(); - } - - public String getAntHome() { - return baseDir.getPath(); - } - - public String getJavaLibraryPath() { - return baseDir.getPath() + File.separator + "bin"; - } - -}