6 |
brianR |
1 |
/*
|
|
|
2 |
* Copyright 2010 Brian Rosenberger (Brutex Network)
|
|
|
3 |
*
|
|
|
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
|
|
|
7 |
*
|
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
*
|
|
|
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.
|
|
|
15 |
*/
|
|
|
16 |
|
|
|
17 |
package net.brutex.xservices.types;
|
|
|
18 |
|
12 |
brianR |
19 |
import java.util.List;
|
6 |
brianR |
20 |
import javax.xml.bind.annotation.XmlElement;
|
|
|
21 |
import javax.xml.bind.annotation.XmlType;
|
10 |
brianR |
22 |
import net.brutex.xservices.util.BrutexNamespaces;
|
6 |
brianR |
23 |
|
|
|
24 |
/**
|
|
|
25 |
*
|
|
|
26 |
* @author Brian Rosenberger, bru@brutex.de
|
|
|
27 |
*/
|
10 |
brianR |
28 |
@XmlType(namespace=BrutexNamespaces.WS_XSERVICES, name="ReturnCodeType")
|
6 |
brianR |
29 |
public class ReturnCode {
|
|
|
30 |
|
10 |
brianR |
31 |
/**
|
|
|
32 |
* Numeric return code.
|
|
|
33 |
*
|
|
|
34 |
* The numeric return code of the last operation on the underlying operation
|
|
|
35 |
* systen (OS). In general the return code indicates the failure or success
|
|
|
36 |
* of a command. Which value indicates success is dependent on the OS, most
|
|
|
37 |
* linux based systems use "0" for success.
|
|
|
38 |
*/
|
|
|
39 |
@XmlElement(required=true, nillable=false)
|
|
|
40 |
public int returnCode=0;
|
6 |
brianR |
41 |
|
10 |
brianR |
42 |
/**
|
|
|
43 |
* Standard Out as provided by the OS.
|
|
|
44 |
*
|
|
|
45 |
* The stdOut given by the last operation (if any).
|
|
|
46 |
*/
|
|
|
47 |
@XmlElement(name="stdOut", nillable=false)
|
|
|
48 |
public String stdOut="";
|
6 |
brianR |
49 |
|
10 |
brianR |
50 |
/**
|
|
|
51 |
* The Standard Error as provided by the OS.
|
|
|
52 |
*
|
|
|
53 |
* The stdErr given by the last operation (if any). The presents of any
|
|
|
54 |
* value here ususally indicates that a failure has occured.
|
|
|
55 |
*/
|
|
|
56 |
@XmlElement(name="stdErr", nillable=false)
|
|
|
57 |
public String stdErr="";
|
|
|
58 |
|
12 |
brianR |
59 |
|
|
|
60 |
@XmlElement(name="propertyList", nillable=true)
|
|
|
61 |
public List<AntProperty> property = null;
|
|
|
62 |
|
10 |
brianR |
63 |
/**
|
|
|
64 |
* Create a new ReturnCode default constructor.
|
|
|
65 |
*/
|
6 |
brianR |
66 |
public ReturnCode() {
|
|
|
67 |
}
|
|
|
68 |
|
10 |
brianR |
69 |
/**
|
|
|
70 |
* Create a new ReturnCode.
|
|
|
71 |
*
|
|
|
72 |
* @param returnCode return code integer value
|
|
|
73 |
* @param stdOut standard out string
|
|
|
74 |
* @param stdErr standard error string
|
|
|
75 |
*/
|
12 |
brianR |
76 |
public ReturnCode(int returnCode, String stdOut, String stdErr, List<AntProperty> props) {
|
6 |
brianR |
77 |
this.returnCode = returnCode;
|
|
|
78 |
this.stdOut = stdOut;
|
|
|
79 |
this.stdErr = stdErr;
|
12 |
brianR |
80 |
this.property = props;
|
6 |
brianR |
81 |
}
|
|
|
82 |
}
|