Re: Can I load a project from a String / InputStream?
Stefan Bodewig <[email protected]> Fri, 01 Jan 2021 14:36:59 +0100
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <[email protected]> |
On 2020-12-31, Eugen Stan wrote: > Thanks but I want/need to build the xml file dynamically and build the > project from that and then maybe customize it.I think this feature > should make it easier to test ant as well. Would this be ok for a > PR?Add a parse function in ProjectHelper similar to the file api? Note that ProjectHelper2 already supports Ant's own Resource abstraction in a limited way - it supports it if the Resource can provide a File or an URL. If you want to start supporting InputStreams in addition then I'd suggest you change the code in a way that works for arbitrary Resoures (as they all provide InputStreams). Stefan