DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22444>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22444

Trailing slash in property location eaten





------- Additional Comments From [EMAIL PROTECTED]  2003-08-15 16:49 -------
What I meant was that the doc explanation after the
first sentence is a little misleading.
"the absolute filename of the given file" means the result
of File#getAbsolutePath(), which documenation is also
a little misleading.
import java.io.File;

import org.apache.tools.ant.Task;

public class Abs extends Task {
    String name;
    public void setName(String name) {dd
        this.name = name;
    }
    public void execute() {
        log("name is " + name + " file is " + new File(name).getAbsolutePath());
    }
}
with the ant fragment:
  <javac srcdir="src"/>
  <taskdef name="abs" classname="Abs" classpath="src"/>
  <abs name="this/"/>
  <abs name="/tmp/"/>

Gives: 
name is this/ file is /home/preilly/proj/learning/abs/this
name is /tmp/ file is /tmp

on a unix system

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to