@Deprecated public class HybrisBaseName extends 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(File file)
Deprecated.
file or directory to get base name from
|
void |
setProperty(String property)
Deprecated.
Property to set base name to.
|
void |
setSuffix(String suffix)
Deprecated.
Optional suffix to remove from base name.
|
public void setFile(File file)
file - file or directory to get base name frompublic void setProperty(String property)
property - name of propertypublic void setSuffix(String suffix)
suffix - suffix to remove from base namepublic void execute()
throws BuildException
BuildException - if required attributes are not supplied property and attribute are required attributesCopyright © 2017 SAP SE. All Rights Reserved.