| Constructor and Description |
|---|
Put() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredFileset(org.apache.tools.ant.types.FileSet value)
Add a source file set.
|
org.apache.tools.ant.types.FilterChain |
createFilterChain()
Add a FilterChain.
|
org.apache.tools.ant.types.FilterSet |
createFilterSet()
Add a filterset.
|
protected void |
execute()
Execute the command.
|
String |
getEncoding()
Get the character encoding to be used.
|
boolean |
getInMemoryFiltering()
Get the setting for in memory filtering.
|
String |
getOutputEncoding()
Get the character encoding for output files.
|
void |
setContentType(String contentType)
Set optional content type of the source file.
|
void |
setEncoding(String encoding)
Set the character encoding.
|
void |
setFile(File file)
Set source file.
|
void |
setInMemoryFiltering(boolean inMemoryFiltering)
Defines whether the filtering result should be stored in memory or in a temporary file before it becomes
put.
|
void |
setOutputEncoding(String encoding)
Set the character encoding for output files.
|
void |
setUrl(String urlString)
Set destination URL.
|
protected void |
validateAttributes()
This is called prior to
Command.execute() in order to enable the command implementation to validate
the provided attributes. |
executeCommand, getSardine, setTaskprotected void execute()
throws Exception
protected void validateAttributes()
throws Exception
Command.execute() in order to enable the command implementation to validate
the provided attributes.validateAttributes in class CommandException - if the command is misconfiguredpublic void setUrl(String urlString)
public void setFile(File file)
public void setContentType(String contentType)
public void addConfiguredFileset(org.apache.tools.ant.types.FileSet value)
public org.apache.tools.ant.types.FilterSet createFilterSet()
public org.apache.tools.ant.types.FilterChain createFilterChain()
public void setEncoding(String encoding)
encoding - the character encoding.public String getEncoding()
null if not set.public void setOutputEncoding(String encoding)
encoding - the output character encoding.public String getOutputEncoding()
null if not set.public boolean getInMemoryFiltering()
public void setInMemoryFiltering(boolean inMemoryFiltering)
Due to the filtering implementation of Ant is not done in a streaming manner, it is required to store the result before it can be put to the destination URL. For small files it is reasonable to hold the result in memory. Large files will require a according amount of heap memory and thus it is advisable to turn the in memory buffer off.
inMemoryFiltering - default is true; false will write the results to a
temporary fileCopyright © 2019. All rights reserved.