dataminer-pool-manager/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/util/Props.java

76 lines
2.0 KiB
Java

package org.gcube.dataanalysis.dataminer.poolmanager.util;
***REMOVED***
import java.util.Properties;
public class Props ***REMOVED***
public static String home = System.getProperty("user.home");
public Props() ***REMOVED***
***REMOVED***
public String getCSVUrl() ***REMOVED***
Properties props = new Properties();
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
***REMOVED*** loading properites from properties file
try ***REMOVED***
props.load(input);
***REMOVED*** catch (IOException e) ***REMOVED***
***REMOVED*** TODO Auto-generated catch block
e.printStackTrace();
***REMOVED***
***REMOVED*** reading proeprty
String path = props.getProperty("HAPROXY_CSV");
return path;
***REMOVED***
public String getSVNrepo() ***REMOVED***
Properties props = new Properties();
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
***REMOVED*** loading properites from properties file
try ***REMOVED***
props.load(input);
***REMOVED*** catch (IOException e) ***REMOVED***
***REMOVED*** TODO Auto-generated catch block
e.printStackTrace();
***REMOVED***
***REMOVED*** reading proeprty
String path = props.getProperty("SVN_REPO");
return path;
***REMOVED***
public String getStagingHost() ***REMOVED***
Properties props = new Properties();
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
***REMOVED*** loading properites from properties file
try ***REMOVED***
props.load(input);
***REMOVED*** catch (IOException e) ***REMOVED***
***REMOVED*** TODO Auto-generated catch block
e.printStackTrace();
***REMOVED***
***REMOVED*** reading proeprty
String path = props.getProperty("STAGING_HOST");
return path;
***REMOVED***
public static void main(String[] args) ***REMOVED***
***REMOVED***Props a = new Props();
System.out.println(new Props().getSVNrepo());
***REMOVED***System.out.println(a.getStagingHost());
***REMOVED***
***REMOVED***