PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/ooc/libs/SdkLocator.java

http://github.com/nddrylliog/ooc
Java | 22 lines | 14 code | 8 blank | 0 comment | 2 complexity | 028002b0cb5d463e4e02bc2e154e9457 MD5 | raw file
 1package org.ooc.libs;
 2
 3import java.io.File;
 4import java.util.Map;
 5
 6import org.ooc.utils.ReadEnv;
 7
 8public class SdkLocator {
 9
10	public static File locate() {
11		
12		Map<String, String> env = ReadEnv.getEnv();
13		Object envDist = env.get("OOC_SDK");
14		if(envDist != null) {
15			return new File(envDist.toString());
16		}
17		
18		return new File(DistLocator.locate(), "sdk");
19		
20	}
21
22}