it might be easier (depending on your needs) to just create the ant
objects directly, like
Project p = new Project();
MyTask t = new MyTask();
t.setProject(p);
t.setProperty("foo");
t.execute();
On 12/31/20 12:32 AM, Ioan Eugen Stan wrote:
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://urldefense.com/v3/__https://ant.apache.org/manual/projecthelper.html__;!!GqivPVa7Brio!LruDh-_D0EjX2u27tSPrZt06msXZ-JL72yyZzsQ2VuOszCjpMgX-jIt6sZnpe69MOQ$
and skimmed the sources but could not find something like this.
https://urldefense.com/v3/__https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/ProjectHelper.java__;!!GqivPVa7Brio!LruDh-_D0EjX2u27tSPrZt06msXZ-JL72yyZzsQ2VuOszCjpMgX-jIt6sZkyyJj0gA$
https://urldefense.com/v3/__https://ant.apache.org/manual/api/org/apache/tools/ant/helper/ProjectHelper2.html__;!!GqivPVa7Brio!LruDh-_D0EjX2u27tSPrZt06msXZ-JL72yyZzsQ2VuOszCjpMgX-jIt6sZlKD0Gn2A$
I am looking for something built in if possible before trying to build my own.
Thanks,
Eugen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org