-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild15+
More file actions
36 lines (30 loc) · 720 Bytes
/
Copy pathbuild15+
File metadata and controls
36 lines (30 loc) · 720 Bytes
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
#!/bin/sh -
#
# build script for 1.5
#
# If it's given a buildname it creates a subdirectory and places a build in it,
# otherwise it just creates the docs and class files.
#
if [ "${JDKPATH}" = "" ]
then
JDKPATH=/opt/jdk1.5.0 # JDK 1.5 location
JAVA_MAIL_HOME=/opt/javamail
JAVA_ACTIVATION_HOME=/opt/jaf
JUNIT_HOME=/opt/junit
fi
JAVA_HOME=$JDKPATH
export JAVA_HOME
PATH=$JDKPATH/bin:$PATH
export PATH
CLASSPATH=$JAVA_MAIL_HOME/mail.jar:$JAVA_ACTIVATION_HOME/activation.jar:$JUNIT_HOME/junit.jar:$CLASSPATH
export CLASSPATH
if [ "$1" = "test" ]
then
ant -f jdk15+.xml test
else
if ant -f jdk15+.xml build-provider
then
ant -f jdk15+.xml build
ant -f jdk15+.xml zip-src
fi
fi