Wiki source code of Java Client-Incremental Build

Version 29.1 by David Avendasora on 2008/01/14 10:46

Show last authors
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. Without the client classes placed here, the built-in Run... command will not work properly as the client application will not have access to it's classes and WebObjects will silently fail back to EOGenericRecord. This causes the confusing condition of the application launching and likely not generating any errors, but not working correctly.
2
3 Below is a work-around until the incremental builder can be modified to create the needed directory and jar file.
4
5 1. Add a "Java" directory to the "WebServerResources" directory in your Eclipse project.
6 1. Right-click on the new directory and select: "WOLips Tools -> Include as WebServerResource"
7 1. Add the following code to the "javaclient" target (See the [[Ant Build>>Java Client-Build]] instructions).
8
9 {{code}}
10
11
12
13 {{/code}}
14
15 This code will cause the "WOLips Ant Tools -> Install" function to put the required file in the project's WebServerResources directory, which the incremental builder will then pick-up and place in the build directory.