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 26849] New: - [PATCH] Pathconvert output in xml format and write to file
Date Wed, 11 Feb 2004 10:19:47 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=26849>.
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=26849

[PATCH] Pathconvert output in xml format and write to file

           Summary: [PATCH] Pathconvert output in xml format and write to
                    file
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: nicolaken@apache.org


I have thge need of writing in xml a set of file and dir names. Since
PathConvert makes it easy to do exactly what I want but outputs to a single
string with a separator, I have patched it to output also in xml format.

So instead of

 path1,path2

it writes

 <path><pathelement>path1</pathelement><pathelement>path2</pathelement></path>

The option is

 @type="plain|xml"

Then I need to write it to a file, so I added also a file attribute, that is not
exclusive with the property attribute

 @file="filetowriteto"

I'm using it in a scratchpad project in Forrest

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


Mime
View raw message