ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17781] - name attribute of record task is not relative to basedir
Date Thu, 02 Oct 2003 12:56:52 GMT
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=17781>.
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=17781

name attribute of record task is not relative to basedir





------- Additional Comments From jan@materne.de  2003-10-02 12:56 -------
I played a little bit with that. An additional file-attribute would help.
But I have to search for a solution for getting the right name from the file.

Scenario:
    <record file="logs/log.txt" action="start" />
    <record name="logs/log.txt" action="stop" />  		  	
Both should use the same recorder. But file is a java.io.File and set by Ant 
with an absolute value (e.g. /home/test/logs/log.txt). So I have to get the 
relative part (/home/test = basedir). But the problem is: what if I set the 
file value to an absolute value by myself?
  	<record file="/logs/antlogs/logs/log.txt" action="start" />

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message