Re: override

2003-08-11 Thread Nicola Ken Barozzi
Paul King wrote, On 09/08/2003 15.45: ... For include the conceptual model is one of textual inclusion (or XML entity inclusion if you are that way inclined). The ant way states (at least for properties) that whoever sets things first wins. I would argue that would be the simplest model for

RE: override

2003-08-09 Thread Costin Manolache
Jose Alberto Fernandez wrote: From the XSLT bible by Michael Kay (2nd edition page 232): Like inheritance un object-oriented languajes, xsl:import is designed to allow the creation of a library or reusable components, only in this case, the components are modules of stylesheets. And the

Re: override

2003-08-09 Thread Paul King
Costin Manolache wrote: IMHO ant should try to be a bit easier to use than XSLT. I was playing with some examples to capture the use cases which have been discussed for include and import with a view to getting a/some simple models straight in my head. I am attempting in part to explain the use

RE: override

2003-08-08 Thread Costin Manolache
Jose Alberto Fernandez wrote: One of the problems I have with the rewriting approach is that target names get rewritten y the caller which means that two independent importers may decide to use the same prefix and hence you get a clash. Namespaces or java-style fully-qualified-names are a

RE: override

2003-08-08 Thread Costin Manolache
Jose Alberto Fernandez wrote: I don't know _any_ programming language where import is used for inheritance. Believe it or not, XSLT is a programming language. :-) And it uses the term import for inheritance. I know XSLT is a programming language, I don't remember it beeing an OO language.

Re: override

2003-08-08 Thread Costin Manolache
Nicola Ken Barozzi wrote: Yes, most build files have a target named build - but I don't know why would you think about inheritance and OO instead of just qualified names. I don't know _any_ programming language where import is used for inheritance. Well, I pointed out xslt, what about

Re: override

2003-08-08 Thread Nicola Ken Barozzi
Trying to summarize. Costin Manolache wrote, On 08/08/2003 16.21: Nicola Ken Barozzi wrote: ... As has been pointed out in these threads, Ant is a different beast, and should be treated differenty. +1 We are talking about OO concepts and inheritance - in import context. Well, we are not. We are

RE: override

2003-08-08 Thread Jose Alberto Fernandez
From: Costin Manolache [mailto:[EMAIL PROTECTED] Jose Alberto Fernandez wrote: One of the problems I have with the rewriting approach is that target names get rewritten y the caller which means that two independent importers may decide to use the same prefix and hence you get a

RE: override

2003-08-08 Thread Jose Alberto Fernandez
From: Costin Manolache [mailto:[EMAIL PROTECTED] Nicola Ken Barozzi wrote: Yes, most build files have a target named build - but I don't know why would you think about inheritance and OO instead of just qualified names. I don't know _any_ programming language where import is

Re: override

2003-08-08 Thread Nicola Ken Barozzi
Jose Alberto Fernandez wrote, On 08/08/2003 20.02: ... From the XSLT bible by Michael Kay (2nd edition page 232): Like inheritance un object-oriented languajes, xsl:import is designed to allow the creation of a library or reusable components, only in this case, the components are modules of

Re: override

2003-08-07 Thread Costin Manolache
Thanks for the overview, Nicola ! Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows cross-import (unwanted?) side-effects, as Conor has brilliantly shown. What I'm not sure I understand is what import has to do with multiple

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Costin Manolache wrote, On 07/08/2003 4.43: Thanks for the overview, Nicola ! Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows cross-import (unwanted?) side-effects, as Conor has brilliantly shown. What I'm not sure I understand is

Re: override

2003-08-07 Thread Costin Manolache
Nicola Ken Barozzi wrote: Thanks for the overview, Nicola ! Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows cross-import (unwanted?) side-effects, as Conor has brilliantly shown. What I'm not sure I understand is what import

Re: override

2003-08-07 Thread Knut Wannheden
Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows cross-import (unwanted?) side-effects, as Conor has brilliantly shown. What I'm not sure I understand is what import has to do with multiple inheritance :-) Because we can

RE: override

2003-08-07 Thread Jose Alberto Fernandez
Some comments on the issues inside: From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] Costin Manolache wrote, On 07/08/2003 4.43: - add possibility of prefix in import declaration import file=xxx prefix=xxy/ This would work as a qualified name ? I think basically yes, but

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Sorry if the mail becomes long, I have difficulty in deciding what to snip ;-) Costin Manolache wrote, On 07/08/2003 15.56: Nicola Ken Barozzi wrote: Thanks for the overview, Nicola ! Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Jose Alberto Fernandez wrote, On 07/08/2003 16.15: Some comments on the issues inside: From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] ... Well, IMHO I personally don't see a real, strong, compelling reason to have targets have crosstalk between themselves, but I do have an equally strong

RE: override

