Changes for page Add a Jar Dependency
Last modified by Pascal Robert on 2010/10/03 00:50
From version 7.1
edited by Gavin Eadie
on 2009/02/17 22:37
on 2009/02/17 22:37
Change comment:
There is no comment for this version
To version 10.1
edited by Pascal Robert
on 2010/10/03 00:50
on 2010/10/03 00:50
Change comment:
Migrated to Confluence 5.3
Summary
-
Page properties (4 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
-
Objects (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +WOLips Tutorials - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. gavineadie1 +XWiki.probert - Tags
-
... ... @@ -1,0 +1,1 @@ 1 +wikitodo|devtools - Content
-
... ... @@ -2,31 +2,10 @@ 2 2 3 3 Adding these to your project is very simple. 4 4 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 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. 5 +1. By default WOLips will create a {{code language="none"}}Libraries{{/code}} 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 {{code language="none"}}Build Path > Add to Build Path{{/code}}. 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 9 {{info title="Fig. 1 Export jars when in a framework"}} 10 - 11 -!Picture 11.jpg! 12 - 10 +[[image:attach:Picture 11.jpg]] 13 13 {{/info}} 14 - 15 -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. 16 - 17 -Either add an include entry for each jar... 18 - 19 -{{noformat}} 20 - 21 -<target name="build.woapp" depends="setProps,init.build,compile"> 22 - <...> 23 - <lib dir="Libraries"> 24 - <include name="Add .jar's that should be copied in the woa."/> 25 - <exclude name="**/*.woa/**"/> 26 - </lib> 27 - </woapplication> 28 -</target> 29 - 30 -{{/noformat}} 31 - 32 -... or have a single ##<include name="**/**.jar"/>## to include all jars in the specified directory.
- Picture 11.jpg
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +97.2 KB - Content
- XWiki.XWikiComments[0]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.probert - Comment
-
... ... @@ -1,0 +1,1 @@ 1 +We need to explain how to "export" JARs that are in frameworks so that you can use them in other projects inside Eclipse for development. - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2012-02-11 05:35:11.821