2 * Copyright (C) 2007-2012 Argeo GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.slc
.core
.deploy
;
20 import java
.util
.TreeMap
;
22 import org
.apache
.commons
.logging
.Log
;
23 import org
.apache
.commons
.logging
.LogFactory
;
24 import org
.argeo
.slc
.build
.Distribution
;
25 import org
.argeo
.slc
.deploy
.DeploymentData
;
26 import org
.argeo
.slc
.deploy
.InstalledExecutables
;
27 import org
.argeo
.slc
.deploy
.TargetData
;
29 public class SimpleExecutables
implements InstalledExecutables
{
30 private final static Log log
= LogFactory
.getLog(SimpleExecutables
.class);
32 private String baseDir
;
33 private Map
<String
, String
> paths
= new TreeMap
<String
, String
>();
35 private Distribution distribution
;
37 public String
getExecutablePath(String key
) {
38 String path
= paths
.get(key
);
40 if (log
.isDebugEnabled())
41 log
.debug("No executable path found for key " + key
42 + ", using the key as executable name.");
47 path
= baseDir
+ File
.separator
+ path
;
51 public String
getDeployedSystemId() {
52 // TODO Auto-generated method stub
56 public DeploymentData
getDeploymentData() {
57 // TODO Auto-generated method stub
61 public Distribution
getDistribution() {
65 public TargetData
getTargetData() {
66 // TODO Auto-generated method stub
70 public String
getBaseDir() {
74 public void setBaseDir(String baseDir
) {
75 this.baseDir
= baseDir
;
78 public Map
<String
, String
> getPaths() {
82 public void setPaths(Map
<String
, String
> paths
) {
86 public void setDistribution(Distribution distribution
) {
87 this.distribution
= distribution
;