summaryrefslogtreecommitdiff
path: root/ant-common.sh
blob: 2ff38e8eca6693d85cca82662671d3ff9a907b47 (plain) (blame)
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
#!/bin/bash
########################################################-*-Shell-script-*-####
# Common settings
##############################################################################
# $Id$

##############################################################################
# Apache Ant

ANT_CMD=ant
#ANT_OPTS='-Xmx256m -Xms256M'
ANT_OPTS=

##############################################################################
# Shell commands

AWK=awk
CP=cp
ECHO=echo
RM='rm -f'
SED=sed

##############################################################################
# set user environment

$AWK '/^$/ {next;} /^#/ {next;} {print "export " $1 $2 $3}' \
  build-nsc.properties > env.sh

. env.sh

# ------- don't change these, change build-nsc.properties instead

function addJar() { # string -> void
  local jarfile="$1"; shift 1;
  local jarname="$1";
  if [ -f $jarfile ]; then 
    CLASSPATH=$jarfile:$CLASSPATH;
	return 0;
  else
    $ECHO you supplied $jarfile for $jarname, but it does not exists;
	return -1;
  fi
}

##############################################################################