1 package org.apache.maven.continuum.execution;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 /**
23 * @author <a href="mailto:olamy@codehaus.org">olamy</a>
24 * @version $Id: ExecutorConfigurator.java 729143 2008-12-23 22:21:06Z olamy $
25 * @since 19 juin 07
26 */
27 public class ExecutorConfigurator
28 {
29 private String executable;
30
31 private String relativePath;
32
33 private String envVar;
34
35 private String versionArgument;
36
37
38 public ExecutorConfigurator()
39 {
40 // nothing
41 }
42
43 public ExecutorConfigurator( String executable, String relativePath, String envVar, String versionArgument )
44 {
45 this.executable = executable;
46 this.relativePath = relativePath;
47 this.envVar = envVar;
48 this.versionArgument = versionArgument;
49 }
50
51 /**
52 * @return mvn for maven2 ExecutorConfigurator
53 */
54 public String getExecutable()
55 {
56 return executable;
57 }
58
59 public void setExecutable( String executable )
60 {
61 this.executable = executable;
62 }
63
64 /**
65 * @return bin for maven2 ExecutorConfigurator
66 */
67 public String getRelativePath()
68 {
69 return relativePath;
70 }
71
72 public void setRelativePath( String relativePath )
73 {
74 this.relativePath = relativePath;
75 }
76
77 /**
78 * @return M2_HOME for maven2 ExecutorConfigurator
79 */
80 public String getEnvVar()
81 {
82 return envVar;
83 }
84
85 public void setEnvVar( String envVar )
86 {
87 this.envVar = envVar;
88 }
89
90 /**
91 * @return the versionArgument
92 */
93 public String getVersionArgument()
94 {
95 return versionArgument;
96 }
97
98 /**
99 * @param versionArgument the versionArgument to set
100 */
101 public void setVersionArgument( String versionArgument )
102 {
103 this.versionArgument = versionArgument;
104 }
105
106 }