Changes for page Java Client-WebStart Incremental Build
Last modified by David Avendasora on 2009/02/05 17:10
From version 50.1
edited by David Avendasora
on 2008/06/25 10:15
on 2008/06/25 10:15
Change comment:
There is no comment for this version
To version 49.1
edited by David Avendasora
on 2008/06/17 14:21
on 2008/06/17 14:21
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Java Client- WebStartIncremental Build1 +Java Client-Incremental Build - Content
-
... ... @@ -1,7 +1,5 @@ 1 - Therearemany waysyoucandeployWebObjectsJavaClientapplications.One of thewaystodoit isthrough WebStart.You could manually createaWebStart app, but WebObjectscanalsodoitforyou,takingcareof JNLP creation,jarorganization,and manyWebStartnastybits.1 +WOLips incremental builder will not automatically create the required jar of your client-side classes and place it in the project.woa/Contents/WebServerResources/Java/ directory as is required by a Java Client application. 2 2 3 -There is a problem however. The WOLips incremental builder will not automatically create the required jar of your client-side classes and place it in the project.woa/Contents/WebServerResources/Java/ directory as is required by a WebObjects WebStart Java Client application. 4 - 5 5 Without the client classes placed in WebServerResources, Eclipse's built-in Run... command will not work properly as the client application will not have access to its classes and WebObjects will silently fall-back to EOGenericRecord. This causes the confusing condition of the application launching and likely not generating any errors, but not working correctly either. 6 6 7 7 Below are the steps for adding an additional "Ant Builder" to your project to generate and place the required jar in the right location. ... ... @@ -27,44 +27,12 @@ 27 27 </target> 28 28 <target name="javaclient" depends="setProps"> 29 29 <mkdir dir="build/${project.name}.woa/Contents/WebServerResources/Java"/> 30 - 31 - <!-- project client-side classes --> 32 - <copy todir="build/${project.name}.woa/Contents/WebServerResources/Java/"> 33 - <fileset dir="${classes.dir}"> 34 - <include name="**/client/**/*.class,**/common/**/*.class,**/BMGenericRecord.class"/> 35 - <exclude name="**/server/**/*.class"/> 36 - </fileset> 37 - </copy> 38 - 39 - <jar basedir="${classes.dir}" 40 - includes="**/client/**/*.class,**/common/**/*.class,**/BMGenericRecord.class" 41 - excludes="**/server/**/*.class" 28 + <jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class" 42 42 jarfile="build/${project.name}.woa/Contents/WebServerResources/Java/${project.name}.jar"> 43 43 </jar> 44 - 45 - <!-- Launch Scripts and WOBootstrap.jar--> 46 - <mkdir dir="build/${project.name}.woa/Contents/MacOS"/> 47 - <mkdir dir="build/${project.name}.woa/Contents/UNIX"/> 48 - <mkdir dir="build/${project.name}.woa/Contents/Windows"/> 49 - 50 - <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/UnixLaunch.sh" 51 - tofile="build/${project.name}.woa/Contents/${project.name}"/> 52 - <chmod file="build/${project.name}.woa/Contents/${project.name}" perm="ugo+rx"/> 53 - <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/WinLaunch.CMD" 54 - tofile="build/${project.name}.woa/Contents/${project.name}.CMD"/> 55 - <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/WOBootstrap.jar" 56 - tofile="build/${project.name}.woa/Contents/WOBootstrap.jar"/> 57 - 58 - <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/UnixLaunchClient.sh" 59 - tofile="build/${project.name}.woa/Contents/MacOS/${project.name}_Client"/> 60 - <chmod file="build/${project.name}.woa/Contents/MacOS/${project.name}_Client" perm="ugo+rx"/> 61 - <copy file="ClasspathClient.txt" tofile="build/${project.name}.woa/Contents/MacOS/ClasspathClient.txt"/> 62 - 63 - <copy file="/Library/Application Support/Apple/Developer Tools/WebObjects Support/WinLaunch.CMD" 64 - tofile="build/${project.name}.woa/Contents/Windows/${project.name}.CMD"/> 65 - 66 66 </target> 67 67 </project> 33 + 68 68 {{/code}} 69 69 70 70 1. Right-Click on your project, and select Properties.