Changes for page Add a Jar Dependency
Last modified by Pascal Robert on 2010/10/03 00:50
From version 5.1
edited by Lachlan Deck
on 2007/09/10 19:03
on 2007/09/10 19:03
Change comment:
There is no comment for this version
To version 6.1
edited by Pascal Robert
on 2007/12/15 16:44
on 2007/12/15 16:44
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ldeck1 +XWiki.probert - Content
-
... ... @@ -4,6 +4,14 @@ 4 4 5 5 1. By default WOLips will create a ##Libraries## folder in your project directory. Populate this with any jars you like. 6 6 1. In Eclipse, right-click (or ctrl-click) on the jar and choose ##Build Path > Add to Build Path##. This simple adjusts your project classpath but doesn't affect your final build. 7 +1. For frameworks, you should turn on the Export checkbox in the build path window as hown below in Fig. 1. Doing so ensures that other WebObjects projects the reference the framework "see" the jar library in their Eclipse build path. 8 + 9 +{{info title="Fig. 1 Export jars when in a framework"}} 10 + 11 +!Picture 11.jpg! 12 + 13 +{{/info}} 14 + 7 7 1. Adjust your ##build.xml## file to ensure that the jar is also embedded in ##Contents/Resources/Java## directory of the final build as below. 8 8 9 9 Either add an include entry for each jar... ... ... @@ -21,4 +21,4 @@ 21 21 22 22 {{/noformat}} 23 23 24 -... or have a single ##<include name="/**.jar"/> **##**to include all jars in the specified directory.**32 +... or have a single ##<include name="**/**.jar"/>## to include all jars in the specified directory.