2003-08-07 Thread Jose Alberto Fernandez
From: Costin Manolache [mailto:[EMAIL PROTECTED] Nicola Ken Barozzi wrote: I don't know _any_ programming language where import is used for inheritance. Believe it or not, XSLT is a programming language. :-) And it uses the term import for inheritance. Well, KISS is my concern as

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Knut Wannheden wrote, On 07/08/2003 16.13: ... Maybe it would be better to think in the term of mixin as some languages (e.g. some Lisp flavours and Ruby) use. The following two exerpts are from the Modules chapter of the free book Programming Ruby: The Pragmatic Programmer's Guide

RE: override

2003-08-06 Thread Costin Manolache
Jose Alberto Fernandez wrote: First I do not think I have all the answers, just to keep things in perspective. What I think I have is a set of principles that I think any viable solution should provide. Lets see if I can put them into words: ;-| 1) I should be able to determine the

Re: override

2003-08-06 Thread Nicola Ken Barozzi
Costin Manolache wrote, On 06/08/2003 6.44: ... One think I don't understand is why the import should be used as a OO substitute. Most languages I know define the import in a much simpler way. Maybe I'm missing too much of the context, I'm still trying to get updated with the mailing lists. Just

RE: override

2003-08-06 Thread Jose Alberto Fernandez
From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] Costin Manolache wrote, On 06/08/2003 6.44: ... One think I don't understand is why the import should be used as a OO substitute. Most languages I know define the import in a much simpler way. Maybe I'm missing too much of the

RE: override

2003-08-06 Thread Jose Alberto Fernandez
From: Costin Manolache [mailto:[EMAIL PROTECTED] Jose Alberto Fernandez wrote: 1) I should be able to determine the correctness (loosely used here) of a buildfile by looking at that buildfile (and its dependencies) in isolation. This means that the fact that I am imported by

RE: override

