| Modifier and Type | Class and Description |
|---|---|
static class |
Mklink.LinkType |
description, location, project| Constructor and Description |
|---|
Mklink() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Called by the project to let the task do its work.
|
void |
setLink(java.io.File link)
The link to create.
|
void |
setLinkType(Mklink.LinkType type)
The type of link to create.
|
void |
setOverwrite(boolean owrite)
Set overwrite mode.
|
void |
setTargetFile(java.io.File target)
The link target specified as file.
|
void |
setTargetText(java.lang.String target)
The link target specified as text.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void setLink(java.io.File link)
link - the path of the link to createpublic void setTargetFile(java.io.File target)
target - the path of the link taget as resolved filepublic void setTargetText(java.lang.String target)
target - the path of the link taget as stringpublic void setLinkType(Mklink.LinkType type)
If not specified explicitly and target is given as a file the link type will be guessed to be the proper type of symlink for the target type.
type - one of "file-symlink", "dir-symlink", "hardlink" or "junction".public void setOverwrite(boolean owrite)
owrite - If true overwrite existing links.public void execute()
throws BuildException
Taskexecute in class TaskBuildException - if something goes wrong with the build.