Wiki source code of Java Client-Building
Version 18.1 by David Avendasora on 2008/01/14 09:42
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
17.1 | 1 | 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. |
![]() |
13.1 | 2 | |
![]() |
17.1 | 3 | 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. |
![]() |
13.1 | 4 | |
![]() |
17.1 | 5 | The following are the instructions for using Ant: |
![]() |
13.1 | 6 | |
7 | {{code}} | ||
8 | |||
9 | <target name="javaclient"> | ||
![]() |
15.1 | 10 | <mkdir dir="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java"/> |
11 | <jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class" | ||
12 | jarfile="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar"> | ||
13 | </jar> | ||
![]() |
13.1 | 14 | </target> |
15 | |||
16 | {{/code}} | ||
17 | |||
![]() |
17.1 | 18 | Then you need to make the build and install targets depend upon "javaclient" just prior to the "ssdd" target. |
![]() |
13.1 | 19 | |
20 | {{code}} | ||
21 | |||
22 | <target name="build" depends="setProps,init.build,build.woapp,javaclient,ssdd,war" /> | ||
23 | |||
![]() |
17.1 | 24 | <target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" /> |
![]() |
13.1 | 25 | |
26 | {{/code}} |