Wiki source code of Framework Client-Side Classes
Version 8.1 by David Avendasora on 2008/07/08 15:19
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | If you are using any frameworks other than the Apple-provided WebObjects frameworks that include client-side classes, you will need to manually copy the framework's client-side .jar files into your WebServerResources/Java directory and add an entry to the ClasspathClient.txt file for each one. | ||
| 2 | |||
| 3 | WebObjects seems to be able to find its own client-side classes from within the Library/Frameworks directory, but it cannot find any others. | ||
| 4 | |||
| 5 | For example, I have a framework named MyFoundation.framework that has a couple classes in it that are used by the client-side of my application. In order for WO to find these classes, they must be in a Jar located in the MyApp.woa/Contents/WebServerResources/Java/. You will then need to make sure that the ClasspathClient.txt classpath file has an entry pointing to it. | ||
| 6 | |||
| 7 | {{code}} | ||
| 8 | |||
| 9 | APPROOT/WebServerResources/Java/MyFoundation.jar | ||
| 10 | |||
| 11 | {{/code}} | ||
| 12 | |||
| 13 | You can also modify the build.xml and [[javaclientbuild.xml>>Java Client-WebStart Incremental Build]] files to go grab all the client-side jar files from the local frameworks directory (Usually /Library/Frameworks) using the following addition: | ||
| 14 | |||
| 15 | {{code}} | ||
| 16 | |||
| 17 | <!-- the Java Client Client-Side Classes --> | ||
| 18 | <copy todir="${dest.dir}/${project.name}/WEB-INF/${project.name}.woa/Contents/WebServerResources/Java"> | ||
| 19 | <fileset dir="${wo.wolocalroot}/Library/Frameworks"> | ||
| 20 | <include name="**/WebServerResources/Java/*.jar"/> | ||
| 21 | </fileset> | ||
| 22 | <mapper type="flatten"/> | ||
| 23 | </copy> | ||
| 24 | |||
| 25 | {{/code}} |