1 package org
.argeo
.slc
.core
.deploy
;
5 import java
.util
.TreeMap
;
7 import org
.apache
.commons
.logging
.Log
;
8 import org
.apache
.commons
.logging
.LogFactory
;
9 import org
.argeo
.slc
.core
.build
.Distribution
;
11 public class SimpleExecutables
implements InstalledExecutables
{
12 private final static Log log
= LogFactory
.getLog(SimpleExecutables
.class);
14 private String baseDir
;
15 private Map
<String
, String
> paths
= new TreeMap
<String
, String
>();
17 private Distribution distribution
;
19 public String
getExecutablePath(String key
) {
20 String path
= paths
.get(key
);
22 if (log
.isDebugEnabled())
23 log
.debug("No executable path found for key " + key
24 + ", using the key as executable name.");
29 path
= baseDir
+ File
.separator
+ path
;
33 public String
getDeployedSystemId() {
34 // TODO Auto-generated method stub
38 public DeploymentData
getDeploymentData() {
39 // TODO Auto-generated method stub
43 public Distribution
getDistribution() {
47 public TargetData
getTargetData() {
48 // TODO Auto-generated method stub
52 public String
getBaseDir() {
56 public void setBaseDir(String baseDir
) {
57 this.baseDir
= baseDir
;
60 public Map
<String
, String
> getPaths() {
64 public void setPaths(Map
<String
, String
> paths
) {
68 public void setDistribution(Distribution distribution
) {
69 this.distribution
= distribution
;