Wiki source code of Java Client-Building
Version 30.1 by David Avendasora on 2008/07/01 16:47
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
29.1 | 1 | Your deployed application must have a jar of all the client-side classes (and any subclasses of EOGenericRecord that your client-classes extend) in the Project.woa/Contents/WebServerResources/Java/ directory. If you don't include a jar of your client-side classes in this directory, WebObjects silently uses EOGenericRecord instead. This is made obvious by things like default values, client-side validation and other client-side logic not working in the deployed application. |
![]() |
13.1 | 2 | |
![]() |
19.1 | 3 | The following are the instructions when using Ant to build: |
![]() |
13.1 | 4 | |
![]() |
19.1 | 5 | 1. Add the following "javaclient" target to your build.xml file. |
![]() |
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> | ||
![]() |
21.1 | 14 | |
15 | <!-- project user.d2wmodel file (D2JC only) --> | ||
16 | <copy file="user.d2wmodel" tofile="${dest.dir}/${project.name}.woa/Contents/Resources/user.d2wmodel"/> | ||
17 | |||
![]() |
13.1 | 18 | </target> |
19 | |||
20 | {{/code}} | ||
21 | |||
![]() |
19.1 | 22 | 1. Make the "build" and "install" targets depend upon "javaclient" just prior to the "ssdd" target. |
![]() |
13.1 | 23 | |
24 | {{code}} | ||
25 | |||
26 | <target name="build" depends="setProps,init.build,build.woapp,javaclient,ssdd,war" /> | ||
27 | |||
![]() |
19.1 | 28 | {{/code}} |
29 | |||
30 | {{code}} | ||
![]() |
17.1 | 31 | <target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" /> |
![]() |
13.1 | 32 | {{/code}} |