-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
148 lines (128 loc) · 5.58 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================= -->
<!-- Looks -->
<!-- ============================================= -->
<!-- $Header: /cvs/adempiere/looks/build.xml,v 1.1 2006/04/21 18:02:25 jjanke Exp $-->
<project name="looks" default="looksDistribution" basedir=".">
<description>
Build the UI subproject within the Adempiere project.
</description>
<!-- set global properties for this build -->
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="."/>
<property name="jar.path" value="../lib"/>
<property name="jar.name" value="CLooks"/>
<property name="version" value="_13"/>
<!--<property environment="env"/>-->
<import file="../utils_dev/properties.xml"/>
<!-- set path to include the necessary jar files for javac -->
<path id="project.class.path">
<pathelement path="${classpath}"/>
<!-- Adempiere Look and Feel -->
<pathelement path="${jar.path}/CCTools.jar"/>
</path>
<target name="init" description="initialization target">
<echo message="=========== Build Looks"/>
<!-- create the time stamp -->
<tstamp/>
<!-- create the build directory structure used by compile -->
<mkdir dir="${build.dir}"/>
<!-- check for the distribution directory -->
<available file="${dist.dir}" type="dir" property="dist.dir.exists"/>
</target>
<target name="makedir" depends="init" unless="dist.dir.exists">
<!-- create the distribution directory if not available -->
<mkdir dir="${dist}/${dist.dir}"/>
</target>
<target name="looksCompile" depends="makedir">
<!-- compile the java code from ${src} into ${build.dir} -->
<javac target="1.8" encoding="UTF-8" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
<classpath refid="project.class.path"/>
</javac>
<!-- copy all image & sound files from src to the build directory -->
<copy todir="${build.dir}">
<fileset dir="${src}">
<include name="**/images/*"/>
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
<include name="**/*.wav"/>
<include name="**/*.htm"/>
<include name="**/*.html"/>
<include name="**/*.properties"/>
<exclude name="**/package.html"/>
</fileset>
</copy>
</target>
<!-- =========================================== -->
<!-- Distribution -->
<!-- =========================================== -->
<target name="looksDistribution" depends="looksCompile" description="Create CLooks.jar">
<!-- put everything from ${build.dir} into the ${jar.name}.jar file -->
<jar jarfile="${dist.dir}/${jar.name}.jar"
excludes="**/*.jbx"
index="yes">
<fileset dir="${build.dir}"/>
<manifest>
<attribute name="Specification-Title" value="Adempiere Swing UI"/>
<attribute name="Specification-Version" value="${env.ADEMPIERE_VERSION}${version}"/>
<attribute name="Specification-Vendor" value="Adempiere.org"/>
<attribute name="Implementation-Title" value="CLooks ${env.ADEMPIERE_VERSION}${version}"/>
<attribute name="Implementation-Version" value="${env.ADEMPIERE_VERSION}${version} ${DSTAMP}-${TSTAMP}"/>
<attribute name="Implementation-Vendor" value="${env.ADEMPIERE_VENDOR}"/>
<attribute name="Implementation-URL" value="http://www.adempiere.net"/>
<attribute name="Main-Class" value="org.adempiere.plaf.AdempierePLAF"/>
</manifest>
</jar>
</target>
<!-- =========================================== -->
<!-- Clean up -->
<!-- =========================================== -->
<target name="clean">
<!-- Delete the ${build.dir} directory trees -->
<delete dir="${build.dir}"/>
<!-- Delete the Doc/Source files -->
<delete file="${dist.dir}/${jar.name}.jar" failonerror="false"/>
<delete file="${dist.dir}/${jar.name}Doc.jar" failonerror="false"/>
<delete file="${dist.dir}/${jar.name}Source.jar" failonerror="false"/>
</target>
<!-- =========================================== -->
<!-- Documentation -->
<!-- =========================================== -->
<target name="looksDocumentation">
<javadoc packageList="packages.txt"
sourcepath="src"
excludepackagenames=""
defaultexcludes="yes"
destdir="doc"
author="true" version="true" use="true"
windowtitle="Adempiere Looks API Documentation"
overview="overview.html">
<doctitle><![CDATA[Adempiere<sup>TM</sup> Looks API Documentation]]></doctitle>
<header><![CDATA[<b>Adempiere Looks 1.3</b>]]></header>
<bottom><![CDATA[<i>Copyright (c) 1999-2005 ComPiere, Inc. - Author: Jorg Janke</i>]]></bottom>
<link href="http://java.sun.com/j2se/1.5/docs/api"/>
</javadoc>
</target>
<!-- =========================================== -->
<!-- Release -->
<!-- =========================================== -->
<target name="looksRelease">
<!-- Create Release Jar Files -->
<jar
jarfile="${dist.dir}/${jar.name}Doc${version}.jar"
basedir="doc"/>
<jar
jarfile="${dist.dir}/${jar.name}Source${version}.jar"
basedir="src"/>
<copy
file="${dist.dir}/${jar.name}.jar"
tofile="${dist.dir}/${jar.name}${version}.jar" />
<!-- Sign Jar -->
<signjar
jar="${dist.dir}/${jar.name}${version}.jar"
alias="adempiere"
storepass="${password}"
keystore="../keystore/myKeystore"/>
</target>
</project>