File: jacobe.sh

package info (click to toggle)
robocode 1.9.3.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,648 kB
  • sloc: java: 53,012; cs: 25,275; xml: 2,337; sh: 272; makefile: 15
file content (24 lines) | stat: -rwxr-xr-x 812 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
#!/bin/bash
#
# Copyright (c) 2001-2020 Mathew A. Nelson and Robocode contributors
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# https://robocode.sourceforge.io/license/epl-v10.html
#

# NOTE: Here we expect the jacobe tools to be installed on PATH

dp0=${0%/*}

if [ ! -f $dp0/tools/lib/ant-launcher.jar ]; then
   $dp0/tools/loadTools.sh
elif [ ! -f $dp0/tools/lib/ant.jar ]; then
   $dp0/tools/loadTools.sh
elif [ ! -f $dp0/tools/lib/jacobe.jar ]; then
   $dp0/tools/loadTools.sh
fi

export CLASSPATH=$CLASSPATH:$dp0/tools/lib/ant-launcher.jar:$dp0/tools/lib/ant.jar:$dp0/tools/lib/jacobe.jar
$dp0/tools/bin/ant.sh -buildfile $dp0/tools/jacobe/build.xml