net.sf.antcontrib.antserver.commands
Class SendFileCommand
- Command, Serializable
public class SendFileCommand
Place class description here.
boolean | execute(Project project, long contentLength, InputStream content) -
Execute the command.
|
long | getContentLength() -
Is there additional content being sent from the local
machine to the remote server
|
InputStream | getContentStream() -
Gets the content's input stream.
|
File | getFile()
|
String | getTodir()
|
String | getTofile()
|
void | setFile(File file)
|
void | setTodir(String todir)
|
void | setTofile(String tofile)
|
void | validate(Project project) -
This should throw a build exception if the parameters
are invalid.
|
execute
public boolean execute(Project project,
long contentLength,
InputStream content)
throws Throwable
Execute the command.
- execute in interface Command
project
- The project which is being executed
- If true, the connection will be closed
getContentStream
public InputStream getContentStream()
throws IOException
Gets the content's input stream. Should be called only on the
client side for sending the content over the connection
- getContentStream in interface Command
- getContentStream in interface AbstractCommand
- the content's input stream.
getFile
public File getFile()
getTodir
public String getTodir()
getTofile
public String getTofile()
setFile
public void setFile(File file)
setTodir
public void setTodir(String todir)
setTofile
public void setTofile(String tofile)
validate
public void validate(Project project)
This should throw a build exception if the parameters
are invalid.
- validate in interface Command