diff --git a/.gradle/8.10.2/checksums/checksums.lock b/.gradle/8.10.2/checksums/checksums.lock deleted file mode 100644 index 4eca5d3a794812e1e6f8dc6e90a74f63fa79c003..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/checksums/checksums.lock and /dev/null differ diff --git a/.gradle/8.10.2/dependencies-accessors/gc.properties b/.gradle/8.10.2/dependencies-accessors/gc.properties deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.gradle/8.10.2/executionHistory/executionHistory.bin b/.gradle/8.10.2/executionHistory/executionHistory.bin deleted file mode 100644 index 66c7f3dbe0aeed1886606120b93c210e3ea120d9..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/executionHistory/executionHistory.bin and /dev/null differ diff --git a/.gradle/8.10.2/executionHistory/executionHistory.lock b/.gradle/8.10.2/executionHistory/executionHistory.lock deleted file mode 100644 index 901dd60a9b3d4f43abbff83af30e800dd7262a6f..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/executionHistory/executionHistory.lock and /dev/null differ diff --git a/.gradle/8.10.2/fileChanges/last-build.bin b/.gradle/8.10.2/fileChanges/last-build.bin deleted file mode 100644 index f76dd238ade08917e6712764a16a22005a50573d..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/fileChanges/last-build.bin and /dev/null differ diff --git a/.gradle/8.10.2/fileHashes/fileHashes.bin b/.gradle/8.10.2/fileHashes/fileHashes.bin deleted file mode 100644 index 40eee9987f5a02f318657dc65e442c69ddbdeb42..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/fileHashes/fileHashes.bin and /dev/null differ diff --git a/.gradle/8.10.2/fileHashes/fileHashes.lock b/.gradle/8.10.2/fileHashes/fileHashes.lock deleted file mode 100644 index f13a75e9f49b55b8a8455d107bb534fe571002d5..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/fileHashes/fileHashes.lock and /dev/null differ diff --git a/.gradle/8.10.2/fileHashes/resourceHashesCache.bin b/.gradle/8.10.2/fileHashes/resourceHashesCache.bin deleted file mode 100644 index 5933575ecc04c94d36961834acf26380ecdfc4eb..0000000000000000000000000000000000000000 Binary files a/.gradle/8.10.2/fileHashes/resourceHashesCache.bin and /dev/null differ diff --git a/.gradle/8.10.2/gc.properties b/.gradle/8.10.2/gc.properties deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock deleted file mode 100644 index 38e3f11a01e8cc5b5bf1649bbbc61a7aa6ea64c6..0000000000000000000000000000000000000000 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and /dev/null differ diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties deleted file mode 100644 index c8e282aa554d3f82ff014fca9daeb0c4ac35395b..0000000000000000000000000000000000000000 --- a/.gradle/buildOutputCleanup/cache.properties +++ /dev/null @@ -1,2 +0,0 @@ -#Fri Nov 08 11:23:58 CET 2024 -gradle.version=8.10.2 diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin deleted file mode 100644 index eaaf55d5ad043e458f9151cb29981ded4824f417..0000000000000000000000000000000000000000 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and /dev/null differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe deleted file mode 100644 index aca1bf4b830b10fdbda3234bb5b5de1cc9566c5e..0000000000000000000000000000000000000000 Binary files a/.gradle/file-system.probe and /dev/null differ diff --git a/.gradle/nb-cache/firefighterstarter-1737481236/project-info.ser b/.gradle/nb-cache/firefighterstarter-1737481236/project-info.ser deleted file mode 100644 index 3e09d10ab03818c26529eafc3a68afdbee1e2dda..0000000000000000000000000000000000000000 Binary files a/.gradle/nb-cache/firefighterstarter-1737481236/project-info.ser and /dev/null differ diff --git a/.gradle/nb-cache/main-113540449/project-info.ser b/.gradle/nb-cache/main-113540449/project-info.ser deleted file mode 100644 index cde86a42afb74795080fef6980656571c02f5eb0..0000000000000000000000000000000000000000 Binary files a/.gradle/nb-cache/main-113540449/project-info.ser and /dev/null differ diff --git a/.gradle/nb-cache/src-628280681/project-info.ser b/.gradle/nb-cache/src-628280681/project-info.ser deleted file mode 100644 index 4151354e9cb82e7d2d940abdd414a58a382856ce..0000000000000000000000000000000000000000 Binary files a/.gradle/nb-cache/src-628280681/project-info.ser and /dev/null differ diff --git a/.gradle/nb-cache/subprojects.ser b/.gradle/nb-cache/subprojects.ser deleted file mode 100644 index deb16918888c39cfa616d28fc855bbe9a48ff614..0000000000000000000000000000000000000000 Binary files a/.gradle/nb-cache/subprojects.ser and /dev/null differ diff --git a/.gradle/nb-cache/trust/55EC5D421CEE7839DCB0E9FA014E87B71C41FC8CC837B5CC246B46DB35B3513C b/.gradle/nb-cache/trust/55EC5D421CEE7839DCB0E9FA014E87B71C41FC8CC837B5CC246B46DB35B3513C deleted file mode 100644 index e09a295c896954f0271c79ef1cba31c132737bbe..0000000000000000000000000000000000000000 --- a/.gradle/nb-cache/trust/55EC5D421CEE7839DCB0E9FA014E87B71C41FC8CC837B5CC246B46DB35B3513C +++ /dev/null @@ -1 +0,0 @@ -4DA328593E5BDDDAA6137DC4EF0655466C2BF6C4E3BDEB38F43EC8456582AB0A diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/bin/main/app/SimulatorApplication.class b/bin/main/app/SimulatorApplication.class deleted file mode 100644 index b5c06d6cf38a0153979e6d21aee4ce41c695ec2d..0000000000000000000000000000000000000000 Binary files a/bin/main/app/SimulatorApplication.class and /dev/null differ diff --git a/bin/main/app/SimulatorMain.class b/bin/main/app/SimulatorMain.class deleted file mode 100644 index ae671ad4b9a1df94e3338699e91b872eac401245..0000000000000000000000000000000000000000 Binary files a/bin/main/app/SimulatorMain.class and /dev/null differ diff --git a/bin/main/controller/Controller.class b/bin/main/controller/Controller.class deleted file mode 100644 index 49a278aca3fbb68283d499e5b0f5a16db398749c..0000000000000000000000000000000000000000 Binary files a/bin/main/controller/Controller.class and /dev/null differ diff --git a/bin/main/controller/PersistentToggleGroup.class b/bin/main/controller/PersistentToggleGroup.class deleted file mode 100644 index 0e28aac24b30dc02cb66318037c96aa97e349f30..0000000000000000000000000000000000000000 Binary files a/bin/main/controller/PersistentToggleGroup.class and /dev/null differ diff --git a/bin/main/model/Board.class b/bin/main/model/Board.class deleted file mode 100644 index 8f4eb9562b62eeeed512cdb0c264a47a2d79815f..0000000000000000000000000000000000000000 Binary files a/bin/main/model/Board.class and /dev/null differ diff --git a/bin/main/model/Entity.class b/bin/main/model/Entity.class deleted file mode 100644 index 6372b0280b4c7957541ae3ff332d94cc1b324b80..0000000000000000000000000000000000000000 Binary files a/bin/main/model/Entity.class and /dev/null differ diff --git a/bin/main/model/Fire.class b/bin/main/model/Fire.class deleted file mode 100644 index c2ee41cf242a60ffc96ae714ce19fe7bc4f9b6d1..0000000000000000000000000000000000000000 Binary files a/bin/main/model/Fire.class and /dev/null differ diff --git a/bin/main/model/FireFighter.class b/bin/main/model/FireFighter.class deleted file mode 100644 index f84bca8485e0acd0f50bab08d8fc12da9567b31a..0000000000000000000000000000000000000000 Binary files a/bin/main/model/FireFighter.class and /dev/null differ diff --git a/bin/main/model/FireFighterScenario.class b/bin/main/model/FireFighterScenario.class deleted file mode 100644 index 07e44f4cca0fd9d2967b7a9c0764a97eaeefde20..0000000000000000000000000000000000000000 Binary files a/bin/main/model/FireFighterScenario.class and /dev/null differ diff --git a/bin/main/model/FirefighterBoard.class b/bin/main/model/FirefighterBoard.class deleted file mode 100644 index e6cc1c9aa30420361fc4aa1416f9e383e9776f54..0000000000000000000000000000000000000000 Binary files a/bin/main/model/FirefighterBoard.class and /dev/null differ diff --git a/bin/main/model/ModelElement.class b/bin/main/model/ModelElement.class deleted file mode 100644 index 956d9342ee11a8e866e264d80341f785b4837d2b..0000000000000000000000000000000000000000 Binary files a/bin/main/model/ModelElement.class and /dev/null differ diff --git a/bin/main/module-info.class b/bin/main/module-info.class deleted file mode 100644 index a551e6ad18902326cbe3f7d34443dfc2abd24ad0..0000000000000000000000000000000000000000 Binary files a/bin/main/module-info.class and /dev/null differ diff --git a/bin/main/util/Position.class b/bin/main/util/Position.class deleted file mode 100644 index 6187f883f552f78deb543bfbc7cb94bda71d45fb..0000000000000000000000000000000000000000 Binary files a/bin/main/util/Position.class and /dev/null differ diff --git a/bin/main/util/TargetStrategy.class b/bin/main/util/TargetStrategy.class deleted file mode 100644 index 84b1afe7abbff4a24c2bab56f1cc3d2e1b2e7022..0000000000000000000000000000000000000000 Binary files a/bin/main/util/TargetStrategy.class and /dev/null differ diff --git a/bin/main/view/DarkTheme.css b/bin/main/view/DarkTheme.css deleted file mode 100644 index 46b78aaf90972dd435399466c9fd861ca73fc59f..0000000000000000000000000000000000000000 --- a/bin/main/view/DarkTheme.css +++ /dev/null @@ -1,142 +0,0 @@ -.background { - -fx-background-color: #1d1d1d; -} - -.label { - -fx-font-size: 11pt; - -fx-font-family: "Segoe UI Semibold"; - -fx-text-fill: white; - -fx-opacity: 0.6; -} - -.label-bright { - -fx-font-size: 11pt; - -fx-font-family: "Segoe UI Semibold"; - -fx-text-fill: white; - -fx-opacity: 1; -} - -.label-header { - -fx-font-size: 32pt; - -fx-font-family: "Segoe UI Light"; - -fx-text-fill: white; - -fx-opacity: 1; -} - -.table-view { - -fx-base: #1d1d1d; - -fx-control-inner-background: #1d1d1d; - -fx-background-color: #1d1d1d; - -fx-table-cell-border-color: transparent; - -fx-table-header-border-color: transparent; - -fx-padding: 5; -} - -.table-view .column-header-background { - -fx-background-color: transparent; -} - -.table-view .column-header, .table-view .filler { - -fx-border-width: 0 0 1 0; - -fx-background-color: transparent; - -fx-border-color: - transparent - transparent - derive(-fx-base, 80%) - transparent; - -fx-border-insets: 0 10 1 0; -} - -.table-view .column-header .label { - -fx-font-size: 20pt; - -fx-font-family: "Segoe UI Light"; - -fx-text-fill: white; - -fx-alignment: center-left; - -fx-opacity: 1; -} - -.table-view:focused .table-row-cell:filled:focused:selected { - -fx-background-color: -fx-focus-color; -} - -.split-pane:horizontal > .split-pane-divider { - -fx-border-color: transparent #1d1d1d transparent #1d1d1d; - -fx-background-color: transparent, derive(#1d1d1d,20%); -} - -.split-pane { - -fx-padding: 1 0 0 0; -} - -.menu-bar { - -fx-background-color: derive(#1d1d1d,20%); -} - -.context-menu { - -fx-background-color: derive(#1d1d1d,50%); -} - -.menu-bar .label { - -fx-font-size: 14pt; - -fx-font-family: "Segoe UI Light"; - -fx-text-fill: white; - -fx-opacity: 0.9; -} - -.menu .left-container { - -fx-background-color: black; -} - -.text-field { - -fx-font-size: 12pt; - -fx-font-family: "Segoe UI Semibold"; -} - -/* - * Metro style Push Button - * Author: Pedro Duque Vieira - * http://pixelduke.wordpress.com/2012/10/23/jmetro-windows-8-controls-on-java/ - */ -.button { - -fx-padding: 5 22 5 22; - -fx-border-color: #e2e2e2; - -fx-border-width: 2; - -fx-background-radius: 0; - -fx-background-color: #1d1d1d; - -fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif; - -fx-font-size: 11pt; - -fx-text-fill: #d8d8d8; - -fx-background-insets: 0 0 0 0, 0, 1, 2; -} - -.button:hover { - -fx-background-color: #3a3a3a; -} - -.button:pressed, .button:default:hover:pressed { - -fx-background-color: white; - -fx-text-fill: #1d1d1d; -} - -.button:focused { - -fx-border-color: white, white; - -fx-border-width: 1, 1; - -fx-border-style: solid; - -fx-border-radius: 0, 0; - -fx-border-insets: 1 1 1 1, 0; -} - -.button:disabled, .button:default:disabled { - -fx-opacity: 0.4; - -fx-background-color: #1d1d1d; - -fx-text-fill: white; -} - -.button:default { - -fx-background-color: -fx-focus-color; - -fx-text-fill: #ffffff; -} - -.button:default:hover { - -fx-background-color: derive(-fx-focus-color,30%); -} \ No newline at end of file diff --git a/bin/main/view/FirefighterGrid.class b/bin/main/view/FirefighterGrid.class deleted file mode 100644 index 1b18c41f41e823f72bbb897c572be71425a09605..0000000000000000000000000000000000000000 Binary files a/bin/main/view/FirefighterGrid.class and /dev/null differ diff --git a/bin/main/view/Grid.class b/bin/main/view/Grid.class deleted file mode 100644 index 623811278ed81f830e3e8ec96a4e0c1ac9917abe..0000000000000000000000000000000000000000 Binary files a/bin/main/view/Grid.class and /dev/null differ diff --git a/bin/main/view/ViewElement.class b/bin/main/view/ViewElement.class deleted file mode 100644 index 3a079d01f711de5686d2ece5bd4964edf0daf134..0000000000000000000000000000000000000000 Binary files a/bin/main/view/ViewElement.class and /dev/null differ diff --git a/bin/main/view/view.fxml b/bin/main/view/view.fxml deleted file mode 100644 index 336ffa315645baacbe25bf59171d2ff6d867b9c5..0000000000000000000000000000000000000000 --- a/bin/main/view/view.fxml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<?import javafx.scene.control.Button?> -<?import javafx.scene.layout.HBox?> -<?import javafx.scene.layout.VBox?> -<?import view.FirefighterGrid?> - -<?import javafx.scene.control.ToggleButton?> -<?import javafx.scene.control.Separator?> -<?import javafx.scene.control.Label?> -<HBox styleClass="background" stylesheets="@DarkTheme.css" - xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" - fx:controller="controller.Controller"> - <VBox> - <Separator maxHeight="-Infinity" maxWidth="-Infinity" - prefHeight="24.0" prefWidth="200.0"/> - <Label maxHeight="-Infinity" maxWidth="-Infinity" alignment="CENTER" prefHeight="24.0" prefWidth="200.0" - text="Generation number"/> - <Label fx:id="generationNumberLabel" alignment="CENTER" contentDisplay="TEXT_ONLY" - maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="24.0" prefWidth="200.0"/> - <Separator maxHeight="-Infinity" maxWidth="-Infinity" - prefHeight="24.0" prefWidth="200.0"/> - <Button fx:id="restartButton" maxHeight="-Infinity" maxWidth="-Infinity" - mnemonicParsing="false" onAction="#restartButtonAction" prefHeight="24.0" prefWidth="200.0" - text="Restart"/> - <Button fx:id="oneStepButton" maxHeight="-Infinity" maxWidth="-Infinity" - mnemonicParsing="false" onAction="#oneStepButtonAction" prefHeight="24.0" prefWidth="200.0" - text="One step"/> - <ToggleButton fx:id="playToggleButton" maxHeight="-Infinity" maxWidth="-Infinity" - mnemonicParsing="false" onAction="#playToggleButtonAction" prefHeight="24.0" - prefWidth="200.0" styleClass="button" text="Play"/> - <ToggleButton fx:id="pauseToggleButton" maxHeight="-Infinity" maxWidth="-Infinity" - mnemonicParsing="false" onAction="#pauseToggleButtonAction" prefHeight="24.0" - prefWidth="200.0" styleClass="button" text="Pause"/> - </VBox> - <FirefighterGrid fx:id="grid" - xmlns="http://javafx.com/javafx" - xmlns:fx="http://javafx.com/fxml"> - </FirefighterGrid> -</HBox> diff --git a/bin/test/model/FirefighterBoardTest.class b/bin/test/model/FirefighterBoardTest.class deleted file mode 100644 index 63fbd4504471b67d978a4218d89b345a1d8d4e7e..0000000000000000000000000000000000000000 Binary files a/bin/test/model/FirefighterBoardTest.class and /dev/null differ diff --git a/bin/test/view/FirefighterGridTest.class b/bin/test/view/FirefighterGridTest.class deleted file mode 100644 index 6c61ffc5c463dbc1b1460c4e5867d1d9cc32ad18..0000000000000000000000000000000000000000 Binary files a/bin/test/view/FirefighterGridTest.class and /dev/null differ diff --git a/build/classes/java/main/app/SimulatorApplication.class b/build/classes/java/main/app/SimulatorApplication.class deleted file mode 100644 index 84e1d4245c484614d07ac25f06a3e2afe7c1b263..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/app/SimulatorApplication.class and /dev/null differ diff --git a/build/classes/java/main/app/SimulatorMain.class b/build/classes/java/main/app/SimulatorMain.class deleted file mode 100644 index 1314135817cf7f41f01f0fac00bb895810cda7b6..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/app/SimulatorMain.class and /dev/null differ diff --git a/build/classes/java/main/controller/Controller.class b/build/classes/java/main/controller/Controller.class deleted file mode 100644 index f0321060210ccee8855ece62099fe1c43685e8ba..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/controller/Controller.class and /dev/null differ diff --git a/build/classes/java/main/model/Board.class b/build/classes/java/main/model/Board.class deleted file mode 100644 index b9661d7e30f33d70489037b8b8a977ce0d664e20..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/model/Board.class and /dev/null differ diff --git a/build/classes/java/main/model/ModelElement.class b/build/classes/java/main/model/ModelElement.class deleted file mode 100644 index 97af27064cecd95a37b9f6c7633d16810d0517a6..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/model/ModelElement.class and /dev/null differ diff --git a/build/classes/java/main/module-info.class b/build/classes/java/main/module-info.class deleted file mode 100644 index 58fa63c99e895224049385a78552fe8d87f3d615..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/module-info.class and /dev/null differ diff --git a/build/classes/java/main/view/Grid.class b/build/classes/java/main/view/Grid.class deleted file mode 100644 index b0148f831a19ab0bf46bfcb627f8a2be7b5470d8..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/view/Grid.class and /dev/null differ diff --git a/build/classes/java/main/view/ViewElement.class b/build/classes/java/main/view/ViewElement.class deleted file mode 100644 index 861245452faa5d1ac642c7bddbefef8fe5b26b46..0000000000000000000000000000000000000000 Binary files a/build/classes/java/main/view/ViewElement.class and /dev/null differ diff --git a/gradlew b/gradlew old mode 100755 new mode 100644 diff --git a/gradlew.bat b/gradlew.bat index ac1b06f93825db68fb0c0b5150917f340eaa5d02..107acd32c4e687021ef32db511e8a206129b88ec 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,89 +1,89 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://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 - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://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 + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega