ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41701] - [PATCH] <import> should be able to load .xmls from classpath
Date Tue, 27 Feb 2007 13:31:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41701>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41701





------- Additional Comments From gregory@tikalk.com  2007-02-27 05:31 -------
The enhanced <import> task allows specifying classpath from which to load the
resource. This classpath is resolved when <import> is executed. I am not
familiar with ivy so I am not sure if this solves the use case or not.

Regarding the base dir for imported project, I am not sure it can have any
meaningful value assigned when using <import resource=""/>. 

The way we use ant in our build system is to have one main build.xml responsible
for setting all project properties and then have it import individual .xmls that
each knows how to build a specific thing, such as XDoclet, Hibernate SQLs etc.. 

To borrow from OOP terminology, the imported projects are a kind of a "mixin"
projects that cannot function as a standalone projects on their own since they
depend on properties set by root build.xml, so not having base dir set for
imported .xmls is making sense in our use case. And this is the use case the
enhanced <import> allows.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message