1 package org
.argeo
.slc
.core
.deploy
;
5 import java
.util
.TreeMap
;
7 import org
.argeo
.api
.cms
.CmsLog
;
8 import org
.argeo
.slc
.build
.Distribution
;
9 import org
.argeo
.slc
.deploy
.DeploymentData
;
10 import org
.argeo
.slc
.deploy
.InstalledExecutables
;
11 import org
.argeo
.slc
.deploy
.TargetData
;
13 public class SimpleExecutables
implements InstalledExecutables
{
14 private final static CmsLog log
= CmsLog
.getLog(SimpleExecutables
.class);
16 private String baseDir
;
17 private Map
<String
, String
> paths
= new TreeMap
<String
, String
>();
19 private Distribution distribution
;
21 public String
getExecutablePath(String key
) {
22 String path
= paths
.get(key
);
24 if (log
.isDebugEnabled())
25 log
.debug("No executable path found for key " + key
26 + ", using the key as executable name.");
31 path
= baseDir
+ File
.separator
+ path
;
35 public String
getDeployedSystemId() {
36 // TODO Auto-generated method stub
40 public DeploymentData
getDeploymentData() {
41 // TODO Auto-generated method stub
45 public Distribution
getDistribution() {
49 public TargetData
getTargetData() {
50 // TODO Auto-generated method stub
54 public String
getBaseDir() {
58 public void setBaseDir(String baseDir
) {
59 this.baseDir
= baseDir
;
62 public Map
<String
, String
> getPaths() {
66 public void setPaths(Map
<String
, String
> paths
) {
70 public void setDistribution(Distribution distribution
) {
71 this.distribution
= distribution
;