Can I load a project from a String / InputStream?

Ioan Eugen Stan <[email protected]> Thu, 31 Dec 2020 05:32:06 -0000
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <pony-da1016b68c9e069063b6390263106eb62d361e96-59a94b2f61857873d583728fb624eff0cc7fe03e@user.ant.apache.org>
Hello,

I would like to know if there is a ProjectHelper with Ant that allows me to load a project from a String/InputStream instead of a file.

I would like to embed ant in another tool and avoid to write files.

The InputStream/String is a much more generic abstraction than the file IMO.

I read https://ant.apache.org/manual/projecthelper.html and skimmed the sources but could not find something like this. 

https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/ProjectHelper.java
https://ant.apache.org/manual/api/org/apache/tools/ant/helper/ProjectHelper2.html

I am looking for something built in if possible before trying to build my own.

Thanks,
Eugen