Changes for page Embedding WOFrameworks

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

From version 53.1
edited by Ulrich Köster
on 2006/09/08 06:00
Change comment: There is no comment for this version
To version 60.1
edited by Pascal Robert
on 2023/11/13 11:55
Change comment: Renamed back-links.

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +WOProject-Ant
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.uli
1 +XWiki.probert
Tags
... ... @@ -1,0 +1,1 @@
1 +favourite
Content
... ... @@ -1,17 +1,169 @@
1 +== WOLips 3.4.x, and later, Side-note ==
2 +
3 +{{warning}}
4 +If you are updating an older project, make sure you get the latest build.xml file. Create a new project, then copy/paste the contents of the fresh build.xml file into your project's build.xml file.
5 +{{/warning}}
6 +
7 +For WOLips 3.4.x and later, while embedding is built-in, it's not enabled by default. To enable embedding:
8 +
9 +* make sure you are in the WO Explorer view
10 +* right-click your project folder, select Properties, select WOLips Deployment
11 +* check the related, if not all, options under Embed Frameworks
12 +
13 +To create a versioned/dated bundle of your app and resources:
14 +
15 +* make sure you are in the Navigator view
16 +* edit build.properties, and add:
17 +* {{code language="none"}}build.app.name=MyApp-2009-07-14{{/code}}
18 +
19 +There is a known bug with WO 5.4.x (for those not using the latest Wonder release) regarding proper linking to your web server resources within the embedded frameworks. The WOFrameworksBaseURL isn't set correctly. To do this you'll need to programmatically set this within your Application constructor:
20 +
21 +* {{code language="none"}}setFrameworksBaseURL("/WebObjects/MyApp-2009-07-14.woa/Frameworks");{{/code}}
22 +
23 +Another way to fix this bug is to set the following launch parameter:
24 +
25 +-DWOFrameworksBaseURL=/WebObjects/MyApp-2009-07-14.woa/Frameworks
26 +
27 +Within build.properties (I may need to be corrected on this), the best approach to linking your embedded framework's web server resources automatically is to include (however the bug noted above breaks this):
28 +
29 +* {{code language="none"}}frameworksBaseURL=/WebObjects/${build.app.name}.woa/Frameworks{{/code}}
30 +
31 +There was an old bug in the build.xml file but fixed if you have WOLips more recent than october 2010:
32 + [[http:~~/~~/issues.objectstyle.org/jira/browse/WOL-979>>url:http://issues.objectstyle.org/jira/browse/WOL-979||shape="rect"]]
33 +
34 +== Introduction ==
35 +
36 +Below is outlined "simple embedding" concepts, however (% style="text-decoration: underline;" %)full embedding(%%) **and** (% style="text-decoration: underline;" %)split-installing(%%) are really recommended. This provides fully versioned self-contained bundles of both the application deployment bundle and the webserver deployment bundle. Read the docs on that technique for more **advantages**. This technique fully explained along with a ready-to-use ant build script is available at:
37 +
38 +[[doc:WOL.Home.Deprecated info.Alternative Ant Build Script for Fully Embedded and Split Install Bundles.WebHome]]
39 +
40 +== Simple Approach ==
41 +
42 +This simple approach can be used to embed frameworks already **installed** on your development machine right into the app.woa bundle.
43 +
44 +Open your build.xml project file and change embed="false" to embed="true" for the appropriate directory paths in this section of the build.xml file inside the woapplication task
45 +
46 +{{code title="Default build.xml snippet"}}
47 +
48 +<frameworks root="${wo.wolocalroot}" embed="false">
49 + <patternset>
50 + <includesfile name="woproject/ant.frameworks.wo.wolocalroot" />
51 + </patternset>
52 +</frameworks>
53 +<frameworks root="${user.home}" embed="false">
54 + <patternset>
55 + <includesfile name="woproject/ant.frameworks.user.home" />
56 + </patternset>
57 +</frameworks>
58 +<frameworks root="${wo.wosystemroot}" embed="false">
59 + <patternset>
60 + <includesfile name="woproject/ant.frameworks.wo.wosystemroot" />
61 + </patternset>
62 +</frameworks>
63 +
64 +{{/code}}
65 +
66 +The most common choice is to embed locally installed WOnder and 3rd party frameworks that your app references by setting embed="true" on the wolocalroot frameworks dir as shown below:
67 +
68 +{{code title="Changes to build.xml to embed frameworks installed in /Library/Frameworks dir"}}
69 +
70 +<frameworks root="${wo.wolocalroot}" embed="true">
71 + <patternset>
72 + <includesfile name="woproject/ant.frameworks.wo.wolocalroot" />
73 + </patternset>
74 +</frameworks>
75 +<frameworks root="${user.home}" embed="false">
76 + <patternset>
77 + <includesfile name="woproject/ant.frameworks.user.home" />
78 + </patternset>
79 +</frameworks>
80 +<frameworks root="${wo.wosystemroot}" embed="false">
81 + <patternset>
82 + <includesfile name="woproject/ant.frameworks.wo.wosystemroot" />
83 + </patternset>
84 +</frameworks>
85 +
86 +{{/code}}
87 +
88 +The various dirs referenced in the build.xml from which you can select the embed option are:
89 +
90 +|=(((
91 +dir name
92 +)))|=(((
93 +Description
94 +)))
95 +|(((
96 +wo.wolocalroot
97 +)))|(((
98 +/Library/Frameworks/
99 +Embedding these is most useful especially if you the codebase for these, like WOnder frameworks or your own, is frequently updated
100 +)))
101 +|(((
102 +user.home
103 +)))|(((
104 +~~/Library/Frameworks/
105 +)))
106 +|(((
107 +wo.systemroot
108 +)))|(((
109 +/System/Library/Frameworks/
110 +This is where Apple's WebObjects frameworks are installed and if your WebObjects version is consistent between your deployment and development platforms, then embedding these is not of much benefit.
111 +)))
112 +
113 +{{note bgColor="#FFFFCE" title="Remember to..."}}
114 +If you are working with framework source in your Eclipse workspace (which you should be!), then it is critical that you build and install all frameworks before building the deployment bundles to ensure that the embedded frameworks are the same as the source you have been developing and testing with. See next subsection for one approcah to automating this.
115 +{{/note}}
116 +
117 +=== Pre-installing Workspace Frameworks Before Embedded Build ===
118 +
119 +You could write a task to install the frameworks directly from the workspace, for example:
120 +
121 +{{code}}
122 +
123 +<!-- Install my own dependent frameworks in final local install location before embedding -->
124 + <target name="installMyFrameworks">
125 + <ant dir="../WKDemography" target="install" inheritall="false" />
126 + <ant dir="../WKEmailData" target="install" inheritall="false" />
127 + <ant dir="../WKEOFExtensions" target="install" inheritall="false" />
128 + <ant dir="../WKFoundation" target="install" inheritall="false" />
129 + <ant dir="../WKPrototypes" target="install" inheritall="false" />
130 + <ant dir="../WKRemoteClient" target="install" inheritall="false" />
131 + <ant dir="../WKReports" target="install" inheritall="false" />
132 + <ant dir="../WKWebObjects" target="install" inheritall="false" />
133 + </target>
134 +
135 +{{/code}}
136 +
137 +... and then you could put a depends attribute on the build target to ensure the frameworks are installed before the embedded build task is executed:
138 +
139 +{{code}}
140 +
141 +<target name="build.woapp" depends="installMyFrameworks">
142 +
143 +{{/code}}
144 +
145 +== Advanced Approach ==
146 +
147 +**Caveat:** This example assumes that each framework you want to embed has an ant "build.xml" file with a "compileAndBuild" 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 compileAndBuild target for those external projects. (KK 3/30/2007)
148 +
149 +----
150 +
151 +See also [[FrameworkSet>>doc:WOProject-FrameworkSet]] documentation.
152 +
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.
155 +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  
7 -[[image:Folders.png]]
159 +[[image:attach:Folders.png]]
8 8  
9 -The [[^packageandgobuild.xml]] from the application. Two minor changes to the default build.xml:
10 -1 application target
161 +The [[attach:packageandgobuild.xml]]from the application. Two minor changes to the default build.xml:
162 + 1 application target
11 11  
12 12  {{code}}
13 13  
14 -<!-- package and go example-->
166 +<!-- package and go example-->
15 15  <frameworks root="../packageandgo/frameworks" embed="true">
16 16   <include name="*.framework"/>
17 17  </frameworks>
... ... @@ -18,10 +18,11 @@
18 18  
19 19  {{/code}}
20 20  
21 -2 compile target
173 +2 compile target
22 22  
23 23  {{code}}
24 -
176 +
177 +<!-- package and go example-->
25 25  <fileset dir="../packageandgo/frameworks">
26 26   <include name = "**/*.jar"/>
27 27  </fileset>
... ... @@ -28,8 +28,8 @@
28 28  
29 29  {{/code}}
30 30  
31 -
184 +The [[attach:build.xml]]from the packageandgo folder:
32 32  
33 -The [[^build.xml]] from the packageandgo folder:
186 +Just invoke ant in the packageandgo folder and grap the App from the applications folder within the packageandgo folder.
34 34  
35 -Just invoke ant in the packageandgo folder and grap the App from applications folder within the packageandgo folder
188 +[[image:attach:FoldersAfterBuild.png]]
Folders.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +6.9 KB
Content
FoldersAfterBuild.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +8.7 KB
Content
build.xml
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +735 bytes
Content
... ... @@ -1,0 +1,23 @@
1 +<project name="packageandgo" default="build" basedir=".">
2 +
3 + <target name="build" depends="clean">
4 + <property name="frameworks.dir" value="Frameworks" />
5 + <mkdir dir="${frameworks.dir}" />
6 + <property name="applications.dir" value="Applications" />
7 + <mkdir dir="${applications.dir}" />
8 + <ant dir="../Foo" antfile="build.xml" target="compileAndBuild">
9 + <property name="dest.dir" value="../packageandgo/${frameworks.dir}" />
10 + </ant>
11 + <ant dir="../Uli" antfile="packageandgobuild.xml" target="compileAndBuild">
12 + <property name="dest.dir" value="../packageandgo/${applications.dir}" />
13 + </ant>
14 + </target>
15 +
16 + <target name="clean">
17 + <delete dir="${frameworks.dir}" />
18 + <delete dir="${applications.dir}" />
19 + </target>
20 +
21 +
22 +</project>
23 +
old_packageandgobuild.xml
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +6.8 KB
Content
... ... @@ -1,0 +1,186 @@
1 +<project name="Uli" default="build" basedir=".">
2 +
3 + <!-- main targets -->
4 + <!-- add optional targets to depends list if needed -->
5 + <target name="build" depends="setProps,init.build,build.woapp,war,ssdd"/>
6 +
7 + <target name="compileAndBuild" depends="setProps,init.build,compile,build.woapp,war,ssdd" />
8 +
9 + <target name="install" depends="setProps,init.install,build.woapp,war,ssdd"/>
10 +
11 + <target name="clean" depends="setProps">
12 + <delete dir="dist"/>
13 + </target>
14 +
15 + <!-- property determination -->
16 + <target name="setProps">
17 + <property file="${user.home}${file.separator}build.properties"/>
18 + <property file="build.properties"/>
19 + <property file="${user.home}${file.separator}Library${file.separator}wobuild.properties"/>
20 + <condition property="wo.properties.check.failed">
21 + <not>
22 + <and>
23 + <isset property="wo.wosystemroot"/>
24 + <isset property="wo.wolocalroot"/>
25 + </and>
26 + </not>
27 + </condition>
28 + <fail message="Could not find ${user.home}${file.separator}Library${file.separator}wobuild.properties." if="wo.properties.check.failed"/>
29 + <property name="install.dir" value="${wo.wolocalroot}/Library/WebObjects/Applications"/>
30 + </target>
31 +
32 + <!-- basic initializations -->
33 + <target name="init.install">
34 + <tstamp/>
35 + <property name="dest.dir" value="${install.dir}"/>
36 + </target>
37 +
38 + <target name="init.build">
39 + <tstamp/>
40 + <property name="dest.dir" value="dist"/>
41 + </target>
42 +
43 + <!-- woproject tasks -->
44 + <target name="build.woapp">
45 +
46 + <taskdef name="woapplication" classname="org.objectstyle.woproject.ant.WOApplication">
47 + </taskdef>
48 +
49 + <!-- add webXML="true" to generate a web.xml file -->
50 + <woapplication name="${project.name}" stdFrameworks="false"
51 + destDir="${dest.dir}"
52 + customInfoPListContent="${customInfoPListContent}"
53 + principalClass="${principalClass}"
54 + webXML="${webXML}"
55 + webXML_CustomContent="${webXML_CustomContent}">
56 + <classes dir="${classes.dir}">
57 + <patternset>
58 + <includesfile name="woproject/classes.include.patternset"/>
59 + <excludesfile name="woproject/classes.exclude.patternset"/>
60 + </patternset>
61 + </classes>
62 + <wsresources dir=".">
63 + <patternset>
64 + <includesfile name="woproject/wsresources.include.patternset"/>
65 + <excludesfile name="woproject/wsresources.exclude.patternset"/>
66 + </patternset>
67 + </wsresources>
68 + <resources dir=".">
69 + <patternset>
70 + <includesfile name="woproject/resources.include.patternset"/>
71 + <excludesfile name="woproject/resources.exclude.patternset"/>
72 + </patternset>
73 + </resources>
74 + <!-- package and go example-->
75 + <frameworks root="../packageandgo/frameworks" embed="true">
76 + <include name="*.framework"/>
77 + </frameworks>
78 + <frameworks root="${wo.wosystemroot}">
79 + <patternset>
80 + <includesfile name="woproject/ant.frameworks.wo.wosystemroot"/>
81 + </patternset>
82 + </frameworks>
83 + <frameworks root="${wo.wolocalroot}">
84 + <patternset>
85 + <includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
86 + </patternset>
87 + </frameworks>
88 + <frameworks root="${user.home}">
89 + <patternset>
90 + <includesfile name="woproject/ant.frameworks.user.home"/>
91 + </patternset>
92 + </frameworks>
93 + <otherclasspath root="${wo.wosystemroot}">
94 + <patternset>
95 + <includesfile name="woproject/ant.classpaths.wo.wosystemroot"/>
96 + </patternset>
97 + </otherclasspath>
98 + <lib dir=".">
99 + <include name="Add .jar's that should be copied in the woa."/>
100 + <exclude name="**/*.woa/**"/>
101 + </lib>
102 + </woapplication>
103 + </target>
104 +
105 + <!-- optional targets -->
106 +
107 + <!-- war target-->
108 + <!-- To use this target remove the if="${never}" statement and create the LICENSE in your project
109 + and create the web.xml file with the woapplication task.-->
110 + <target name="war" if="${never}">
111 + <war destfile="${dest.dir}/${project.name}.war"
112 + webxml="${dest.dir}/${project.name}.woa/Contents/web.xml">
113 + <fileset dir="${dest.dir}">
114 + <include name="${project.name}.woa/**"/>
115 + </fileset>
116 + <fileset dir="..">
117 + <include name="LICENSE"/>
118 + </fileset>
119 + <lib dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/WebServerResources/Java/">
120 + <include name="JavaWOJSPServlet_client.jar"/>
121 + </lib>
122 + <zipfileset dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/Resources/" prefix="tlds">
123 + <include name="WOtaglib_1_0.tld"/>
124 + </zipfileset>
125 + </war>
126 + </target>
127 +
128 + <!-- ssdd target-->
129 + <!-- To use this target remove the if="${never}" statement and create the LICENSE in your project
130 + and create the web.xml file with the woapplication task.-->
131 + <target name="ssdd" if="${never}">
132 + <mkdir dir="${dest.dir}/${project.name}/WEB-INF/tlds"/>
133 + <copy todir="${dest.dir}/${project.name}/WEB-INF/">
134 + <fileset dir="${dest.dir}/${project.name}.woa/Contents/">
135 + <include name="web.xml"/>
136 + </fileset>
137 + </copy>
138 + <copy todir="${dest.dir}/${project.name}/WEB-INF/">
139 + <fileset dir="..">
140 + <include name="LICENSE"/>
141 + </fileset>
142 + </copy>
143 + <copy todir="${dest.dir}/${project.name}/WEB-INF/">
144 + <fileset dir="${dest.dir}">
145 + <include name="${project.name}.woa/**"/>
146 + </fileset>
147 + </copy>
148 + <copy todir="${dest.dir}/${project.name}/WEB-INF/tlds">
149 + <fileset dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/Resources/">
150 + <include name="WOtaglib_1_0.tld"/>
151 + </fileset>
152 + </copy>
153 + </target>
154 +
155 + <!-- copy strings files -->
156 + <target name="copy.strings">
157 + <copy todir="${dest.dir}/${project.name}.woa/Contents/Resources">
158 + <fileset dir="." casesensitive="yes">
159 + <include name="*.strings"/>
160 + <include name="**/*.strings"/>
161 + </fileset>
162 + <mapper type="flatten"/>
163 + </copy>
164 + </target>
165 +
166 + <target name = "compile" depends = "setProps,init.build" >
167 + <mkdir dir = "bin"/>
168 + <javac srcdir = "src" destdir = "bin">
169 + <classpath>
170 + <!-- package and go example-->
171 + <fileset dir="../packageandgo/frameworks">
172 + <include name = "**/*.jar"/>
173 + </fileset>
174 + <fileset dir="${wo.dir.user.home.library.frameworks}" includesfile = "woproject/ant.frameworks.user.home">
175 + <include name = "**/*.jar"/>
176 + </fileset>
177 + <fileset dir="${wo.wolocalroot}" includesfile = "woproject/ant.frameworks.wo.wolocalroot">
178 + <include name = "**/*.jar"/>
179 + </fileset>
180 + <fileset dir="${wo.wosystemroot}" includesfile = "woproject/ant.frameworks.wo.wosystemroot">
181 + <include name = "**/*.jar"/>
182 + </fileset>
183 + </classpath>
184 + </javac>
185 + </target>
186 +</project>
packageandgobuild.xml
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +6.8 KB
Content
... ... @@ -1,0 +1,186 @@
1 +<project name="Uli" default="build" basedir=".">
2 +
3 + <!-- main targets -->
4 + <!-- add optional targets to depends list if needed -->
5 + <target name="build" depends="setProps,init.build,build.woapp,war,ssdd"/>
6 +
7 + <target name="compileAndBuild" depends="setProps,init.build,compile,build.woapp,war,ssdd" />
8 +
9 + <target name="install" depends="setProps,init.install,build.woapp,war,ssdd"/>
10 +
11 + <target name="clean" depends="setProps">
12 + <delete dir="dist"/>
13 + </target>
14 +
15 + <!-- property determination -->
16 + <target name="setProps">
17 + <property file="${user.home}${file.separator}build.properties"/>
18 + <property file="build.properties"/>
19 + <property file="${user.home}${file.separator}Library${file.separator}wobuild.properties"/>
20 + <condition property="wo.properties.check.failed">
21 + <not>
22 + <and>
23 + <isset property="wo.wosystemroot"/>
24 + <isset property="wo.wolocalroot"/>
25 + </and>
26 + </not>
27 + </condition>
28 + <fail message="Could not find ${user.home}${file.separator}Library${file.separator}wobuild.properties." if="wo.properties.check.failed"/>
29 + <property name="install.dir" value="${wo.wolocalroot}/Library/WebObjects/Applications"/>
30 + </target>
31 +
32 + <!-- basic initializations -->
33 + <target name="init.install">
34 + <tstamp/>
35 + <property name="dest.dir" value="${install.dir}"/>
36 + </target>
37 +
38 + <target name="init.build">
39 + <tstamp/>
40 + <property name="dest.dir" value="dist"/>
41 + </target>
42 +
43 + <!-- woproject tasks -->
44 + <target name="build.woapp">
45 +
46 + <taskdef name="woapplication" classname="org.objectstyle.woproject.ant.WOApplication">
47 + </taskdef>
48 +
49 + <!-- add webXML="true" to generate a web.xml file -->
50 + <woapplication name="${project.name}" stdFrameworks="false"
51 + destDir="${dest.dir}"
52 + customInfoPListContent="${customInfoPListContent}"
53 + principalClass="${principalClass}"
54 + webXML="${webXML}"
55 + webXML_CustomContent="${webXML_CustomContent}">
56 + <classes dir="${classes.dir}">
57 + <patternset>
58 + <includesfile name="woproject/classes.include.patternset"/>
59 + <excludesfile name="woproject/classes.exclude.patternset"/>
60 + </patternset>
61 + </classes>
62 + <wsresources dir=".">
63 + <patternset>
64 + <includesfile name="woproject/wsresources.include.patternset"/>
65 + <excludesfile name="woproject/wsresources.exclude.patternset"/>
66 + </patternset>
67 + </wsresources>
68 + <resources dir=".">
69 + <patternset>
70 + <includesfile name="woproject/resources.include.patternset"/>
71 + <excludesfile name="woproject/resources.exclude.patternset"/>
72 + </patternset>
73 + </resources>
74 + <!-- package and go example-->
75 + <frameworks root="../packageandgo/frameworks" embed="true">
76 + <include name="*.framework"/>
77 + </frameworks>
78 + <frameworks root="${wo.wolocalroot}">
79 + <patternset>
80 + <includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
81 + </patternset>
82 + </frameworks>
83 + <frameworks root="${wo.wosystemroot}">
84 + <patternset>
85 + <includesfile name="woproject/ant.frameworks.wo.wosystemroot"/>
86 + </patternset>
87 + </frameworks>
88 + <frameworks root="${user.home}">
89 + <patternset>
90 + <includesfile name="woproject/ant.frameworks.user.home"/>
91 + </patternset>
92 + </frameworks>
93 + <otherclasspath root="${wo.wosystemroot}">
94 + <patternset>
95 + <includesfile name="woproject/ant.classpaths.wo.wosystemroot"/>
96 + </patternset>
97 + </otherclasspath>
98 + <lib dir=".">
99 + <include name="Add .jar's that should be copied in the woa."/>
100 + <exclude name="**/*.woa/**"/>
101 + </lib>
102 + </woapplication>
103 + </target>
104 +
105 + <!-- optional targets -->
106 +
107 + <!-- war target-->
108 + <!-- To use this target remove the if="${never}" statement and create the LICENSE in your project
109 + and create the web.xml file with the woapplication task.-->
110 + <target name="war" if="${never}">
111 + <war destfile="${dest.dir}/${project.name}.war"
112 + webxml="${dest.dir}/${project.name}.woa/Contents/web.xml">
113 + <fileset dir="${dest.dir}">
114 + <include name="${project.name}.woa/**"/>
115 + </fileset>
116 + <fileset dir="..">
117 + <include name="LICENSE"/>
118 + </fileset>
119 + <lib dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/WebServerResources/Java/">
120 + <include name="JavaWOJSPServlet_client.jar"/>
121 + </lib>
122 + <zipfileset dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/Resources/" prefix="tlds">
123 + <include name="WOtaglib_1_0.tld"/>
124 + </zipfileset>
125 + </war>
126 + </target>
127 +
128 + <!-- ssdd target-->
129 + <!-- To use this target remove the if="${never}" statement and create the LICENSE in your project
130 + and create the web.xml file with the woapplication task.-->
131 + <target name="ssdd" if="${never}">
132 + <mkdir dir="${dest.dir}/${project.name}/WEB-INF/tlds"/>
133 + <copy todir="${dest.dir}/${project.name}/WEB-INF/">
134 + <fileset dir="${dest.dir}/${project.name}.woa/Contents/">
135 + <include name="web.xml"/>
136 + </fileset>
137 + </copy>
138 + <copy todir="${dest.dir}/${project.name}/WEB-INF/">
139 + <fileset dir="..">
140 + <include name="LICENSE"/>
141 + </fileset>
142 + </copy>
143 + <copy todir="${dest.dir}/${project.name}/WEB-INF/">
144 + <fileset dir="${dest.dir}">
145 + <include name="${project.name}.woa/**"/>
146 + </fileset>
147 + </copy>
148 + <copy todir="${dest.dir}/${project.name}/WEB-INF/tlds">
149 + <fileset dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/Resources/">
150 + <include name="WOtaglib_1_0.tld"/>
151 + </fileset>
152 + </copy>
153 + </target>
154 +
155 + <!-- copy strings files -->
156 + <target name="copy.strings">
157 + <copy todir="${dest.dir}/${project.name}.woa/Contents/Resources">
158 + <fileset dir="." casesensitive="yes">
159 + <include name="*.strings"/>
160 + <include name="**/*.strings"/>
161 + </fileset>
162 + <mapper type="flatten"/>
163 + </copy>
164 + </target>
165 +
166 + <target name = "compile" depends = "setProps,init.build" >
167 + <mkdir dir = "bin"/>
168 + <javac srcdir = "src" destdir = "bin">
169 + <classpath>
170 + <!-- package and go example-->
171 + <fileset dir="../packageandgo/frameworks">
172 + <include name = "**/*.jar"/>
173 + </fileset>
174 + <fileset dir="${wo.dir.user.home.library.frameworks}" includesfile = "woproject/ant.frameworks.user.home">
175 + <include name = "**/*.jar"/>
176 + </fileset>
177 + <fileset dir="${wo.wolocalroot}" includesfile = "woproject/ant.frameworks.wo.wolocalroot">
178 + <include name = "**/*.jar"/>
179 + </fileset>
180 + <fileset dir="${wo.wosystemroot}" includesfile = "woproject/ant.frameworks.wo.wosystemroot">
181 + <include name = "**/*.jar"/>
182 + </fileset>
183 + </classpath>
184 + </javac>
185 + </target>
186 +</project>