At 18:37 +0200 05-09-02, uli wrote:
>Hi Kay,
>
><property name="next_root" value="${env.NEXT_ROOT}"/>
> <condition property="next.root" value="/System">
> <and>
> <os family="mac" />
> <os family="unix" />
> </and>
> </condition>
> <property name="local_fw_root"
>value="${next_root}/Local/Library/Frameworks"/>
> <condition property= "local_fw_root" value="/Local/Library/Frameworks">
> <and>
> <os family="mac" />
> <os family="unix" />
> </and>
> </condition>
>
>
>
>
><property name="fw_root" value="${next_root}/Library/Frameworks"/> should
>work.
>
Thanks! Still don't work. Seems likt ant does not find the frameworks under
/System/Library/Frameworks.
In my build.xml I have
<target name="setProps" unless="setProps"
description="setup the properites.">
<property environment="env"/>
<property name="dist" value="../../dist"/>
<!--
<property name="next_root" value="${env.NEXT_ROOT}"/>
-->
<property name="next_root" value="${env.NEXT_ROOT}"/>
<condition property="next.root" value="/System">
<and>
<os family="mac" />
<os family="unix" />
</and>
</condition>
<property name="local_fw_root"
value="${next_root}/Local/Library/Frameworks"/>
<condition property= "local_fw_root"
value="/Local/Library/Frameworks">
<and>
<os family="mac" />
<os family="unix" />
</and>
</condition>
<property name="fw_root" value="${next_root}/Library/Frameworks"/>
<property name="app_install_dir"
value="${dist}/WebObjects/Applications"/>
<property name="app_name" value="${ant.project.name}"/>
<property name="outdir" value="./output" />
<property name="deploy_tomcat" value="${app_install_dir}/tomcat" />
</target>
and get the following when building:
bash-2.05a$ ant
Buildfile: build.xml
setProps:
init:
clean_deploy:
clean:
[delete] Deleting directory /Users/kajh/src/webobjects/faq/output/webapps
prepare:
[mkdir] Created dir: /Users/kajh/src/webobjects/faq/output/webapps/classes
compile:
[javac] Compiling 41 source files to
/Users/kajh/src/webobjects/faq/output/webapps/classes
[javac] /Users/kajh/src/webobjects/faq/Admin.java:3: package
com.webobjects.foundation does not exist
[javac] import com.webobjects.foundation.*;
[javac] ^
[javac] /Users/kajh/src/webobjects/faq/Admin.java:4: package
com.webobjects.appserver does not exist
[javac] import com.webobjects.appserver.*;
[javac] ^
-Kaj :)
This archive was generated by hypermail 2.0.0 : Thu Sep 05 2002 - 12:50:30 EDT