Changes for page WOFramework

Last modified by Andrew Lindesay on 2007/02/27 03:01

From version 14.1
edited by Andrew Lindesay
on 2006/10/24 16:17
Change comment: There is no comment for this version
To version 16.1
edited by Andrew Lindesay
on 2006/10/24 16:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,6 @@
1 1  = WOFramework Task Manual =
2 2  
3 -This has been transcribed by Andrew Lindesay from the old WOProject site.
3 +This has been transcribed by [[Andrew Lindesay>>http://www.lindesay.co.nz]] from the old WOProject site.
4 4  
5 5  == Description ==
6 6  
... ... @@ -21,3 +21,59 @@
21 21  === classes ===
22 22  
23 23  The nested classes element specifies a [[FileSet>>http://jakarta.apache.org/ant/manual/CoreTypes/fileset.html]]. All files included in this fileset will end up in the ##Resources/Java/**.jar**##** file of the framework.**
24 +
25 +=== resources ===
26 +
27 +The nested ##resources## element specifies a [[FileSet>>http://jakarta.apache.org/ant/manual/CoreTypes/fileset.html]]. All files included in this fileset will end up in the ##Resources## directory of the framework. For the discussion of resource localization issues follow [[this link>>WOProject-Localization]].
28 +
29 +=== wsresources ===
30 +
31 +The nested ##wsresources## element specifies a [[FileSet>>http://jakarta.apache.org/ant/manual/CoreTypes/fileset.html]]. All files included in this fileset will end up in the ##WebServerResources## directory of the framework. For the discussion of resource localization issues follow [[this link>>WOProject-Localization]].
32 +
33 +=== lib ===
34 +
35 +The nested ##lib## element specifies a [[FileSet>>http://jakarta.apache.org/ant/manual/CoreTypes/fileset.html]]. This should be a fileset of jar libraries required by your framework. All files in this fileset will end up in the ##Resources/Java## folder of the framework, and will be included on the classpath for this framework.
36 +
37 +== Examples ==
38 +
39 +{{noformat}}
40 +
41 +<taskdef name="woframework" classname="org.objectstyle.woproject.ant.WOFramework">
42 + <classpath refid="classpath"/>
43 +</taskdef>
44 +<woframework name="MyFramework" destDir="${dist}/Frameworks">
45 + <classes dir="${build}/common">
46 + <exclude name="*.properties"/>
47 + </classes>
48 + <classes dir="${build}/business">
49 + <exclude name="*.properties"/>
50 + </classes>
51 + <resources dir="src/resources">
52 + <include name="*.eomodeld/**"/>
53 + <include name="*.wo/**"/>
54 + </resources>
55 + <wsresources dir="src/frameworks/WSResources">
56 + <include name="Images/**"/>
57 + </wsresources>
58 + <lib dir="lib">
59 + <include name="**/*.jar"/>
60 + </lib>
61 +</woframework>
62 +
63 +{{/noformat}}
64 +
65 +Note that it can be useful to build a framework with only libraries - what you get is a framework that is just a wrapper around one or more existing jar files. For example this enables you to create a framework of a set of third party jar files that your other WOFrameworks and WOApplications can include.
66 +
67 +{{noformat}}
68 +
69 +<taskdef name="woframework" classname="org.objectstyle.woproject.ant.WOFramework">
70 + <classpath refid="classpath"/>
71 +</taskdef>
72 +<woframework name="JavaMail" destDir="${dist}/Frameworks">
73 + <lib dir="lib">
74 + <include name="activation.jar"/>
75 + <include name="mail.jar"/>
76 + </lib>
77 +</woframework>
78 +
79 +{{/noformat}}