File: loadTools.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 (21 lines) | stat: -rwxr-xr-x 683 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
#!/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
#


dp0=${0%/*}

if [ ! -d "$dp0/lib" ]; then
   mkdir "$dp0/lib"
fi

if [ ! -e "$dp0/loader/Loader.class" ]; then
   javac "$dp0/loader/Loader.java"
fi

java -cp "$dp0/loader" Loader https://robocode.sourceforge.io/tools/libs/ "$dp0/lib/" ant.jar ant-contrib-0.6.jar ant-launcher.jar jacobe.jar junit.jar classworlds-1.1.jar maven-2.2.1-uber.jar