Changes for page Embedding WOFrameworks

Last modified by Gavin Eadie on 2011/07/29 18:09

From version 41.1
edited by Ulrich Köster
on 2006/09/08 06:02
Change comment: There is no comment for this version
To version 36.1
edited by Kieran Kelleher
on 2007/03/30 15:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.uli
1 +XWiki.kieran
Content
... ... @@ -1,6 +1,12 @@
1 +**Caveat:** This example assumes that each framework you want to embed has an ant build.xml file with a buildAndCompile target. For frameworks you create yourself using WOLips, you will have this, but for a case where you are checking out individual Wonder framework projects from CVS, then you probably will not have such a build.xml file, so this approach is not quick to implement in that case unless you want to spend a lot of time working on ant build files to resolve the missing build.xml having a buildAndCompile target for those external projects. (KK 3/30/2007)
2 +
3 +----
4 +
5 +See also [[FrameworkSet>>WOProject-FrameworkSet]] documentation.
6 +
1 1  Example for embedding WOFrameworks.
2 2  
3 -It's an good idea is create your own targets in the build.xml or even create your own build.xml (with a different name). This leaves the door open for an update of the default build.xml.
9 +It's often a good idea to create your own targets in the build.xml or even create your own build.xml (with a different name). This leaves the door open for an update of the default build.xml.
4 4  
5 5  Assume two projects: One named Foo( a framework) and the other named Uli (an application). The parent folder has another folder named packandgo.
6 6  
... ... @@ -11,7 +11,7 @@
11 11  
12 12  {{code}}
13 13  
14 -<!-- package and go example-->
20 +<!-- package and go example-->
15 15  <frameworks root="../packageandgo/frameworks" embed="true">
16 16   <include name="*.framework"/>
17 17  </frameworks>
... ... @@ -18,11 +18,11 @@
18 18  
19 19  {{/code}}
20 20  
21 -2 compile target
27 +2 compile target
22 22  
23 23  {{code}}
24 -
25 -<!-- package and go example-->
30 +
31 +<!-- package and go example-->
26 26  <fileset dir="../packageandgo/frameworks">
27 27   <include name = "**/*.jar"/>
28 28  </fileset>
... ... @@ -29,8 +29,6 @@
29 29  
30 30  {{/code}}
31 31  
32 -
33 -
34 34  The [[^build.xml]] from the packageandgo folder:
35 35  
36 36  Just invoke ant in the packageandgo folder and grap the App from the applications folder within the packageandgo folder.