ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: build.xml snippet used from code
Date Wed, 13 Aug 2003 20:40:41 GMT
Doh, sorry. That's beyond my scope of comprehension of Ant...I'm still green
:-)

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
Sent: Wednesday, August 13, 2003 1:58 PM
To: Ant Users List
Subject: RE: build.xml snippet used from code


I have used entity includes and that serves its
purpose.  However, my question was how to get similar functionality from the
context of a Java class.

Thanks,
Matt

--- "Lopez, William" <william.lopez@eds.com> wrote:
> I hope I understand your question correctly...in my
> case I have 18 EJB
> projects that each have their own build xml file
> they look like this:
> <?xml version="1.0"?>
> <!DOCTYPE project [
>        <!ENTITY classpath SYSTEM "../../../common/cp_common.xml">
>        <!ENTITY ejb SYSTEM
> "../../../common/ejb_common.xml">
>  ]>
> <project name="BEREFEJS" default="generate.ejb.jars"
> basedir=".">
>   <property name="srcroot"
> location="${src.base}\BillReviewBERefEJS"/>  
>   <property name="src"
> location="${srcroot}\ejbModule"/>
>   <property name="this.ejb.build.dir"
> location="${ejb.build.dir}\BillReviewBERefEJS\bin"/>
> 
>   <property name="ejb.jar.name" value="BillReviewBERefEJS.jar"/>
>   <property name="deployed.jar.name"
> value="BillReviewBERefEJS.jar"/> 
>   &classpath;
>   &ejb;
> </project>
> 
> All 18 projects share the contents of ejb_common.xml
> & cp_common.xml. I
> would think you would have your task in an xml file
> and refer to it in an
> Entity reference in how many other build files you
> have.
> 
> -Will
> 
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> Sent: Wednesday, August 13, 2003 1:44 PM
> To: Ant Users List
> Subject: build.xml snippet used from code
> 
> 
> This is just a lazy question, but has anyone ever
> figured a way to process an entity from an XML
> snippet
> from a custom task, for example?  Specifically, I
> have
> a filterchain doing exactly what I want it to, and
> wouldn't it be easier to set it up from the XML I've
> already written than to re-code by hand?  Of course,
> I
> will probably have that code written by the time any
> response comes through, but maybe some other
> application for this concept exists for which the
> alternative would be much more cumbersome.
> 
> -Matt
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message