At 10:35 PM 7/23/2002 -0400, Gavin Eadie wrote:
>Conditioning basic properties ...
>
> the 'apple' and 'local' base directories are located differently on
> different platforms and, in particular, "NEXT_ROOT" is not used on Mac OS
> X. By default:
>
> 'Apple' frameworks live at "/System/Library/Frameworks/..."
> 'Local' frameworks live at "/Library/Frameworks/...
>
> I'm not familiar with the Windows layout, but Solaris uses "NEXT_ROOT"
> == /opt/Apple and:
>
> 'Apple' frameworks live at "/opt/Apple/Library/Frameworks/..."
> 'Local' frameworks live at "/opt/Apple/Local/Library/Frameworks/...
Same is on Windows -everything is under $NEXT_ROOT.
> so, while on Solaris you can derive the 'local' by inserting "/Local"
> into the 'apple' string, you cannot do this on Mac OS X.
Yes, we need to take this into account.
> what I did was to be sneaky:
>
>[...]
><!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>- -->
>
> this prepares the various property values conditionally, there may be
> an easier way, ant is also brand new to me!
This is how I would approach it with Ant myself. Now, since we are in
control of Ant environment within WOApplication task, it would be nice to
encapsulate this inside WOProject's WOPropertiesHandler, thus reducing the
size of build.xml.
I added this as a pending task to those ugly SourceForge trackers:
http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=58601&group_id=50507&group_project_id=18871
Andrus
This archive was generated by hypermail 2.0.0 : Tue Jul 23 2002 - 23:54:54 EDT