Package com.github.sardine.ant.command
Class Copy
java.lang.Object
org.apache.tools.ant.ProjectComponent
com.github.sardine.ant.Command
com.github.sardine.ant.command.Copy
- All Implemented Interfaces:
Cloneable
public class Copy extends Command
A nice ant wrapper around sardine.copy().
- Author:
- Jon Stevens
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Copy() -
Method Summary
Modifier and Type Method Description protected voidexecute()Execute the command.voidsetDstUrl(String dstUrl)Set the destination URLvoidsetSrcUrl(String srcUrl)Set the source URLprotected voidvalidateAttributes()This is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.
-
Constructor Details
-
Copy
public Copy()
-
-
Method Details
-
execute
Execute the command. -
validateAttributes
This is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.- Specified by:
validateAttributesin classCommand- Throws:
Exception- if the command is misconfigured
-
setSrcUrl
Set the source URL -
setDstUrl
Set the destination URL
-