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
;
20 public String
getExecutablePath(String key
) {
21 String path
= paths
.get(key
);
23 if (log
.isDebugEnabled())
24 log
.debug("No executable path found for key " + key
25 + ", using the key as executable name.");
30 path
= baseDir
+ File
.separator
+ path
;
35 public String
getDeployedSystemId() {
36 // TODO Auto-generated method stub
41 public DeploymentData
getDeploymentData() {
42 // TODO Auto-generated method stub
47 public Distribution
getDistribution() {
52 public TargetData
getTargetData() {
53 // TODO Auto-generated method stub
57 public String
getBaseDir() {
61 public void setBaseDir(String baseDir
) {
62 this.baseDir
= baseDir
;
65 public Map
<String
, String
> getPaths() {
69 public void setPaths(Map
<String
, String
> paths
) {
73 public void setDistribution(Distribution distribution
) {
74 this.distribution
= distribution
;