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
.build
.Distribution
;
10 import org
.argeo
.slc
.deploy
.DeploymentData
;
11 import org
.argeo
.slc
.deploy
.InstalledExecutables
;
12 import org
.argeo
.slc
.deploy
.TargetData
;
14 public class SimpleExecutables
implements InstalledExecutables
{
15 private final static Log log
= LogFactory
.getLog(SimpleExecutables
.class);
17 private String baseDir
;
18 private Map
<String
, String
> paths
= new TreeMap
<String
, String
>();
20 private Distribution distribution
;
22 public String
getExecutablePath(String key
) {
23 String path
= paths
.get(key
);
25 if (log
.isDebugEnabled())
26 log
.debug("No executable path found for key " + key
27 + ", using the key as executable name.");
32 path
= baseDir
+ File
.separator
+ path
;
36 public String
getDeployedSystemId() {
37 // TODO Auto-generated method stub
41 public DeploymentData
getDeploymentData() {
42 // TODO Auto-generated method stub
46 public Distribution
getDistribution() {
50 public TargetData
getTargetData() {
51 // TODO Auto-generated method stub
55 public String
getBaseDir() {
59 public void setBaseDir(String baseDir
) {
60 this.baseDir
= baseDir
;
63 public Map
<String
, String
> getPaths() {
67 public void setPaths(Map
<String
, String
> paths
) {
71 public void setDistribution(Distribution distribution
) {
72 this.distribution
= distribution
;