RE: Thanks it works, now what
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Wink Saville wrote: > Thanks for the answers everything looks good, but I'm still unsure of > how to solve question 1, handling the location of common includes. Ok, > I just read the documentation on startup, but I don't think that quite > solves my problem as it is too global. I will be using "aap" for many > disconnected projects but the startup technique looks to be designed > for "site" wide initialization, I want something "project" in scope. What is a project scope? The problem is that everyone has its own definition of this. Especially if you consider a sub-project to be a project as well. > What I think I want is for aap to look for "family.aap" or > "project_root.aap" starting at the current location "." and use ".." to look > "up" until it finds it. Actually a "function" that was ":hinclude xxx.aap" > might do it. Where ":hinclude" is hierarchical include. > > Am I missing something, am I the only person who has this problem? > Maybe the solution is that my model is wrong and I need to change! As > always, any advice is appreciated. One solution is to put a "project.aap" recipe in every directory. In all directories except the top one it contains ":include ../project.aap". In the top directory it contains your actual settings. It does require adding more files, but in case a sub-project requires specific settings you can cover them at the same time. -- User: I'm having problems with my text editor. Help desk: Which editor are you using? User: I don't know, but it's version VI (pronounced: 6). Help desk: Oh, then you should upgrade to version VIM (pronounced: 994). /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/