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

From version 38.1
edited by David Avendasora
on 2008/07/17 07:59
Change comment: There is no comment for this version
To version 40.2
edited by David Avendasora
on 2009/03/30 14:20
Change comment: Changed document parent to [xwiki:documentation.Home.Development Architecture.Java Client.WebHome].

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +documentation.Home.Development Architecture.Java Client.WebHome
Content
... ... @@ -1,48 +1,25 @@
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.
2 2  
3 -The following are the instructions when using Ant to build:
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}}
4 4  
5 -1. Add the following "javaclient" target to your build.xml file.
7 +When using Ant to build:
6 6  
7 -{{code}}
8 -
9 +1. Add the following "javaclient" target to your build.xml file.
10 +1. {{code}}
9 9  <target name="javaclient">
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>
14 -
15 - <!-- project user.d2wmodel file (D2JC only) -->
16 - <copy file="user.d2wmodel" tofile="${dest.dir}/${project.name}.woa/Contents/Resources/user.d2wmodel"/>
17 -
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" />
18 18  </target>
19 +{{/code}}Make the "build" and "install" targets depend upon "javaclient" just prior to the "ssdd" target.
19 19  
20 -{{/code}}
21 -
22 -1. Make the "build" and "install" targets depend upon "javaclient" just prior to the "ssdd" target.
23 -
24 24  {{code}}
25 25  
26 -<target name="build" depends="setProps,init.build,build.woapp,javaclient,ssdd,war" />
27 -
28 -{{/code}}
29 -
30 -{{code}}
31 31  <target name="install" depends="setProps,init.install,build.woapp,javaclient,ssdd,war" />
32 -{{/code}}
33 33  
34 -1. If you are using any Frameworks that have client-side jars then you'll need to copy those jars over to the WebServerResources/Java directory as well. Because I don't want to go modifying any of the woproject files, I just copy the client-side jars of all my Local frameworks (Library/Frameworks/) into my app. Ideally it would only copy over the ones for the frameworks actually in the build path, but this works for now. I'll re-address it after the upcoming classpath changes to be rolled into WOLips.
35 -Add the following code to your build.xml file, right at the end of the ssdd target, but before all the classpath fixes.
36 -
37 -{{code}}
38 -
39 -<!-- the Java Client Client-Side Classes -->
40 -<copy todir="${dest.dir}/${project.name}/WEB-INF/${project.name}.woa/Contents/WebServerResources/Java">
41 - <fileset dir="${wo.wolocalroot}/Library/Frameworks">
42 - <include name="**/WebServerResources/Java/*.jar"/>
43 - </fileset>
44 - <mapper type="flatten"/>
45 -</copy>
46 -
47 -
48 48  {{/code}}