File: build.sh

package info (click to toggle)
libjgroups2.6-java 2.6.15.GA-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 7,668 kB
  • ctags: 14,413
  • sloc: java: 89,502; xml: 8,440; sh: 268; makefile: 15
file content (59 lines) | stat: -rw-r--r-- 1,223 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
# Ant build script for the JGroups project
# The following variables have to be set in the following way
# PATH should include $JAVA_HOME/bin
JG_HOME=.


case "`uname`" in
    CYGWIN*)
        cygwin=true
        ;;

    Darwin*)
        darwin=true
        ;;
esac



LIB=$PWD/lib



if [ "$cygwin" = "true" ]; then
    for i in ${LIB}/*.jar
        do
           CP=${CP}${i}\;
        done
else
    for i in ${LIB}/*.jar
        do
           CP=${CP}${i}:
        done
fi



if [ -n "$JAVA_HOME" ]; then
    if [ -f "$JAVA_HOME/lib/tools.jar" ]; then
        if [ "$cygwin" = "true" ]; then
            CP=${CP}\;${JAVA_HOME}/lib/tools.jar
        else
            CP=${CP}:${JAVA_HOME}/lib/tools.jar
        fi
    fi
else
    echo "WARNING: JAVA_HOME environment variable is not set."
    echo "  If build fails because sun.* classes could not be found"
    echo "  you will need to set the JAVA_HOME environment variable"
    echo "  to the installation directory of java."
fi


if [ -n "$JAVA_HOME" ]; then
	${JAVA_HOME}/bin/java -classpath "${CP}" org.apache.tools.ant.Main -buildfile ${JG_HOME}/build.xml $*
else
	java -classpath "${CP}" org.apache.tools.ant.Main -buildfile ${JG_HOME}/build.xml $*
fi