Re: build question

From: Ulrich Köster (ul..ac.com)
Date: Thu Aug 22 2002 - 04:37:08 EDT

  • Next message: Alexander Lamb: "WebObjectsBuilder integration?"

    hi,

    the problem seems to be that the NEXT_ROOT enviroment variable is not
    set on MacOS X at least on my maschines.

    I have changed the wolips-build.xml to solve the problem:

    <?xml version="1.0"?>

    <!-- ======================================================== -->
    <!-- WOLips Ant file. -->
    <!-- ======================================================== -->
    <project name="woproject-wolips" default="java" basedir=".">
    .
    .
    .
         <property environment="env"/>
         <property name="next.root" value="${env.NEXT_ROOT}"/>
    .
    .
         <!-- ============================================= -->
         <!-- Define CLASSPATH settings. -->
         <!-- ============================================= -->
         <target name="defineClasspath">
             <condition property="next.root" value="/System">
                 <and>
                     <os family="mac" />
                     <os family="unix" />
                 </and>
             </condition>
             <path id="classpath">
                 <fileset dir="${ant.home}/lib">
                     <include name="ant.jar"/>
                 </fileset>
                 <fileset dir="lib">
                     <include name="*.jar"/>
                        <include name="eclipse/**/*.jar"/>
                 </fileset>
                 <fileset dir="${next.root}/Library/Frameworks">
                     <include
    name="JavaFoundation.framework/Resources/Java/*.jar"/>
                 </fileset>
                  <!-- Depends on WOProject core. -->
                 <pathelement path="${build}/main"/>
             </path>
         </target>
    ..........

         <!-- ============================================= -->
         <!-- Sets up build and distribution directories. -->
         <!-- ============================================= -->
         <target name="prepare" depends="defineClasspath">
       .....
         </target>

    </project>

    On MacOSX next.root is set to /System. But i don`t know if this still
    works on Windows. Can somebody try this?

    Best Regards

    Ulrich



    This archive was generated by hypermail 2.0.0 : Thu Aug 22 2002 - 04:37:25 EDT