Last modified by David Avendasora on 2009/03/30 14:20

From version 14.1
edited by David Avendasora
on 2009/03/30 14:20
Change comment: There is no comment for this version
To version 18.1
edited by David Avendasora
on 2008/01/14 09:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Java Client-WebStart Distribution Building
1 +Java Client-Building
Content
... ... @@ -1,34 +1,26 @@
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.
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.
2 2  
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}}
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.
6 6  
7 -When using Ant to build:
5 +The following are the instructions for using Ant:
8 8  
9 -1. Add the following "javaclient" target to your build.xml file.
10 -
11 11  {{code}}
12 12  
13 13  <target name="javaclient">
14 - <mkdir dir="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java" />
15 - <!-- project client-side classes -->
16 - <jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class" jarfile="${dest.dir}/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar">
17 - </jar>
18 - <!-- project user.d2wmodel file (D2JC only) -->
19 - <copy file="user.d2wmodel" tofile="${dest.dir}/${project.name}.woa/Contents/Resources/user.d2wmodel" />
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>
20 20  </target>
21 21  
22 22  {{/code}}
23 23  
24 -1. Make the "build" and "install" targets depend upon "javaclient" just prior to the "ssdd" target.
18 +Then you need to make the build and install targets depend upon "javaclient" just prior to the "ssdd" target.
25 25  
26 26  {{code}}
27 27  
28 28  <target name="build" depends="setProps,init.build,build.woapp,javaclient,ssdd,war" />
29 29  
30 -{{/code}}
31 -
32 -{{code}}
33 33  <target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" />
25 +
34 34  {{/code}}