@Deprecated
public class HybrisBaseName
extends org.apache.tools.ant.Task
When this task executes, it will set the specified property to the value of the last element in the specified file. If file is a directory, the basename will be the last directory element. If file is a full-path filename, the basename will be the simple file name. If a suffix is specified, and the specified file ends in that suffix, the basename will be the simple file name without the suffix.
| Constructor and Description |
|---|
HybrisBaseName()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Deprecated.
do the work
|
void |
setFile(java.io.File file)
Deprecated.
file or directory to get base name from
|
void |
setProperty(java.lang.String property)
Deprecated.
Property to set base name to.
|
void |
setSuffix(java.lang.String suffix)
Deprecated.
Optional suffix to remove from base name.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFile(java.io.File file)
file - file or directory to get base name frompublic void setProperty(java.lang.String property)
property - name of propertypublic void setSuffix(java.lang.String suffix)
suffix - suffix to remove from base namepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if required attributes are not supplied property and attribute are required attributesCopyright © 2018 SAP SE. All Rights Reserved.