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 8.1
edited by Pascal Robert
on 2010/10/03 00:50
on 2010/10/03 00:50
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
-
... ... @@ -3,22 +3,11 @@ 3 3 Adding these to your project is very simple. 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 -1. In Eclipse, right-click (or ctrl-click) on the jar and choose ##Build Path > Add to Build Path##. This simpl eadjusts your project classpath but doesn't affect your final build.7 -1. Adjustyour##build.xml##fileto ensurethat thejarisalsoembeddedin##Contents/Resources/Java##directoryofthefinal build as below.6 +1. In Eclipse, right-click (or ctrl-click) on the jar and choose ##Build Path > Add to Build Path##. This simply 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 8 9 - Either addan includeentryforeach jar...9 +{{info title="Fig. 1 Export jars when in a framework"}} 10 10 11 - {{noformat}}11 +!Picture 11.jpg! 12 12 13 -<target name="build.woapp" depends="setProps,init.build,compile"> 14 - <...> 15 - <lib dir="Libraries"> 16 - <include name="Add .jar's that should be copied in the woa."/> 17 - <exclude name="**/*.woa/**"/> 18 - </lib> 19 - </woapplication> 20 -</target> 21 - 22 -{{/noformat}} 23 - 24 -... or have a single ##<include name="/**.jar"/>**##** to include all jars in the specified directory.** 13 +{{/info}}