This commit is contained in:
parent
c2f749367a
commit
2ac2d77e50
|
@ -1,17 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
|
||||
@rem NOTE: Here we expect jacobe.exe to be installed on system PATH
|
||||
|
||||
@echo off
|
||||
if exist "%~dp0\tools\lib\jacobe.jar" goto jacobe
|
||||
call "%~dp0\tools\loadTools.cmd"
|
||||
|
||||
:jacobe
|
||||
call "%~dp0\tools\bin\ant.bat" -buildfile "%~dp0\tools\jacobe\build.xml"
|
|
@ -1,15 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
if not exist "%~dp0\tools\lib\maven-*-uber.jar" (
|
||||
call "%~dp0\tools\loadTools.cmd"
|
||||
)
|
||||
|
||||
call "%~dp0\tools\bin\mvn.bat" %*
|
|
@ -1,12 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
mvn clean install ant:ant -DskipTests=false %*
|
||||
rem mvn eclipse:eclipse
|
|
@ -1,41 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
rem set JAVA_HOME=%JDK6_HOME%
|
||||
rem set PATH=%JAVA_HOME%\bin;%PATH%
|
||||
|
||||
set NET_FRAMEWORK_HOME=C:\Windows\Microsoft.NET\Framework\v3.5
|
||||
set PATH=%NET_FRAMEWORK_HOME%;%PATH%
|
||||
|
||||
if exist "%~dp0\tools\lib\proxygen.exe" goto gen
|
||||
call "%~dp0\tools\loadTools.cmd"
|
||||
|
||||
:gen
|
||||
"%~dp0\tools\lib\proxygen.exe" tools\proxygen\robocode.control.proxygen.xml
|
||||
"%~dp0\tools\lib\proxygen.exe" tools\proxygen\robocode.proxygen.xml
|
||||
|
||||
if exist "%~dp0\robocode.dotnet.nhost\target\robocode.dotnet.nhost.dll" goto gen1
|
||||
echo cat't find robocode.dotnet.nhost\target\robocode.dotnet.nhost.dll, please compile it
|
||||
goto end
|
||||
|
||||
:gen1
|
||||
if exist "%~dp0\tools\lib\robocode.dll" goto gen3
|
||||
if exist "%~dp0\robocode.dotnet.api\target\robocode.dll" goto gen2
|
||||
echo cat't find \robocode.dotnet.api\target\robocode.dll, please compile it
|
||||
goto end
|
||||
|
||||
:gen2
|
||||
|
||||
copy "%~dp0\robocode.dotnet.api\target\robocode.dll" "%~dp0\tools\lib"
|
||||
|
||||
:gen3
|
||||
"%~dp0\tools\lib\proxygen.exe" tools\proxygen\robocode.proxygen.net.xml
|
||||
|
||||
:end
|
|
@ -1,20 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
if not exist "%~dp0\tools\lib" (
|
||||
mkdir "%~dp0\tools\lib"
|
||||
call "%~dp0\tools\loadTools.cmd"
|
||||
)
|
||||
|
||||
if not exist "%~dp0\..\..\tools\lib\maven-*-uber.jar" (
|
||||
call "%~dp0\..\..\tools\loadTools.cmd"
|
||||
)
|
||||
|
||||
call "%~dp0\..\..\mvn" %*
|
|
@ -1,12 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
mvn clean install ant:ant -DskipTests=false %*
|
||||
rem mvn eclipse:eclipse
|
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
java -Xmx512M -cp libs/robocode.jar;libs/jni4net.j-0.8.7.0.jar robocode.Robocode %*
|
Binary file not shown.
Before Width: | Height: | Size: 25 KiB |
|
@ -1,34 +0,0 @@
|
|||
#Robocode Properties
|
||||
#Mon Aug 17 23:43:36 CEST 2009
|
||||
robocode.cpu.constant=9994115
|
||||
robocode.options.battle.desiredTPS=30
|
||||
robocode.options.common.appendWhenSavingResults=true
|
||||
robocode.options.common.dontHideRankings=true
|
||||
robocode.options.common.enableReplayRecording=false
|
||||
robocode.options.common.showResults=true
|
||||
robocode.options.development.path=..\\robocode.dotnet.samples\\target;
|
||||
robocode.options.rendering.antialiasing=0
|
||||
robocode.options.rendering.bufferImages=true
|
||||
robocode.options.rendering.forceBulletColor=false
|
||||
robocode.options.rendering.method=0
|
||||
robocode.options.rendering.noBuffers=2
|
||||
robocode.options.rendering.text.antialiasing=0
|
||||
robocode.options.sound.enableBulletHit=true
|
||||
robocode.options.sound.enableGunshot=true
|
||||
robocode.options.sound.enableMixerPan=true
|
||||
robocode.options.sound.enableMixerVolume=true
|
||||
robocode.options.sound.enableRobotCollision=true
|
||||
robocode.options.sound.enableRobotDeath=true
|
||||
robocode.options.sound.enableSound=false
|
||||
robocode.options.sound.enableWallCollision=true
|
||||
robocode.options.sound.mixer=DirectAudioDevice
|
||||
robocode.options.view.FPS=true
|
||||
robocode.options.view.TPS=true
|
||||
robocode.options.view.explosionDebris=true
|
||||
robocode.options.view.explosions=true
|
||||
robocode.options.view.ground=true
|
||||
robocode.options.view.robotEnergy=true
|
||||
robocode.options.view.robotNames=true
|
||||
robocode.options.view.scanArcs=false
|
||||
robocode.version.lastrun=\ 1.7.1.3
|
||||
robocode.versionchecked=08/17/2009 23\:11\:46
|
|
@ -1,4 +0,0 @@
|
|||
#Robocode Properties
|
||||
#Fri Jan 02 00:50:04 CET 2009
|
||||
robocode.options.development.path=../../../robocode.samples/target/classes;../robocode.dotnet.samples/target;../robocode.dotnet.robotscs/target
|
||||
robocode.versionchecked=01/04/2109 23\:46\:20
|
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe" -k robocode.snk
|
|
@ -1,23 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
if not exist "%~dp0/lib/" (
|
||||
mkdir "%~dp0/lib/"
|
||||
)
|
||||
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/jni4net.n/0.8.7.0/ "%~dp0/lib/" jni4net.n-0.8.7.0.dll
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/jni4net.n.w32.v20/0.8.7.0/ "%~dp0/lib/" jni4net.n.w32.v20-0.8.7.0.dll
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/jni4net.n.w64.v20/0.8.7.0/ "%~dp0/lib/" jni4net.n.w64.v20-0.8.7.0.dll
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/jni4net.n.w32.v40/0.8.7.0/ "%~dp0/lib/" jni4net.n.w32.v40-0.8.7.0.dll
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/jni4net.n.w64.v40/0.8.7.0/ "%~dp0/lib/" jni4net.n.w64.v40-0.8.7.0.dll
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/jni4net.j/0.8.7.0/ "%~dp0/lib/" jni4net.j-0.8.7.0.jar
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://robocode.sourceforge.net/mvnrepo/net/sf/jni4net/proxygen/0.8.7.0/ "%~dp0/lib/" proxygen.exe
|
||||
java -cp "%~dp0/../../../tools/loader" Loader http://jni4net.googlecode.com/svn/mvnrepo/org/nunit/nunit.framework/2.4.3.0/ "%~dp0/lib/" nunit.framework-2.4.3.0.dll
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
if not exist "%~dp0\tools\lib" (
|
||||
mkdir "%~dp0\tools\lib"
|
||||
)
|
||||
|
||||
if not exist "%~dp0\..\..\tools\lib\maven-*-uber.jar" (
|
||||
call "%~dp0\..\..\tools\loadTools.cmd"
|
||||
)
|
||||
|
||||
call "%~dp0\..\..\mvn" %*
|
|
@ -1,12 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
mvn clean install ant:ant -DskipTests=false %*
|
||||
rem mvn eclipse:eclipse
|
|
@ -1,10 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
javac -cp ../libs/junit-4.5.jar;../libs/robocode.jar;../libs/robocode.testing.jar sample/TestWallBehavior.java
|
|
@ -1,10 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
java -Drobocode.home=.. -cp ../libs/junit-4.5.jar;../libs/robocode.jar;../libs/robocode.testing.jar;.; org.junit.runner.JUnitCore sample.TestWallBehavior
|
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
java -Xmx1024M -cp libs/robocode.jar;libs/roborumble.jar;libs/codesize-1.1.jar roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
|
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
java -Xmx512M -cp libs/robocode.jar robocode.Robocode %*
|
Binary file not shown.
Before Width: | Height: | Size: 361 KiB |
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
java -Xmx512M -cp libs/robocode.jar;libs/roborumble.jar;libs/codesize-1.1.jar; roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
|
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
|
@ -1,6 +0,0 @@
|
|||
# Connection timeout in milliseconds
|
||||
connection.open.timeout=10000
|
||||
# Connection read timeout in milliseconds
|
||||
connection.read.timeout=10000
|
||||
# Download session timeout
|
||||
download.session.timeout=10000
|
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
java -Xmx512M -cp libs/robocode.jar;libs/roborumble.jar;libs/codesize-1.1.jar; roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
|
|
@ -1,23 +0,0 @@
|
|||
#Robocode Editor Theme Properties
|
||||
#Sun Sep 15 22:13:41 CEST 2013
|
||||
editor.theme=Robocode Black Theme
|
||||
editor.font.name=Monospaced
|
||||
editor.font.size=14
|
||||
editor.background.color=000000
|
||||
editor.lineNumber.background.color=22222
|
||||
editor.lineNumber.text.color=00CC00
|
||||
editor.highlighted.line.color=999999
|
||||
editor.selected.text.color=993300
|
||||
editor.selected.background.color=FFFFFF
|
||||
editor.text.style.normal=Plain
|
||||
editor.text.color.normal=00FFFF
|
||||
editor.text.style.keyword=Bold
|
||||
editor.text.color.keyword=0000FF
|
||||
editor.text.style.literal=Plain
|
||||
editor.text.color.literal=FFFF00
|
||||
editor.text.style.comment=Italic
|
||||
editor.text.color.comment=00FF00
|
||||
editor.text.style.quoted=Plain
|
||||
editor.text.color.quoted=FF0000
|
||||
editor.text.style.annotation=Plain
|
||||
editor.text.color.annotation=FF00FF
|
|
@ -1,23 +0,0 @@
|
|||
#Robocode Editor Theme Properties
|
||||
#Wed Jul 31 14:51:10 CEST 2013
|
||||
editor.theme=Robocode White Theme
|
||||
editor.font.name=Monospaced
|
||||
editor.font.size=14
|
||||
editor.background.color=FFFFFF
|
||||
editor.lineNumber.background.color=EEEEEE
|
||||
editor.lineNumber.text.color=000000
|
||||
editor.highlighted.line.color=FFFFCC
|
||||
editor.selected.text.color=FFFFFF
|
||||
editor.selected.background.color=3399FF
|
||||
editor.text.style.normal=Plain
|
||||
editor.text.color.normal=000000
|
||||
editor.text.style.keyword=Bold
|
||||
editor.text.color.keyword=0000AF
|
||||
editor.text.style.literal=Bold
|
||||
editor.text.color.literal=0000AF
|
||||
editor.text.style.comment=Plain
|
||||
editor.text.color.comment=00AF00
|
||||
editor.text.style.quoted=Plain
|
||||
editor.text.color.quoted=7F0000
|
||||
editor.text.style.annotation=Plain
|
||||
editor.text.color.annotation=7F7F7F
|
|
@ -1,9 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
java -Xmx512M -cp libs/robocode.jar;libs/roborumble.jar;libs/codesize-1.1.jar; roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:14:27 EST 2006
|
||||
robot.description=\ A sample robot\n Moves to a corner, then swings the gun back and forth.\n If it dies, it tries a new corner in the next round.
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.Corners
|
||||
robot.name=Corners
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:16:04 EST 2006
|
||||
robot.description=\ A sample robot\n\n Moves around in a crazy pattern
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.Crazy
|
||||
robot.name=Crazy
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:16:33 EST 2007
|
||||
robot.description=\ A sample robot\n\n Sits still. Spins gun around. Moves when hit. Ooh\!
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.Fire
|
||||
robot.name=Fire
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Wed Jun 27 23:08:48 EST 2007
|
||||
robot.description=\ A sample robot\n\n This is a robot that is controlled using the arrow keys and mouse only
|
||||
robot.webpage=
|
||||
robocode.version=1.3.4
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Flemming N. Larsen
|
||||
robot.classname=sample.Interactive
|
||||
robot.name=Interactive
|
|
@ -1,8 +0,0 @@
|
|||
#Robot Properties
|
||||
robot.description=\ A sample robot\n\n This is a robot that is controlled using the arrow keys and mouse only
|
||||
robot.webpage=
|
||||
robocode.version=1.3.4
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Tuan Anh Nguyen and Flemming N. Larsen
|
||||
robot.classname=sample.Interactive_v2
|
||||
robot.name=Interactive_v2
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Jul 29 00:07:28 EST 2007
|
||||
robot.description=\ A sample robot\n Moves in a seesaw motion, and spins the gun around at each end\n Moves perpendicular to the direction of a bullet that hits it
|
||||
robot.webpage=
|
||||
robocode.version=1.4
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Flemming N. Larsen
|
||||
robot.classname=sample.MyFirstJuniorRobot
|
||||
robot.name=MyFirstJuniorRobot
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Fri Nov 02 17:17:44 EST 2001
|
||||
robot.description=\ A sample robot\n Moves in a seesaw motion, and spins the gun around at each end\n Turns perpendicular to the direction of a bullet that hits it
|
||||
robot.webpage=http\://robocode.sourceforge.net/myfirstrobot/MyFirstRobot.html
|
||||
robocode.version=1.0
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson
|
||||
robot.classname=sample.MyFirstRobot
|
||||
robot.name=MyFirstRobot
|
|
@ -1,10 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sat Apr 12 14:47:44 EST 2008
|
||||
robot.description=\ A sample robot\n Demonstrates how to do custom painting and debugging properties.
|
||||
robot.webpage=
|
||||
robocode.version=1.6
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Stefan Westen
|
||||
robot.classname=sample.PaintingRobot
|
||||
robot.name=PaintingRobot
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:17:21 EST 2007
|
||||
robot.description=\ A sample robot\n Drives at robots trying to ram them.\n Fires when it hits them.
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.RamFire
|
||||
robot.name=RamFire
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:18:07 EST 2007
|
||||
robot.description=\ A sample robot\nThis robot sits still, and waits to be fired upon. Exciting stuff\!\nAlso counts how many times he has been a sitting duck.
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.SittingDuck
|
||||
robot.name=SittingDuck
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:18:07 EST 2006
|
||||
robot.description=\ A sample robot\n\n Moves in a circle, firing hard when an enemy is detected
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.SpinBot
|
||||
robot.name=SpinBot
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:18:46 EST 2006
|
||||
robot.description=\ A sample robot\n Sits still. Moves every time energy drops by 20.\n This Robot demonstrates custom events.
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.Target
|
||||
robot.name=Target
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:21:08 EST 2006
|
||||
robot.description=\ A sample robot\n\n Tracks and fires at the nearest robot it sees
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.TrackFire
|
||||
robot.name=TrackFire
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:20:26 EST 2006
|
||||
robot.description=\ A sample robot\n\n Locks onto a robot, moves close, fires when close.
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.Tracker
|
||||
robot.name=Tracker
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Tue May 27 14:21:08 EST 2009
|
||||
robot.description=\ A sample robot\n\n Demonstrates the RateControlRobot
|
||||
robot.webpage=
|
||||
robocode.version=1.7.1.3
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Joshua Galecki
|
||||
robot.classname=sample.VelociRobot
|
||||
robot.name=VelociRobot
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Aug 20 21:21:53 EST 2006
|
||||
robot.description=\ A sample robot\n\n Moves around the outer edge with the gun facing in
|
||||
robot.webpage=
|
||||
robocode.version=1.1.2
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Mathew Nelson and Flemming N. Larsen
|
||||
robot.classname=sample.Walls
|
||||
robot.name=Walls
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Feb 20 21:16:33 EST 2008
|
||||
robot.description=\ A sample robot\n\n Is not inherited from classic base robots,\n uses new experimental access to RobotPeer.
|
||||
robot.webpage=zamboch.blogspot.com
|
||||
robocode.version=1.6
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Pavel Savara
|
||||
robot.classname=sampleex.Alien
|
||||
robot.name=Alien
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Feb 20 21:16:33 EST 2008
|
||||
robot.description=\ A sample robot\n\n Is not inherited from classic base robots,\n uses new experimental access to RobotPeer.
|
||||
robot.webpage=zamboch.blogspot.com
|
||||
robocode.version=1.6
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Pavel Savara
|
||||
robot.classname=sampleex.MasterAndSlave
|
||||
robot.name=MasterAndSlave
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sun Feb 20 21:16:33 EST 2008
|
||||
robot.description=\ A sample robot\n\n Is not inherited from classic base robots,\n uses new experimental access to RobotPeer.
|
||||
robot.webpage=zamboch.blogspot.com
|
||||
robocode.version=1.6
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Pavel Savara
|
||||
robot.classname=sampleex.ProxyOfGreyEminence
|
||||
robot.name=ProxyOfGreyEminence
|
|
@ -1,9 +0,0 @@
|
|||
#Robot Properties
|
||||
#Sat May 25 22:15:07 EST 2013
|
||||
robot.description=\ A sample robot\n\n This is a robot that guards the borders of the battlefield\n\nUse it against \"wall crawlers\" like e.g. sample.Walls and sample.Corners
|
||||
robot.webpage=
|
||||
robocode.version=1.9.0.0
|
||||
robot.java.source.included=true
|
||||
robot.author.name=Flemming N. Larsen
|
||||
robot.classname=samplesentry.BorderGuard
|
||||
robot.name=BorderGuard
|
|
@ -1,3 +0,0 @@
|
|||
#Robocode Properties
|
||||
#Thu Mar 12 00:15:08 CET 2009
|
||||
robocode.cpu.constant=9994115
|
|
@ -1,226 +0,0 @@
|
|||
@echo off
|
||||
|
||||
REM Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
REM contributor license agreements. See the NOTICE file distributed with
|
||||
REM this work for additional information regarding copyright ownership.
|
||||
REM The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
REM (the "License"); you may not use this file except in compliance with
|
||||
REM the License. You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
|
||||
REM This is an inordinately troublesome piece of code, particularly because it
|
||||
REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x
|
||||
REM support, things would be much easier, but sadly, it is not yet time.
|
||||
REM Be cautious about editing this, and only add WinNT specific stuff in code that
|
||||
REM only runs on WinNT.
|
||||
|
||||
if "%HOME%"=="" goto homeDrivePathPre
|
||||
if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
|
||||
|
||||
:homeDrivePathPre
|
||||
if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePre
|
||||
if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePre
|
||||
if exist "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat"
|
||||
|
||||
:userProfilePre
|
||||
if "%USERPROFILE%"=="" goto alpha
|
||||
if "%USERPROFILE%"=="%HOME%" goto alpha
|
||||
if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto alpha
|
||||
if exist "%USERPROFILE%\antrc_pre.bat" call "%USERPROFILE%\antrc_pre.bat"
|
||||
|
||||
:alpha
|
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
if "%OS%"=="WINNT" @setlocal
|
||||
|
||||
if "%ANT_HOME%"=="" goto setDefaultAntHome
|
||||
|
||||
:stripAntHome
|
||||
if not _%ANT_HOME:~-1%==_\ goto checkClasspath
|
||||
set ANT_HOME=%ANT_HOME:~0,-1%
|
||||
goto stripAntHome
|
||||
|
||||
:setDefaultAntHome
|
||||
rem %~dp0 is expanded pathname of the current script under NT
|
||||
set ANT_HOME=%~dp0..
|
||||
|
||||
:checkClasspath
|
||||
set _USE_CLASSPATH=yes
|
||||
rem CLASSPATH must not be used if it is equal to ""
|
||||
if "%CLASSPATH%"=="""" set _USE_CLASSPATH=no
|
||||
if "%CLASSPATH%"=="" set _USE_CLASSPATH=no
|
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number
|
||||
rem of arguments (up to the command line limit, anyway).
|
||||
set ANT_CMD_LINE_ARGS=%1
|
||||
if ""%1""=="""" goto doneStart
|
||||
shift
|
||||
:setupArgs
|
||||
if ""%1""=="""" goto doneStart
|
||||
if ""%1""==""-noclasspath"" goto clearclasspath
|
||||
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
rem here is there is a -noclasspath in the options
|
||||
:clearclasspath
|
||||
set _USE_CLASSPATH=no
|
||||
shift
|
||||
goto setupArgs
|
||||
|
||||
rem This label provides a place for the argument list loop to break out
|
||||
rem and for NT handling to skip to.
|
||||
|
||||
:doneStart
|
||||
|
||||
if _USE_CLASSPATH==no goto findAntHome
|
||||
|
||||
:stripClasspath
|
||||
if not _%CLASSPATH:~-1%==_\ goto findAntHome
|
||||
set CLASSPATH=%CLASSPATH:~0,-1%
|
||||
goto stripClasspath
|
||||
|
||||
:findAntHome
|
||||
rem find ANT_HOME if it does not exist due to either an invalid value passed
|
||||
rem by the user or the %0 problem on Windows 9x
|
||||
if exist "%ANT_HOME%\lib\ant.jar" goto checkJava
|
||||
|
||||
rem check for ant in Program Files
|
||||
if not exist "%ProgramFiles%\ant" goto checkSystemDrive
|
||||
set ANT_HOME=%ProgramFiles%\ant
|
||||
goto checkJava
|
||||
|
||||
:checkSystemDrive
|
||||
rem check for ant in root directory of system drive
|
||||
if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
|
||||
set ANT_HOME=%SystemDrive%\ant
|
||||
goto checkJava
|
||||
|
||||
:checkCDrive
|
||||
rem check for ant in C:\ant for Win9X users
|
||||
if not exist C:\ant\lib\ant.jar goto noAntHome
|
||||
set ANT_HOME=C:\ant
|
||||
goto checkJava
|
||||
|
||||
:noAntHome
|
||||
echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
|
||||
goto end
|
||||
|
||||
:checkJava
|
||||
set _JAVACMD=%JAVACMD%
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
||||
goto checkJikes
|
||||
|
||||
:noJavaHome
|
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
|
||||
|
||||
:checkJikes
|
||||
if not "%JIKESPATH%"=="" goto runAntWithJikes
|
||||
|
||||
:runAnt
|
||||
if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
|
||||
:runAntWithClasspath
|
||||
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
|
||||
rem Check the error code of the Ant build
|
||||
if not "%OS%"=="Windows_NT" goto onError
|
||||
set ANT_ERROR=%ERRORLEVEL%
|
||||
goto end
|
||||
|
||||
:runAntNoClasspath
|
||||
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
|
||||
rem Check the error code of the Ant build
|
||||
if not "%OS%"=="Windows_NT" goto onError
|
||||
set ANT_ERROR=%ERRORLEVEL%
|
||||
goto end
|
||||
|
||||
:runAntWithJikes
|
||||
|
||||
if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath
|
||||
set JIKESPATH=%JIKESPATH:~0,-1%
|
||||
goto runAntWithJikes
|
||||
|
||||
:checkJikesAndClasspath
|
||||
|
||||
if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath
|
||||
|
||||
:runAntWithJikesAndClasspath
|
||||
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
|
||||
rem Check the error code of the Ant build
|
||||
if not "%OS%"=="Windows_NT" goto onError
|
||||
set ANT_ERROR=%ERRORLEVEL%
|
||||
goto end
|
||||
|
||||
:runAntWithJikesNoClasspath
|
||||
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
|
||||
rem Check the error code of the Ant build
|
||||
if not "%OS%"=="Windows_NT" goto onError
|
||||
set ANT_ERROR=%ERRORLEVEL%
|
||||
goto end
|
||||
|
||||
:onError
|
||||
rem Windows 9x way of checking the error code. It matches via brute force.
|
||||
for %%i in (1 10 100) do set err%%i=
|
||||
for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i
|
||||
if %err100%==2 goto onError200
|
||||
if %err100%==0 set err100=
|
||||
for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i
|
||||
if "%err100%"=="" if %err10%==0 set err10=
|
||||
:onError1
|
||||
for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i
|
||||
goto onErrorEnd
|
||||
:onError200
|
||||
for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i
|
||||
if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i
|
||||
if not err10==5 goto onError1
|
||||
:onErrorEnd
|
||||
set ANT_ERROR=%err100%%err10%%err1%
|
||||
for %%i in (1 10 100) do set err%%i=
|
||||
|
||||
:end
|
||||
rem bug ID 32069: resetting an undefined env variable changes the errorlevel.
|
||||
if not "%_JAVACMD%"=="" set _JAVACMD=
|
||||
if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS=
|
||||
|
||||
if "%ANT_ERROR%"=="0" goto mainEnd
|
||||
|
||||
rem Set the return code if we are not in NT. We can only set
|
||||
rem a value of 1, but it's better than nothing.
|
||||
if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1
|
||||
|
||||
rem Set the ERRORLEVEL if we are running NT.
|
||||
if "%OS%"=="Windows_NT" color 00
|
||||
|
||||
goto omega
|
||||
|
||||
:mainEnd
|
||||
|
||||
rem If there were no errors, we run the post script.
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
if "%OS%"=="WINNT" @endlocal
|
||||
|
||||
if "%HOME%"=="" goto homeDrivePathPost
|
||||
if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
|
||||
|
||||
:homeDrivePathPost
|
||||
if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost
|
||||
if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost
|
||||
if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"
|
||||
|
||||
:userProfilePost
|
||||
if "%USERPROFILE%"=="" goto omega
|
||||
if "%USERPROFILE%"=="%HOME%" goto omega
|
||||
if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega
|
||||
if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat"
|
||||
|
||||
:omega
|
||||
|
|
@ -1,191 +0,0 @@
|
|||
@REM ----------------------------------------------------------------------------
|
||||
@REM Licensed to the Apache Software Foundation (ASF) under one
|
||||
@REM or more contributor license agreements. See the NOTICE file
|
||||
@REM distributed with this work for additional information
|
||||
@REM regarding copyright ownership. The ASF licenses this file
|
||||
@REM to you under the Apache License, Version 2.0 (the
|
||||
@REM "License"); you may not use this file except in compliance
|
||||
@REM with the License. You may obtain a copy of the License at
|
||||
@REM
|
||||
@REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
@REM
|
||||
@REM Unless required by applicable law or agreed to in writing,
|
||||
@REM software distributed under the License is distributed on an
|
||||
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
@REM KIND, either express or implied. See the License for the
|
||||
@REM specific language governing permissions and limitations
|
||||
@REM under the License.
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Maven2 Start Up Batch script
|
||||
@REM
|
||||
@REM Required ENV vars:
|
||||
@REM JAVA_HOME - location of a JDK home dir
|
||||
@REM
|
||||
@REM Optional ENV vars
|
||||
@REM M2_HOME - location of maven2's installed home dir
|
||||
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
|
||||
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
|
||||
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||
@REM e.g. to debug Maven itself, use
|
||||
@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
|
||||
@echo off
|
||||
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
|
||||
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
|
||||
|
||||
@REM set %HOME% to equivalent of $HOME
|
||||
if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%)
|
||||
|
||||
@REM Execute a user defined script before this one
|
||||
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
@REM set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" @setlocal
|
||||
if "%OS%"=="WINNT" @setlocal
|
||||
|
||||
@REM ==== START VALIDATION ====
|
||||
if not "%JAVA_HOME%" == "" goto OkJHome
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME not found in your environment.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation
|
||||
echo.
|
||||
goto error
|
||||
|
||||
:OkJHome
|
||||
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory.
|
||||
echo JAVA_HOME = %JAVA_HOME%
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation
|
||||
echo.
|
||||
goto error
|
||||
|
||||
:chkMHome
|
||||
if not "%M2_HOME%"=="" goto valMHome
|
||||
|
||||
if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0
|
||||
if "%OS%"=="Windows_NT" set M2_HOME=%M2_HOME:~0,-5%
|
||||
if "%OS%"=="WINNT" SET M2_HOME=%~dp0..
|
||||
if not "%M2_HOME%"=="" goto valMHome
|
||||
|
||||
echo.
|
||||
echo ERROR: M2_HOME not found in your environment.
|
||||
echo Please set the M2_HOME variable in your environment to match the
|
||||
echo location of the Maven installation
|
||||
echo.
|
||||
goto error
|
||||
|
||||
:valMHome
|
||||
|
||||
:stripMHome
|
||||
if not _%M2_HOME:~-1%==_\ goto checkMBat
|
||||
set M2_HOME=%M2_HOME:~0,-1%
|
||||
goto stripMHome
|
||||
|
||||
:checkMBat
|
||||
if exist "%M2_HOME%\bin\mvn.bat" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: M2_HOME is set to an invalid directory.
|
||||
echo M2_HOME = %M2_HOME%
|
||||
echo Please set the M2_HOME variable in your environment to match the
|
||||
echo location of the Maven installation
|
||||
echo.
|
||||
goto error
|
||||
@REM ==== END VALIDATION ====
|
||||
|
||||
:init
|
||||
@REM Decide how to startup depending on the version of windows
|
||||
|
||||
@REM -- Windows NT with Novell Login
|
||||
if "%OS%"=="WINNT" goto WinNTNovell
|
||||
|
||||
@REM -- Win98ME
|
||||
if NOT "%OS%"=="Windows_NT" goto Win9xArg
|
||||
|
||||
:WinNTNovell
|
||||
|
||||
@REM -- 4NT shell
|
||||
if "%@eval[2+2]" == "4" goto 4NTArgs
|
||||
|
||||
@REM -- Regular WinNT shell
|
||||
set MAVEN_CMD_LINE_ARGS=%*
|
||||
goto endInit
|
||||
|
||||
@REM The 4NT Shell from jp software
|
||||
:4NTArgs
|
||||
set MAVEN_CMD_LINE_ARGS=%$
|
||||
goto endInit
|
||||
|
||||
:Win9xArg
|
||||
@REM Slurp the command line arguments. This loop allows for an unlimited number
|
||||
@REM of agruments (up to the command line limit, anyway).
|
||||
set MAVEN_CMD_LINE_ARGS=
|
||||
:Win9xApp
|
||||
if %1a==a goto endInit
|
||||
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto Win9xApp
|
||||
|
||||
@REM Reaching here means variables are defined and arguments have been captured
|
||||
:endInit
|
||||
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
|
||||
|
||||
@REM -- 4NT shell
|
||||
if "%@eval[2+2]" == "4" goto 4NTCWJars
|
||||
|
||||
@REM -- Regular WinNT shell
|
||||
for %%i in ("%M2_HOME%"\lib\classworlds-*) do set CLASSWORLDS_JAR="%%~fi"
|
||||
for %%i in ("%M2_HOME%"\lib\maven-*-uber.jar) do set MAVENUBER_JAR="%%~fi"
|
||||
|
||||
goto runm2
|
||||
|
||||
@REM The 4NT Shell from jp software
|
||||
:4NTCWJars
|
||||
for %%i in ("%M2_HOME%\lib\classworlds-*") do set CLASSWORLDS_JAR="%%i"
|
||||
goto runm2
|
||||
|
||||
@REM Start MAVEN2
|
||||
:runm2
|
||||
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR%;%MAVENUBER_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
|
||||
if ERRORLEVEL 1 goto error
|
||||
goto end
|
||||
|
||||
:error
|
||||
if "%OS%"=="Windows_NT" @endlocal
|
||||
if "%OS%"=="WINNT" @endlocal
|
||||
set ERROR_CODE=1
|
||||
|
||||
:end
|
||||
@REM set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" goto endNT
|
||||
if "%OS%"=="WINNT" goto endNT
|
||||
|
||||
@REM For old DOS remove the set variables from ENV - we assume they were not set
|
||||
@REM before we started - at least we don't leave any baggage around
|
||||
set MAVEN_JAVA_EXE=
|
||||
set MAVEN_CMD_LINE_ARGS=
|
||||
goto postExec
|
||||
|
||||
:endNT
|
||||
@endlocal & set ERROR_CODE=%ERROR_CODE%
|
||||
|
||||
:postExec
|
||||
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
|
||||
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
|
||||
if "%MAVEN_BATCH_PAUSE%" == "on" pause
|
||||
|
||||
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
|
||||
|
||||
exit /B %ERROR_CODE%
|
||||
|
|
@ -1,301 +0,0 @@
|
|||
// Jacobe configuration file for the Sun code conventions for Java
|
||||
// $Id: sun.cfg,v 1.94 2006/05/31 09:29:01 stappers Exp $
|
||||
// reference: http://java.sun.com/docs/codeconv/
|
||||
// (c) 2000-2006 Tiobe Software BV -- All rights reserved
|
||||
// support@jacobe.com, www.jacobe.com, Eindhoven, The Netherlands
|
||||
|
||||
|
||||
// INDENTATION
|
||||
// -----------
|
||||
|
||||
//--indent=4
|
||||
--indenttab=1
|
||||
--tablen=4
|
||||
//--unindentjumplabel
|
||||
|
||||
|
||||
// LINE LENGTH
|
||||
// -----------
|
||||
|
||||
--wrap=120
|
||||
|
||||
|
||||
// WRAPPING LINES
|
||||
// --------------
|
||||
|
||||
//--wrapinfixoplineterm=1
|
||||
--wraplineterminfixop=1
|
||||
--indentcontinuation=2
|
||||
//--continuationindent=4
|
||||
//--wraplinetermcomma=1
|
||||
--wrapcommalineterm=1
|
||||
--wraparrayinitopenbracelineterm=1
|
||||
--wrapmethodcallopenparenlineterm=1
|
||||
//--wrapassoplineterm=1
|
||||
|
||||
|
||||
// COMMENTS
|
||||
// --------
|
||||
|
||||
--opencommentspace=1
|
||||
//--opencommentlineterm=1
|
||||
--indentcomment=1
|
||||
//--commentstarspace=1
|
||||
|
||||
// JAVADOC
|
||||
// -------
|
||||
// The rules below are only available in Jacobe Professional
|
||||
|
||||
--javadocstartlineterm=1
|
||||
--linetermendjavadoc=1
|
||||
--javadocdescr
|
||||
--javadocdescrlineterm=2
|
||||
--javadocauthor
|
||||
--javadocauthorlineterm=1
|
||||
--javadocversion
|
||||
--javadocversionlineterm=2
|
||||
--javadocparam
|
||||
--javadocparamorder
|
||||
--javadocparamlineterm=1
|
||||
--javadocreturn
|
||||
--javadocreturnlineterm=1
|
||||
--javadocthrows
|
||||
--javadocthrowsorder
|
||||
--javadocthrowslineterm=1
|
||||
--javadocorder
|
||||
--javadoctagspacearg=1
|
||||
|
||||
|
||||
// DECLARATIONS AND STATEMENTS
|
||||
// ---------------------------
|
||||
|
||||
--colonlineterm=1
|
||||
--spaceopenbrace=1
|
||||
--closebracelineterm=1
|
||||
--openbracespace=1
|
||||
--openbracespaceclosebrace=0
|
||||
--openbracelinetermclosebrace=0
|
||||
--openparenspacecloseparen=0
|
||||
--linetermopenbracket=0
|
||||
--indentbraces=0
|
||||
--indentblock=1
|
||||
//--dimopenbracketspace=0
|
||||
//--dimspaceclosebracket=0
|
||||
//--indexopenbracketspace=0
|
||||
//--indexspaceclosebracket=0
|
||||
--openbracketspaceclosebracket=0
|
||||
|
||||
|
||||
// DECLARATIONS
|
||||
// ------------
|
||||
|
||||
--decllineterm=1
|
||||
--modifierslineterm=0
|
||||
--modifiersspace=1
|
||||
//--typespace=1
|
||||
--classspace=1
|
||||
--classlineterm=0
|
||||
--classlinetermopenbrace=0
|
||||
--classopenbracelineterm=1
|
||||
--classlinetermclosebrace=1
|
||||
--spaceextends=1
|
||||
--extendsspace=1
|
||||
--linetermextends=0
|
||||
--extendslineterm=0
|
||||
//--linetermimplements=0
|
||||
//--implementslineterm=0
|
||||
//--linetermthrows=0
|
||||
--methodlinetermopenbrace=0
|
||||
--methodopenbracelineterm=1
|
||||
--methodlinetermclosebrace=1
|
||||
//--arrayinitlinetermopenbrace=0
|
||||
//--arrayinitopenbracelineterm=0
|
||||
//--arrayinitlinetermclosebrace=0
|
||||
//--arrayinitclosebracelineterm=0
|
||||
//--arrayinitopenbracespace=0
|
||||
//--arrayinitspaceclosebrace=0
|
||||
--returntypelineterm=0
|
||||
//--typelineterm=0
|
||||
//--paramtypelineterm=0
|
||||
//--fortypelineterm=0
|
||||
//--declarraytoarraytype
|
||||
//--linetermclass=1
|
||||
//--linetermconstructor=1
|
||||
--closebracelinetermopenbrace=1
|
||||
--importlineterm=0
|
||||
--modifierlineterm=0
|
||||
//--seplineterm=0
|
||||
//--paramopenparenlineterm=0
|
||||
//--paramlinetermcloseparen=0
|
||||
//--paramlinetermopenparen=0
|
||||
//--paramcloseparenlineterm=0
|
||||
//--paramspaceopenparen=0
|
||||
--enumcommalineterm=1
|
||||
|
||||
|
||||
// SIMPLE STATEMENTS
|
||||
// -----------------
|
||||
|
||||
--statlineterm=1
|
||||
--methodcallspaceopenparen=0
|
||||
--methodcalllinetermopenparen=0
|
||||
--dotlineterm=0
|
||||
--linetermdot=0
|
||||
--linetermsep=0
|
||||
--lineterminfixop=0
|
||||
--infixoplineterm=0
|
||||
--prefixoplineterm=0
|
||||
--linetermpostfixop=0
|
||||
--linetermcomma=0
|
||||
--commalineterm=0
|
||||
--openparenlineterm=0
|
||||
--linetermcloseparen=0
|
||||
--assoplineterm=0
|
||||
--linetermassop=0
|
||||
|
||||
|
||||
// COMPOUND STATEMENTS
|
||||
// -------------------
|
||||
|
||||
--blocklinetermopenbrace=0
|
||||
--blockopenbracelineterm=1
|
||||
--blocklinetermclosebrace=1
|
||||
--insertbraces
|
||||
--blockstatlinetermopenbrace=0
|
||||
|
||||
|
||||
// IF STATEMENTS
|
||||
// -------------
|
||||
|
||||
--spaceelse=1
|
||||
--closebracelinetermelse=0
|
||||
//--semicolonlinetermelse=1
|
||||
--elselinetermif=0
|
||||
|
||||
|
||||
// FOR STATEMENTS
|
||||
// --------------
|
||||
|
||||
--forstatlineterm=0
|
||||
|
||||
|
||||
// DO-WHILE STATEMENTS
|
||||
// -------------------
|
||||
|
||||
--closebracelinetermdowhile=0
|
||||
--semicolonlinetermdowhile=1
|
||||
|
||||
|
||||
// SWITCH STATEMENTS
|
||||
// -----------------
|
||||
|
||||
--blanklinescase=1
|
||||
--indentcase=0
|
||||
//--insertbracescasestats
|
||||
|
||||
|
||||
// TRY-CATCH STATEMENTS
|
||||
// --------------------
|
||||
|
||||
--spacecatch=1
|
||||
--linetermcatch=0
|
||||
--spacefinally=1
|
||||
--linetermfinally=0
|
||||
|
||||
|
||||
// WHITE SPACE
|
||||
// -----------
|
||||
|
||||
//--lineterm
|
||||
|
||||
|
||||
// BLANK LINES
|
||||
// -----------
|
||||
|
||||
//--blanklinescompilationunit=0
|
||||
--methodblanklines=1
|
||||
--declblanklinesstat=0
|
||||
--statblanklinesdecl=0
|
||||
--blanklinescomment=1
|
||||
--sectionblanklines=2
|
||||
--classblanklines=2
|
||||
//--enumconstantblanklinesdecl=1
|
||||
|
||||
|
||||
// SPACES
|
||||
// ------
|
||||
|
||||
//--keywordspace=1
|
||||
--keywordspaceopenparen=1
|
||||
--keywordlinetermopenparen=0
|
||||
--methodnamespace=0
|
||||
--spacecomma=0
|
||||
--commaspace=1
|
||||
--spacesemicolon=0
|
||||
--semicolonspace=1
|
||||
--spacecolon=0
|
||||
--colonspace=1
|
||||
--assignspace=1
|
||||
--spaceassign=1
|
||||
--dotspace=0
|
||||
--spacedot=0
|
||||
--prefixopspace=0
|
||||
--infixopspace=1
|
||||
--spaceinfixop=1
|
||||
--spacepostfixop=0
|
||||
--spaceopenbracket=0
|
||||
--castspace=1
|
||||
--castopenparenspace=0
|
||||
--castspacecloseparen=0
|
||||
//--castopenparenlineterm=0
|
||||
//--castlinetermcloseparen=0
|
||||
//--castlinetermopenparen=0
|
||||
//--castcloseparenlineterm=0
|
||||
//--castspaceopenparen=0
|
||||
//--castcloseparenspace=0
|
||||
//--statopenparenlineterm=0
|
||||
//--statlinetermcloseparen=0
|
||||
//--statcloseparenspace=0
|
||||
//--statcloseparenlineterm=0
|
||||
//--castcloseparenspacegroupopenparen=1
|
||||
--statopenparenspace=0
|
||||
--statspacecloseparen=0
|
||||
--groupopenparenspace=0
|
||||
--groupspacecloseparen=0
|
||||
//--groupspaceopenparen=0
|
||||
//--groupcloseparenspace=0
|
||||
//--groupopenparenlineterm=0
|
||||
//--grouplinetermcloseparen=0
|
||||
//--grouplinetermopenparen=0
|
||||
//--groupcloseparenlineterm=0
|
||||
--methodopenparenspace=0
|
||||
--methodspacecloseparen=0
|
||||
//--methodopenparenlineterm=0
|
||||
//--methodlinetermcloseparen=0
|
||||
//--methodcloseparenspace=0
|
||||
//--methodcloseparenlineterm=0
|
||||
//--horspaceslineterm
|
||||
|
||||
// ANNOTATIONS
|
||||
// -----------
|
||||
|
||||
//--annotationatspace=0
|
||||
//--annotationatlineterm=0
|
||||
//--annotationspaceopenparen=0
|
||||
//--annotationlinetermopenparen=0
|
||||
//--annotationopenparenspace=0
|
||||
//--annotationopenparenlineterm=0
|
||||
//--annotationspacecloseparen=0
|
||||
//--annotationlinetermcloseparen=0
|
||||
//--annotationcloseparenspace=0
|
||||
//--annotationcloseparenlineterm=0
|
||||
//--annotationspaceopenbrace=0
|
||||
//--annotationlinetermopenbrace=0
|
||||
//--annotationopenbracespace=0
|
||||
//--annotationopenbracelineterm=0
|
||||
//--annotationspaceclosebrace=0
|
||||
//--annotationlinetermclosebrace=0
|
||||
//--annotationclosebracespace=0
|
||||
//--annotationclosebracelineterm=0
|
||||
//--annotationspace=1
|
||||
//--annotationlineterm=1
|
|
@ -1,19 +0,0 @@
|
|||
@REM
|
||||
@REM Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
|
||||
@REM All rights reserved. This program and the accompanying materials
|
||||
@REM are made available under the terms of the Eclipse Public License v1.0
|
||||
@REM which accompanies this distribution, and is available at
|
||||
@REM http://robocode.sourceforge.net/license/epl-v10.html
|
||||
@REM
|
||||
|
||||
@echo off
|
||||
|
||||
if not exist "%~dp0\lib" (
|
||||
mkdir "%~dp0\lib"
|
||||
)
|
||||
|
||||
if not exist "%~dp0\loader\Loader.class" (
|
||||
javac "%~dp0\loader\Loader.java"
|
||||
)
|
||||
|
||||
java -cp "%~dp0/loader" Loader http://robocode.sourceforge.net/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
|
Loading…
Reference in New Issue