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 12060] New: - enable property init from fileset
Date Mon, 26 Aug 2002 22:59:10 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=12060>.
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=12060

enable property init from fileset

           Summary: enable property init from fileset
           Product: Ant
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: pcmehlitz@email.arc.nasa.gov


To enable property initialization from <fileset> ala:  
 
  <fileset id="blah">..</fileset> 
  <property name="blah.string" refid="blah"> 
  .. 
    <arg line="${blah.string}"/> 
 
(which is already possible for <path>), a AbstractFileSet.toString() should be 
added: 
-------- 
479a480,497 
>      * Returns included files as a list of space-separated filenames 
>      * 
>      * @return String object with included filenames 
>      */ 
>     public String toString() { 
>         int i; 
>         DirectoryScanner ds = getDirectoryScanner(getProject()); 
>         String[] s = ds.getIncludedFiles(); 
>         StringBuffer sb = new StringBuffer(s.length*30); 
> 
>         for (i=0; i<s.length; i++) { 
>             if ( i>0 ) sb.append(' '); 
>             sb.append( s[i]); 
>         } 
>         return sb.toString(); 
>     } 
> 
>     /**

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


Mime
View raw message