Wiki source code of Java Client-WebStart Distribution Building
Last modified by David Avendasora on 2009/03/30 14:20
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
35.1 | 1 | Your deployed WebStart-distributed 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 | |
![]() |
39.1 | 3 | {{info}} |
4 | The following are the instructions are for use with versions of WOLips prior to the current Stable, which has these settings already. | ||
5 | {{/info}} | ||
![]() |
13.1 | 6 | |
![]() |
39.1 | 7 | When using Ant to build: |
![]() |
13.1 | 8 | |
![]() |
39.1 | 9 | 1. Add the following "javaclient" target to your build.xml file. |
10 | 1. {{code}} | ||
![]() |
13.1 | 11 | <target name="javaclient"> |
![]() |
39.1 | 12 | <mkdir dir="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java" /> |
13 | <!-- project client-side classes --> | ||
14 | <jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class" jarfile="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar"> | ||
15 | </jar> | ||
16 | <!-- project user.d2wmodel file (D2JC only) --> | ||
17 | <copy file="user.d2wmodel" tofile="${dest.dir}/${project.name}.woa/Contents/Resources/user.d2wmodel" /> | ||
![]() |
13.1 | 18 | </target> |
![]() |
39.1 | 19 | {{/code}}Make the "build" and "install" targets depend upon "javaclient" just prior to the "ssdd" target. |
![]() |
13.1 | 20 | |
21 | {{code}} | ||
22 | |||
![]() |
17.1 | 23 | <target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" /> |
![]() |
37.1 | 24 | |
25 | {{/code}} |