Browse Source

whitespace

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1555872 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 11 years ago
parent
commit
c7befb5bd4
1 changed files with 19 additions and 19 deletions
  1. +19
    -19
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java

+ 19
- 19
src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java View File

@@ -88,7 +88,7 @@ public class SSHExec extends SSHBase {
* To suppress writing logs to System.err * To suppress writing logs to System.err
*/ */
private boolean suppressSystemErr = false; private boolean suppressSystemErr = false;
/** /**
* Constructor for SSHExecTask. * Constructor for SSHExecTask.
*/ */
@@ -141,7 +141,7 @@ public class SSHExec extends SSHBase {
* @since Apache Ant 1.9.4 * @since Apache Ant 1.9.4
*/ */
public void setErrorOutput(File output) { public void setErrorOutput(File output) {
errorFile = output;
errorFile = output;
} }


/** /**
@@ -164,7 +164,7 @@ public class SSHExec extends SSHBase {
* @since Ant 1.8.0 * @since Ant 1.8.0
*/ */
public void setInputProperty(String inputProperty) { public void setInputProperty(String inputProperty) {
this.inputProperty = inputProperty;
this.inputProperty = inputProperty;
} }


/** /**
@@ -175,7 +175,7 @@ public class SSHExec extends SSHBase {
* @since Ant 1.8.3 * @since Ant 1.8.3
*/ */
public void setInputString(String inputString) { public void setInputString(String inputString) {
this.inputString = inputString;
this.inputString = inputString;
} }


/** /**
@@ -188,7 +188,7 @@ public class SSHExec extends SSHBase {
public void setAppend(boolean append) { public void setAppend(boolean append) {
this.append = append; this.append = append;
} }
/** /**
* Determines if the output is appended to the file given in * Determines if the output is appended to the file given in
* <code>setErrorOutput</code>. Default is false, that is, overwrite * <code>setErrorOutput</code>. Default is false, that is, overwrite
@@ -196,9 +196,9 @@ public class SSHExec extends SSHBase {
* *
* @param append True to append to an existing file, false to overwrite. * @param append True to append to an existing file, false to overwrite.
* @since Apache Ant 1.9.4 * @since Apache Ant 1.9.4
*/
*/
public void setErrAppend(boolean appenderr) { public void setErrAppend(boolean appenderr) {
this.appenderr = appenderr;
this.appenderr = appenderr;
} }


/** /**
@@ -210,27 +210,27 @@ public class SSHExec extends SSHBase {
public void setOutputproperty(String property) { public void setOutputproperty(String property) {
outputProperty = property; outputProperty = property;
} }
/** /**
* If set, the erroroutput of the command will be stored in the given property. * If set, the erroroutput of the command will be stored in the given property.
* *
* @param property The name of the property in which the command erroroutput * @param property The name of the property in which the command erroroutput
* will be stored. * will be stored.
* @since Apache Ant 1.9.4 * @since Apache Ant 1.9.4
*/
*/
public void setErrorproperty (String property) { public void setErrorproperty (String property) {
errorProperty = property;
errorProperty = property;
} }
/** /**
* If set, the exitcode of the command will be stored in the given property. * If set, the exitcode of the command will be stored in the given property.
* *
* @param property The name of the property in which the exitcode * @param property The name of the property in which the exitcode
* will be stored. * will be stored.
* @since Apache Ant 1.9.4 * @since Apache Ant 1.9.4
*/
*/
public void setResultproperty(String property) { public void setResultproperty(String property) {
resultProperty = property;
resultProperty = property;
} }


/** /**
@@ -249,7 +249,7 @@ public class SSHExec extends SSHBase {
*/ */
public void setUseSystemIn(boolean useSystemIn) { public void setUseSystemIn(boolean useSystemIn) {
this.useSystemIn = useSystemIn; this.useSystemIn = useSystemIn;
}
}


/** /**
* If suppressSystemOut is <code>true</code>, output will not be sent to System.out<br/> * If suppressSystemOut is <code>true</code>, output will not be sent to System.out<br/>
@@ -260,7 +260,7 @@ public class SSHExec extends SSHBase {
{ {
this.suppressSystemOut = suppressSystemOut; this.suppressSystemOut = suppressSystemOut;
} }
/** /**
* If suppressSystemErr is <code>true</code>, output will not be sent to System.err<br/> * If suppressSystemErr is <code>true</code>, output will not be sent to System.err<br/>
* If suppressSystemErr is <code>false</code>, normal behavior * If suppressSystemErr is <code>false</code>, normal behavior
@@ -270,14 +270,14 @@ public class SSHExec extends SSHBase {
{ {
this.suppressSystemErr = suppressSystemErr; this.suppressSystemErr = suppressSystemErr;
} }
/** /**
* Execute the command on the remote host. * Execute the command on the remote host.
* *
* @exception BuildException Most likely a network error or bad parameter. * @exception BuildException Most likely a network error or bad parameter.
*/ */
public void execute() throws BuildException { public void execute() throws BuildException {
if (getHost() == null) { if (getHost() == null) {
throw new BuildException("Host is required."); throw new BuildException("Host is required.");
} }
@@ -374,7 +374,7 @@ public class SSHExec extends SSHBase {
String inputData = getProject().getProperty(inputProperty) ; String inputData = getProject().getProperty(inputProperty) ;
if (inputData != null) { if (inputData != null) {
istream = new ByteArrayInputStream(inputData.getBytes()) ; istream = new ByteArrayInputStream(inputData.getBytes()) ;
}
}
} }
if (inputString != null) { if (inputString != null) {
istream = new ByteArrayInputStream(inputString.getBytes()); istream = new ByteArrayInputStream(inputString.getBytes());
@@ -433,7 +433,7 @@ public class SSHExec extends SSHBase {
} }
// set errorProperty // set errorProperty
if (errorProperty != null) { if (errorProperty != null) {
getProject().setNewProperty(errorProperty, errout.toString());
getProject().setNewProperty(errorProperty, errout.toString());
} }
// stderr to errorFile // stderr to errorFile
if (errorFile != null) { if (errorFile != null) {


Loading…
Cancel
Save