To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.
This has been transcribed by Andrew Lindesay from the old WOProject site.
FrameworkSet
is an extension of Ant FileSet that allows matching and conditional inclusion of frameworks. It is used as a nested element by various WOProject tasks. When building a FrameworkSet, path should match up to the "*.framework" directory (no need to match individual JAR files).
Attribute |
Description |
Required |
---|---|---|
dir |
A base directory for the include/exclude pattern lookup. When the prefix for the directory matches one of |
Yes |
deploymentDir |
The base directory that is prefixed to the frameworks in the classpath files. This allows you to decouple your compile time paths from the deployment paths. Useful when you have vastly different file layouts in the development vs. the deployment server. Used only when inside a |
No |
if |
The name of a property that determines if the framework set is included. If present, this property is used for conditional inclusion of the matched framework. Property name should not be included in |
No |
embed |
Indicates if these frameworks should be embedded (e.g. within an application bundle). |
No |
bundles |
A '/' separated list of bundles to take from <dir>. This is an alternative to using the embedded <include> tag. This way, it's much easier to simply put all the relevant stuff inside the build.properties and forget about all the patternset files. |
No |
root |
DEPRECATED use dir instead. |
- |
Note: all standard FileSet parameters are supported as well.
Using nested "frameworks" element that is a FrameworkSet inside WOCompile task:
<wocompile srcdir="Java" destdir="classes"> <frameworks dir="../Frameworks"> <include name="JavaWOExtension.framework"/> <include name="ER*.framework"/> <exclude name="ERNeutralLook.framework"/> </frameworks> <frameworks dir="${wo.localroot}"> <include name="Mysql*.framework"/> </frameworks> </wocompile>
Using bundles instead of include:
<wocompile srcdir="Java" destdir="classes"> <frameworks dir="${wo.wolocalroot}/Library/Frameworks" embed="true" bundles="ERJars/ERExtensions/PostgresqlPlugIn/Ajax/ERDirectToWeb/ERJavaMail/ERWebServices/JavaWOExtensions/LUNeutralLook"> </frameworks> </wocompile>
2 Comments
Gavin Eadie
There's also an "eclipse=..." parameter. What does that do?
Gavin Eadie
Eclipse="true" causes the frameworkset to refer to the Eclipse file '.classpath' to embed frameworks listed therein.