Re: Trouble with WOApplication on OSX

From: Gavin Eadie (gavi..mich.edu)
Date: Mon Aug 12 2002 - 16:12:39 EDT

  • Next message: tblanchar..ac.com: "Issues with user-compiled tasks on OSX"

    At 3:59 PM -0400 8/12/02, Tatsuya Kawano wrote:
    >I think the reason for this is that:
    >
    >- Mac OS X doesn't have the NEXT_ROOT environmental variable
    >- There are directory tree difference on wo.woroot and wo.localroot
    > properties between Mac OS X and Windows
    >
    >I've been thinking to contribute a solution for this but I'm an Ant beginner
    >and still reading documents for Ant and WO Project at this point.

    here's how I do it (the Windows stuff may not work, but the Mac OS X does):

    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - -->

       <target name="MacOSX" description="set isMacOSX conditional">
         <condition property="isMacOSX"><os family="unix" /></condition></target>

       <target name="Windows" description="set isWindows conditional">
         <condition property="isWindows"><os family="windows"
    /></condition></target>

       <target name="condMacOSX" if="isMacOSX" depends="MacOSX"
    description="set Mac OS X properties">
         <echo message="is Mac OS X ..." />
         <property name="apple_root" value="/System" />
         <property name="local_root" value="" /></target>

       <target name="condWindows" if="isWindows" depends="Windows"
    description="set Windows properties">
         <echo message="is Windows ..." />
         <property environment="env" />
         <property name="apple_root" value="${env.NEXT_ROOT}" />
         <property name="local_root" value="${apple_root}/Local" /></target>
       
       <target name="init" depends="condWindows,condMacOSX" unless="init"
    description="initialize properties">
         <tstamp><format property="timestamp" pattern="MMMdd/yy HH:mm" /></tstamp>
         <property name="apple_frwk_dir" value="${apple_root}/Library/Frameworks" />
         <property name="local_frwk_dir" value="${local_root}/Library/Frameworks" />
         <property name="builder_temp" value="build-ant" />
         <property name="classes_temp" value="/tmp/Classes" /></target>

    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - -->



    This archive was generated by hypermail 2.0.0 : Mon Aug 12 2002 - 16:12:49 EDT