[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    Re: Can I load a project from a String / InputStream?
From:       Eugen Stan <ieugen () netdava ! com>
Date:       2020-12-31 10:23:46
Message-ID: 176b8534190.7cb7fae6-889773169.6147339811120089178 () zoho ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

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.brosius@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/apa \
che/tools/ant/ProjectHelper.java__;!!GqivPVa7Brio!LruDh-_D0EjX2u27tSPrZt06msXZ-JL72yyZzsQ2VuOszCjpMgX-jIt6sZkyyJj0gA$> \
https://urldefense.com/v3/__https://ant.apache.org/manual/api/org/apache/tools/ant/hel \
per/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-unsubscribe@ant.apache.org> For additional commands, \
e-mail: user-help@ant.apache.org>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic