-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
111 lines (98 loc) · 3.85 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
<?xml version="1.0" encoding="ISO-8859-1" ?>
<project basedir="." name="MEGA" default="all">
<property name="src" value="SRC" />
<property name="lib" value="LIB" />
<property name="build" value="BUILD" />
<property name="dist" value="${build}/DIST" />
<property name="classes" value="${build}/CLASSES" />
<property name="dtd" value="DTD" />
<property file="build.properties" />
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="all" depends="common, layout, action, tags" />
<target name="layout" depends="compile">
<jar destfile="${dist}/${layout.file}">
<manifest>
<section name="net/java/mega">
<attribute name="Implementation-Title" value="MEGA Web Framework - Layout"/>
<attribute name="Implementation-Version" value="${layout.version}"/>
<attribute name="Implementation-Vendor" value="SysVision - Consultadoria e Desenvolvimento em Sistemas de Informatica, Lda"/>
<attribute name="Implementation-URL" value="http://java.net/projects/mega"/>
<attribute name="Implementation-License" value="Apache Licence, Version 2"/>
</section>
</manifest>
<fileset dir="${classes}">
<include name="**/layout/**" />
</fileset>
<fileset dir="${dtd}">
<include name="layout-config.dtd"/>
</fileset>
</jar>
</target>
<target name="action" depends="compile">
<jar destfile="${dist}/${action.file}">
<manifest>
<section name="net/java/mega">
<attribute name="Implementation-Title" value="MEGA Web Framework - Action"/>
<attribute name="Implementation-Version" value="${action.version}"/>
<attribute name="Implementation-Vendor" value="SysVision - Consultadoria e Desenvolvimento em Sistemas de Informatica, Lda"/>
<attribute name="Implementation-URL" value="http://java.net/projects/mega"/>
<attribute name="Implementation-License" value="Apache Licence, Version 2"/>
</section>
</manifest>
<fileset dir="${classes}">
<include name="**/action/**" />
</fileset>
<fileset dir="${dtd}">
<include name="action-config.dtd"/>
</fileset>
</jar>
</target>
<target name="tags" depends="compile">
<jar destfile="${dist}/${tags.file}">
<manifest>
<section name="net/java/mega">
<attribute name="Implementation-Title" value="MEGA Web Framework - Tags"/>
<attribute name="Implementation-Version" value="${tags.version}"/>
<attribute name="Implementation-Vendor" value="SysVision - Consultadoria e Desenvolvimento em Sistemas de Informatica, Lda"/>
<attribute name="Implementation-URL" value="http://java.net/projects/mega"/>
<attribute name="Implementation-License" value="Apache Licence, Version 2"/>
</section>
</manifest>
<fileset dir="${classes}">
<include name="**/tags/**" />
</fileset>
</jar>
</target>
<target name="common" depends="compile">
<jar destfile="${dist}/${common.file}">
<manifest>
<section name="net/java/mega">
<attribute name="Implementation-Title" value="MEGA Web Framework - Common"/>
<attribute name="Implementation-Version" value="${common.version}"/>
<attribute name="Implementation-Vendor" value="SysVision - Consultadoria e Desenvolvimento em Sistemas de Informatica, Lda"/>
<attribute name="Implementation-URL" value="http://java.net/projects/mega"/>
<attribute name="Implementation-License" value="Apache Licence, Version 2"/>
</section>
</manifest>
<fileset dir="${classes}">
<include name="**/common/**" />
</fileset>
</jar>
</target>
<target name="compile" depends="init">
<javac debug="on" optimize="on" deprecation="on" classpathref="classpath" srcdir="${src}" destdir="${classes}" />
</target>
<target name="init">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
<mkdir dir="${classes}" />
</target>
<target name="clean_all">
<delete dir="${build}" />
</target>
</project>