[aspectc-user] Different aspect files in the directory
Olaf.Spinczyk at informatik.uni-erlangen.de
Sat Jan 28 11:06:26 CET 2006
ac++/ag++ automatically searches all *.ah files in the project directory
to make life easier for beginners. More experienced users can also use
different mechanisms to select aspects that the weaver should take into
A) with the command line option -a <ah-name> the names of aspect header
files can be listed explicitely. If there is at least one -a option in
the ac++/ag++ command line, the weaver will not search in the project
B) if you have the following directory structure ...
... you can select the aspects A and B with "ag++ -p source -p
aspects1 ..." and the aspects C and D with "ag++ -p source -p aspects2 ...".
BTW, you could also use the pure-variants tool from
www.pure-systems.com. There you can select aspect headers based on a
feature model. The tool creates a directory tree for you that only
contains the aspects that are relevant for the selected system
configuration. This works very well in our own OS product line
development project CiAO.
>I have one question. If we have couple of aspect file like a.ah, b.ah ...
>representing various different functionalities we want to implement or you
>can say we have number of specialization files. Like in a product line
>architecture, for a particular product variant there can be different
>features sets. So a product variant can have one such specialization file
>like a.ah with some set of cross cutting concerns.
>Now I want to know is that is there a way to specify which specialization
>files to use. Means if we have all the file in that directory, how can we
>make compiler pick only a.ah and not b.ah file. May be some setting or
>something like that.
>aspectc-user mailing list
>aspectc-user at aspectc.org
More information about the aspectc-user