2003-08-05 Thread Jose Alberto Fernandez
From: Conor MacNeill [mailto:[EMAIL PROTECTED] All the resolution of the semantics of the language is done before name mangling This is not strictly true. In C++ you decide (by using extern C) whether to place a symbol in the global namespace or its own (by name mangling). The

RE: override

2003-08-04 Thread Conor MacNeill
What stops you from writing two separate buildfiles one for each that perform the import and do the respective override. From your main build you just ant/ these new files. Probably nothing, especially in this particular example. However, not only should I not have to do that, there will be

RE: override

2003-08-04 Thread Jose Alberto Fernandez
From: Conor MacNeill [mailto:[EMAIL PROTECTED] On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: How can this thing be done while shielding interactions? You make the renaming optional. import file=a.xml/ import file=b.xml/ All of a's and b's targets go unprefixed. If those

RE: override

2003-08-04 Thread Jose Alberto Fernandez
From: Conor MacNeill [mailto:[EMAIL PROTECTED] What stops you from writing two separate buildfiles one for each that perform the import and do the respective override. From your main build you just ant/ these new files. Probably nothing, especially in this particular example.

RE: override

2003-08-04 Thread Conor MacNeill
Just to mention, name mangling in C++, IIRC, is not for the code writer consumption. It is for the mapping of the code to the symbol tables of the C compilers and linkers below. I think we are pushing the whole OO analogy for Ant a little too hard. Ant build files are not class definitions,

RE: override

2003-08-01 Thread Jose Alberto Fernandez
From: Conor MacNeill [mailto:[EMAIL PROTECTED] On Fri, 1 Aug 2003 04:20 am, Jose Alberto Fernandez wrote: Given the nature of ANT, I think it may be really important to be able to specify super in the dependencies of the overriden method. I think part of the problem on this issue i

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Jose Alberto Fernandez wrote, On 01/08/2003 11.40: ... OK, lets get on the nitty gritty of the matter. :-) What do you mean by unrelated imports? If they are unrelated why do you need to import them toghether? Why don't you use ant/ to call between the unrelated targets? In other words, the now

Re: override

2003-08-01 Thread Conor MacNeill
On Fri, 1 Aug 2003 07:40 pm, Jose Alberto Fernandez wrote: OK, lets get on the nitty gritty of the matter. :-) What do you mean by unrelated imports? If they are unrelated why do you need to import them toghether? They may be unrelated because they are written by different people. I will

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Conor MacNeill wrote, On 01/08/2003 12.27: On Fri, 1 Aug 2003 07:40 pm, Jose Alberto Fernandez wrote: ... On the other hand, if you have to import them, then it is because they have to share something or one defines some target for the other, or something. I disagree. Importing them into a common

Re: override

2003-08-01 Thread Conor MacNeill
On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: How can this thing be done while shielding interactions? You make the renaming optional. import file=a.xml/ import file=b.xml/ All of a's and b's targets go unprefixed. If those builds use targets which are provided by the main build,

RE: override

2003-08-01 Thread Dominique Devienne
I totally agree with everything you in this post Conor ;-) --DD -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 5:28 AM To: Ant Developers List Subject: Re: override On Fri, 1 Aug 2003 07:40 pm, Jose Alberto Fernandez wrote: OK

RE: override

2003-08-01 Thread Dominique Devienne
-Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:24 AM To: Ant Developers List Subject: Re: override On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: How can this thing be done while shielding interactions? You make

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Dominique Devienne wrote, On 01/08/2003 17.14: -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:24 AM To: Ant Developers List Subject: Re: override On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: How can this thing be done while

RE: override

2003-08-01 Thread Dominique Devienne
-Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:27 AM To: [EMAIL PROTECTED] Subject: Re: override and that renamed targets from a and b should not be call-able directly from the command line, but only from within the build

RE: override

2003-08-01 Thread ttye
. Keep up the good work. -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:24 AM To: Ant Developers List Subject: Re: override On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: How can this thing be done while shielding interactions

RE: override

2003-08-01 Thread Dominique Devienne
Subject: Re: override import file=a.xml prefix=a/ import file=b.xml prefix=b/ override target=a.init antcall target=b.init/ /override Thoughts? Conor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Dominique Devienne wrote, On 01/08/2003 17.38: -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:27 AM To: [EMAIL PROTECTED] Subject: Re: override and that renamed targets from a and b should not be call-able directly from the command

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Dominique Devienne wrote, On 01/08/2003 17.58: On second though, instead of renaming, why don't we use IDs, which are common and well understood: Well, they have a special meaning in XML and I would not use them for this feature. It also spoils consistency with other ant namings, as usually we

Re: override

2003-07-31 Thread Antoine Levy-Lambert
Looks interesting. Cheers, Antoine - Original Message - From: Conor MacNeill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:07 PM Subject: override I'd like to take a slightly different angle on the import issue by getting some thoughts on this little

Re: override

2003-07-31 Thread Nicola Ken Barozzi
Conor MacNeill wrote, On 31/07/2003 14.07: ... I think with a renaming import task this would let you override any part of the build easily. Very cool indeed :-) [I'd like to thank all the ones that are discussing on import. Very nice posts and constructive stuff, I love you guys :-)] It seems

Re: override

2003-07-31 Thread Conor MacNeill
On Thu, 31 Jul 2003 10:23 pm, Nicola Ken Barozzi wrote: The only thing that comes to mind is that I cannot use super ion dependencies, which is a nifty feature :-( Not sure why this would be needed. Just add super/ as the first contained task. All of the other dependencies will have been run

RE: override

2003-07-31 Thread Dominique Devienne
, and didn't see isreference. After the discussion I had with Stefan, I thought it was there... Did I misunderstand, or is it just not documented. -Original Message- From: Wannheden, Knut [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:29 AM To: 'Ant Developers List' Subject: RE

Re: override

2003-07-31 Thread Stefan Bodewig
On Thu, 31 Jul 2003, Dominique Devienne [EMAIL PROTECTED] wrote: PS: I checked the online manual, and didn't see isreference. It's in the manual for CVS HEAD but not the online manual (as isreference is not part of 1.5.x). Stefan

Re: override

2003-07-31 Thread peter reilly
+1 for override[-target] +1 for include as import without target override sematics On Thursday 31 July 2003 15:25, Dominique Devienne wrote: PS: I checked the online manual, and didn't see isreference. After the discussion I had with Stefan, I thought it was there... Did I misunderstand, or

Re: override

2003-07-31 Thread Nicola Ken Barozzi
Conor MacNeill wrote, On 31/07/2003 15.44: On Thu, 31 Jul 2003 10:23 pm, Nicola Ken Barozzi wrote: The only thing that comes to mind is that I cannot use super ion dependencies, which is a nifty feature :-( Not sure why this would be needed. Just add super/ as the first contained task. All of the

Re: override

2003-07-31 Thread Stefan Bodewig
On Thu, 31 Jul 2003, peter reilly [EMAIL PROTECTED] wrote: +1 for include as import without target override sematics +1 Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: override

2003-07-31 Thread Nicola Ken Barozzi
peter reilly wrote, On 31/07/2003 16.41: +1 for override[-target] +1 for include as import without target override sematics +1 for both here too. Maybe getting those working and combining them can make us see what/if extra functionality is needed for an import. Since in Centipede I do not use

RE: override

2003-07-31 Thread Wannheden, Knut
Dominique, Indeed ;-) What you demoed Conor is precisely the use case I need, which was very much inspired by Knut's past posts. I also like Knut's override-target name better, as it's more explicit. The one thing I'm not too sure about is the override-property and override-path ones...

RE: override

2003-07-31 Thread Jose Alberto Fernandez
From: Conor MacNeill [mailto:[EMAIL PROTECTED] On Thu, 31 Jul 2003 10:23 pm, Nicola Ken Barozzi wrote: The only thing that comes to mind is that I cannot use super ion dependencies, which is a nifty feature :-( Not sure why this would be needed. Just add super/ as the first