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?
-------- Mesaj original --------De la: Dave Brosius <dave.bros...@oracle.com> 
Date: 31.12.2020  08:47  (GMT+02:00) Către: user@ant.apache.org Subiect: Re: 
Can I load a project from a String / InputStream? 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>

Reply via email to