/
build.xml
119 lines (108 loc) · 3.87 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="Authentication">
<!-- main targets -->
<!-- add optional targets to depends list if needed -->
<target depends="setProps,init.build,build.woframework" name="build"/>
<target depends="setProps,init.build,compile,build.woframework" name="compileAndBuild"/>
<target depends="setProps,init.install,build.woframework" name="install"/>
<target depends="setProps" name="clean">
<delete dir="dist"/>
</target>
<!-- property determination -->
<target name="setProps">
<property file="${user.home}${file.separator}build.properties"/>
<property file="build.properties"/>
<property file="${user.home}${file.separator}Library${file.separator}wobuild.properties"/>
<condition property="wo.properties.check.failed">
<not>
<and>
<isset property="wo.system.frameworks" />
<isset property="wo.local.frameworks" />
</and>
</not>
</condition>
<fail if="wo.properties.check.failed" message="Could not find ${user.home}${file.separator}Library${file.separator}wobuild.properties."/>
<property name="install.dir" value="${wo.local.frameworks}"/>
</target>
<!-- basic initializations -->
<target name="init.install">
<tstamp/>
<property name="dest.dir" value="${install.dir}"/>
</target>
<target name="init.build">
<tstamp/>
<property name="dest.dir" value="dist"/>
</target>
<!-- woproject tasks -->
<target name="build.woframework">
<taskdef classname="org.objectstyle.woproject.ant.WOFramework" name="woframework">
</taskdef>
<woframework cfbundleID="${cfBundleID}" cfbundleshortversion="${cfBundleShortVersion}" cfbundleversion="${cfBundleVersion}" customInfoPListContent="${customInfoPListContent}" destDir="${dest.dir}" eoAdaptorClassName="${eoAdaptorClassName}" javaVersion="${javaVersion}" name="${project.name}" principalClass="${principalClass}">
<classes dir="${classes.dir}">
<patternset>
<includesfile name="woproject/classes.include.patternset"/>
<excludesfile name="woproject/classes.exclude.patternset"/>
</patternset>
</classes>
<wsresources dir="WebServerResources">
<patternset>
<include name="**/*"/>
<exclude name="CVS"/>
<exclude name=".svn"/>
<excludesfile name="woproject/wsresources.exclude.patternset"/>
</patternset>
</wsresources>
<resources dir="Resources">
<patternset>
<include name="**/*"/>
<exclude name="CVS"/>
<exclude name=".svn"/>
<excludesfile name="woproject/resources.exclude.patternset"/>
</patternset>
</resources>
<resources dir="Components">
<patternset>
<include name="**/*"/>
<exclude name="CVS"/>
<exclude name=".svn"/>
<excludesfile name="woproject/resources.exclude.patternset"/>
</patternset>
</resources>
<lib dir="Libraries">
<include name="*.jar"/>
<exclude name="**/*.framework/**"/>
</lib>
</woframework>
</target>
<target depends="setProps,init.build" name="compile">
<taskdef classname="org.objectstyle.woproject.ant.WOCompile" name="wocompile"/>
<mkdir dir="bin"/>
<wocompile destdir="bin" srcdir="Sources">
<frameworks root="${wo.dir.user.home.library.frameworks}">
<patternset>
<includesfile name="woproject/ant.frameworks.user.home"/>
</patternset>
</frameworks>
<frameworks root="${wo.wolocalroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
</patternset>
</frameworks>
<frameworks root="${wo.wosystemroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wosystemroot"/>
</patternset>
</frameworks>
<classpath>
<fileset dir="${wo.wolocalroot}">
<patternset>
<includesfile name="woproject/ant.frameworks.wo.wolocalroot"/>
</patternset>
</fileset>
<fileset dir="Libraries">
<filename name="**/*.jar"/>
</fileset>
</classpath>
</wocompile>
</target>
</project>