ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: AntBuildLib with generic targets possible ?
Date Thu, 19 Aug 2004 09:24:31 GMT
> I have two buildfiles. One generic and one project dependend file.
> The project dependend build file calls targets in the generic 
> buildfile.
> How is it possible that the called buildfile/target can define 
> properties & id's so that the caller can use them?
> The properties are not visible to the caller, it seems that the 
> properties are "build-file-local" variables.
> So i thought including the generic buildfile to the project buildfile 
> could solve this task, but also no success.
> Is there a solution to have a kind of general targets library 
> which also 
> can modify properties of the caller ?
> Or is this a complete wrong design concept and exchange of properties 
> (to is working, from not) is not possible in this way.

Yep - wrong design.
Ok, not really wrong, but since 1.6 you should use another way.

The specific buildfile uses <import> to include the general buildfile.
After that definitions in the general ARE PART of the specific. No property
transfer needed any more. No reparsing each call ...

See also


> I am using currently Ant 1.6.1 (Inside of Eclipse)
> Thanks,
> Thomas
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message