Java Client-Building
Version 17.1 by David Avendasora on 2008/01/14 09:42
You must include a jar of all the client-side classes for your application in the Project.woa/Contents/WebServerResources/Java/ directory of your deployed application.
If you don't include you client-side classes in this directory, WebObjects silently uses EOGenericRecord instead. This is made obvious by things like default values and client-side validation missing in the deployed application.
The following are the instructions for using Ant:
<target name="javaclient">
<mkdir dir="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java"/>
<jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class"
jarfile="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar">
</jar>
</target>
Then you need to make the build and install targets depend upon "javaclient" just prior to the "ssdd" target.
<target name="build" depends="setProps,init.build,build.woapp,javaclient,ssdd,war" />
<target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" />