...
- Create a "javaclientbuild.xml" file in the root of your project, with the following as its contents:
Code Block xml xml <project name="javaclient" default="javaclient" basedir="."> <target name="setProps"> <property file="${user.home}${file.separator}build.properties"/> <property file="build.properties"/> <property file="${user.home}${file.separator}Library${file.separator}wobuild.properties"/> <condition property="wo.properties.check.failed"> <not> <and> <isset property="wo.wosystemroot"/> <isset property="wo.wolocalroot"/> </and> </not> </condition> <fail message="Could not find ${user.home}${file.separator}Library${file.separator}wobuild.properties." if="wo.properties.check.failed"/> </target> <target name="javaclient" depends="setProps"> <mkdir dir="build/${project.name}.woa/Contents/WebServerResources/Java"/> <!-- project client-side classes --> <copy todir="build/${project.name}.woa/Contents/WebServerResources/Java/"> <fileset dir="${classes.dir}"> <include name="**/client/**/*.class,**/common/**/*.class,**/BMGenericRecord.class"/> <exclude name="**/server/**/*.class"/> </fileset> </copy> <jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class,**/BMGenericRecord.class" excludes="**/server/**/*.class" jarfile="build/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar"> </jar> <!-- Launch Scripts and WOBootstrap.jar--> <mkdir dir="build/${project.name}.woa/Contents/MacOS"/> <mkdir dir="build/${project.name}.woa/Contents/UNIX"/> <mkdir dir="build/${project.name}.woa/Contents/Windows"/> <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/UnixLaunch.sh" tofile="build/${project.name}.woa/Contents/${project.name}"/> <chmod file="build/${project.name}.woa/Contents/${project.name}" perm="ugo+rx"/> <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/WinLaunch.CMD" tofile="build/${project.name}.woa/Contents/${project.name}.CMD"/> <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/WOBootstrap.jar" tofile="build/${project.name}.woa/Contents/WOBootstrap.jar"/> <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/UnixLaunchClient.sh" tofile="build/${project.name}.woa/Contents/MacOS/${project.name}_Client"/> <chmod file="build/${project.name}.woa/Contents/MacOS/${project.name}_Client" perm="ugo+rx"/> <copy file="ClasspathClient.txt" tofile="build/${project.name}.woa/Contents/MacOS/ClasspathClient.txt"/> <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/WinLaunch.CMD" tofile="build/${project.name}.woa/Contents/Windows/${project.name}.CMD"/> </target> </project>
...