From 753a6c60f47f3ac4f270005b65e9d6481de8eb68 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:00:02 -0700 Subject: Adding maven and ant source trees Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445 Signed-off-by: Ashlee Young --- .../apache-ant-1.9.6/manual/Tasks/basename.html | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/basename.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/basename.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/basename.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/basename.html new file mode 100644 index 00000000..0822d8f9 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/basename.html @@ -0,0 +1,92 @@ + + + + + + +Basename Task + + + + +

Basename

+

Description

+

+Task to determine the basename of a specified file, optionally minus a +specified suffix. +

+

+When this task executes, it will set the specified property to the +value of the last path element of the specified file. If file is a +directory, the basename will be the last directory element. If +file is a full-path, relative-path, or simple filename, +the basename will be the simple file name, without any directory elements. +

+

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
fileThe path to take the basename of.Yes
propertyThe name of the property to set.Yes
suffixThe suffix to remove from the resulting basename + (specified either with or without the ".").No
+ +

Examples

+
+<basename property="jar.filename" file="${lib.jarfile}"/>
+
+will set jar.filename to +myjar.jar, if lib.jarfile is defined as either a +full-path filename (eg., /usr/local/lib/myjar.jar), +a relative-path filename (eg., lib/myjar.jar), +or a simple filename (eg., myjar.jar). +
+<basename property="cmdname" file="D:/usr/local/foo.exe"
+          suffix=".exe"/>
+
+will set cmdname to foo. +
+<property environment="env"/>
+<basename property="temp.dirname" file="${env.TEMP}"/>
+
+ +will set temp.dirname to the last directory element of +the path defined for the TEMP environment variable.

+ + + + + + -- cgit 1.2.3-korg