Hi,
to try it:
-Create a new WOApp project and name it MyProject2.
-Replace the content with the stuff in this mail.
-In the init target change the dir to the place where your Eclipse
plugins are stored.
- run it with ant (mac: ant dist_mac other: ant dist_other)
I think WOLips should change the buildfile automatically. So that the
woproject.jar is allways found in it`s location.
Please let me know if it work.
Have fun
Ulrich
<project name="MyProject2" default="build" basedir=".">
<target name="init_wolips">
<property name="wo.woroot" value="${wolips.next.root}"/>
</target>
<target name="init">
<property name="output" value="bin"/>
<property name="src" value="src"/>
<path id="classpath">
<fileset dir="/Volumes/Users/uli/Eclipse">
<include name="**/woproject.jar"/>
</fileset>
</path>
<taskdef name="woapplication"
classname="org.objectstyle.woproject.ant.WOApplication">
<classpath refid="classpath"/>
</taskdef>
</target>
<target name="init_mac" depends="init">
<property name="wo.woroot" value="/System"/>
</target>
<target name="init_other" depends="init">
<property environment="env"/>
<property name="wo.woroot" value="${env.NEXT_ROOT}"/>
</target>
<target name="build_code">
<path id="classpath">
<fileset dir="${wo.woroot}/Library/Frameworks">
<include name="**/*.jar"/>
</fileset>
</path>
<javac srcdir="${src}"
destdir="${output}"
deprecation="${compile.deprecation}"
debug="${compile.debug}"
optimize="${compile.optimize}">
<classpath refid="classpath"/>
</javac>
</target>
<target name="build_woapplication">
<woapplication name="MyProject2" destDir=".">
<classes dir="bin">
</classes>
<resources dir=".">
<include name="*.eomodeld/**"/>
<include name="*.wo/**"/>
<include name="*.api"/>
</resources>
<wsresources dir=".">
<include name="Images/**"/>
</wsresources>
</woapplication>
</target>
<target name="build" depends="init_wolips,build_woapplication">
</target>
<target name="dist_mac"
depends="init_mac,build_code,build_woapplication">
</target>
<target name="dist_other"
depends="init_other,build_code,build_woapplication">
</target>
</project>
This archive was generated by hypermail 2.0.0 : Mon Sep 23 2002 - 03:34:41 EDT