Note: I do not know if the linux version works but you can try it if you like if you happen to make a better one send it to me.
Note: The program will not work if gradlew and forge is not installed since the program communicates with gradlew.bat and gradlew.bat needs forge to work properly.
Gradlew is basically the forge installer for MCP when trying to make a mine craft mod.
When trying to develop mine craft mods you need to input commands into gradlew, but either not everybody knows you need to input commands for gradlew and screw up there development environment or they enter the wrong command. With this you don't need to. Either it requires commands to run the Install Gradlew.bat but there is help to help you.
Commands:
/help - Opens the command section of the help section of the batch file and lists all possible commands.
/install-default - Sets up the workspace and eclipse.
/install-workspace - Sets up just the workspace.
/install-eclipse - Sets up the /eclipse folder for your workspaces.
/changeDir - If you moved gradlew after opening the program you can redirect the batch window to the new location.
/runGradlewCommands - Want to do it manually all you have to do is type the command then yes and enter a gradlew command without having to do gradlew in every gradlew command.
I know this is probably useless but I was bored and wanted to code in batch so don't judge me.
Batch Code:
@echo off
cls
Echo This program was made by WinMister332, but I do not own gradlew, forge, or MCP.
Echo this was just designed to make gradlew installation easyer.
Echo.
Echo GradlewInstaller v.1.4(Official)
if exist gradlew.bat goto InstallGradlew
if not exist gradlew.bat goto RECommand
:InstallGradlew
color 1f
echo.
set input=
set /p input= Enter Command [/help,*help for Help.]
if %input% == /help goto help
if %input% == *help goto help
if %input% == /install-default goto FULLINSTALL
if %input% == *install-default goto FULLINSTALL
if %input% == /install-workspace goto InstallWorkspace
if %input% == *install-workspace goto InstallWorkspace
if %input% == /install-eclipse goto InstallEclipse
if %input% == *install-eclipse goto InstallEclipse
if %input% == /changeDir goto cdcommand
if %input% == *changeDir goto cdcommand
if %input% == /runGradlewCommands goto rgcommands
if %input% == *runGradlewCommands goto rgcommands
if %input% == /clearWindow goto clrwin
if %input% == *clearWindow goto clrwin
if not %input% == /help goto ErrComm
if not %input% == *help goto ErrComm
if not %input% == /install-default goto ErrComm
if not %input% == *install-default goto ErrComm
if not %input% == /install-workspace goto ErrComm
if not %input% == *install-workspace goto ErrComm
if not %input% == /install-eclipse goto ErrComm
if not %input% == *install-eclipse goto ErrComm
if not %input% == /changeDir goto ErrComm
if not %input% == *changeDir goto ErrComm
if not %input% == /runGradlewCommands goto ErrComm
if not %input% == *runGradlewCommands goto ErrComm
if not %input% == /clearWindow goto ErrComm
if not %input% == *clearWindow goto ErrComm
:help
Echo -----{ HELP }-----
Echo A Simple list of supported commands.
Echo NOTE: You can use either / or * when inputting commands.
echo.
Echo help: Displays the help section of the workspace installer.
echo.
Echo install-default: Installs both the workspace and configures the workspace to be used in eclipse.
echo.
Echo install-workspace: Installs ONLY the gradlew workspace into the current directory where gradlew is found.
echo.
Echo install-eclipse: ONLY Configures the workspace to be used in eclipse without installing the workspace.
echo.
Echo changeDir: Change the directory of where gradlew is installed.
Echo (Installer will switch to another folder with gradlew installed.)
echo.
Echo runGradlewCommands: Allows you to run gradlew commands without the help
echo of this program. (This Program Cannot Be Used In The Current Proccess
echo Unless A New Window Is Opened Again.)
echo.
echo clearWindow: will clear the entire batch window of all text
echo.
Echo -----{ END OF HELP }-----
goto InstallGradlew
:InstallWorkspace
gradlew.bat setupDevWorkspace --refresh-dependencies
print("Gadlew has finished installing to the current directory!")
goto InstallGradlew
:InstallEclipse
gradlew.bat eclipse
print("Eclipse has finished installing to the /eclipse directory!")
goto InstallGradlew
:cdcommand
set directory=
set /p directory= Enter Directory:
cd %directory%
goto InstallGradlew
:rgcommands
Echo Are you sure you want to switch to gradlew command processor, you might not be able to use this program while Echo gradlew command proccessor is open?
set finalanswer=
set /p finalanswer= [Yes,YES,yes,No,NO,no,y,Y,n,Y]:
if %finalanswer% == Yes goto gradlew
if %finalanswer% == YES goto gradlew
if %finalanswer% == yes goto gradlew
if %finalanswer% == y goto gradlew
if %finalanswer% == Y goto gradlew
if %finalanswer% == No goto InstallGradlew
if %finalanswer% == NO goto InstallGradlew
if %finalanswer% == no goto InstallGradlew
if %finalanswer% == n goto InstallGradlew
if %finalanswer% == N goto InstallGradlew
if not %finalanswer% == Yes goto nooption
if not %finalanswer% == YES goto nooption
if not %finalanswer% == yes goto nooption
if not %finalanswer% == y goto nooption
if not %finalanswer% == Y goto nooption
if not %finalanswer% == No goto nooption
if not %finalanswer% == NO goto nooption
if not %finalanswer% == no goto nooption
if not %finalanswer% == n goto nooption
if not %finalanswer% == N goto nooption
:nooption
Echo [ERROR:] There is no such option, please enter a valid option!
goto rgcommands
:gradlew
echo.
Echo [GRADLEW]
set gradlecommand=
set /p gradlecommand= command:
call gradlew.bat %gradlecommand%
goto gradlew
:clrwin
cls
goto InstallGradlew
:RECommand
Echo [ERROR:] Gadlew.bat was not found please install gradlew!
pause
Exit
:ErrComm
Echo [ERROR:] %input% is not a valid command in 'Gradlew Installer'. Please enter a valid command!
goto InstallGradlew
If you do not know how to save as a .bat follow directions below.
1. Open Notepad or Any Text Editor.
2. Copy All Above Code To The Open Text File.
3. Then Goto FILE > Save As... (A Save Dialog Should Pop Up.)
4. In The File Name Textbox Name The File Whatever You Want As Long As There Is a .bat Extension At The End. (i.e.: GradlewInstaller.bat)
5. Below FileName Save File Type As All Files.
Quit and run if that does not create a batch file you probably did something wrong.
Warning: This download is outdated!
Alternatively you can download the batch file instead:
if exist gradlew.bat == true goto InstallGradlew
if not exist gradlew.bat goto RECommand
@echo off
cls
Echo This program was made by WinMister332, but I do not own gradlew, forge, or MCP.
Echo this was just designed to make gradlew installation easyer.
:InstallGradlew
color 1f
echo.
set input=
set /p input= Enter Command [/help,*help for Help.]
if %input% == /help goto help
if %input% == *help goto help
if %input% == /install-default goto FULLINSTALL
if %input% == *install-default goto FULLINSTALL
if %input% == /install-workspace goto InstallWorkspace
if %input% == *install-workspace goto InstallWorkspace
if %input% == /install-eclipse goto InstallEclipse
if %input% == *install-eclipse goto InstallEclipse
if %input% == /changeDir goto cdcommand
if %input% == *changeDir goto cdcommand
if %input% == /runGradlewCommands goto rgcommands
if %input% == *runGradlewCommands goto rgcommands
if not %input% == /help goto ErrComm
if not %input% == *help goto ErrComm
if not %input% == /install-default goto ErrComm
if not %input% == *install-default goto ErrComm
if not %input% == /install-workspace goto ErrComm
if not %input% == *install-workspace goto ErrComm
if not %input% == /install-eclipse goto ErrComm
if not %input% == *install-eclipse goto ErrComm
if not %input% == /changeDir goto ErrComm
if not %input% == *changeDir goto ErrComm
if not %input% == /runGradlewCommands goto ErrComm
if not %input% == *runGradlewCommands goto ErrComm
:help
Echo -----{ HELP }-----
Echo A Simple list of supported commands.
Echo NOTE: You can use either / or * when inputting commands.
echo.
Echo help: Displays the help section of the workspace installer.
echo.
Echo install-default: Installs both the workspace and configures the workspace to be used in eclipse.
echo.
Echo install-workspace: Installs ONLY the gradlew workspace into the current directory where gradlew is found.
echo.
Echo install-eclipse: ONLY Configures the workspace to be used in eclipse without installing the workspace.
echo.
Echo changeDir: Change the directory of where gradlew is installed. (Installer will swich to another folder with gradlew installed.)
echo.
Echo runGradlewCommands: Allows you to run gradlew commands without the help of this program. (This Program Cannot Be Used In The Current Proccess Unless A New Window Is Opened Again.)
echo.
Echo Possible Future Commands:
Echo download-forge: Downloads forge from the direct-download site. (This may use adfly, i'm not sure.)
echo.
Echo download-eclipse: Downloads eclipse IDE from the developers website. (Will give the option for 32 and 64 bit.)
echo.
Echo download-jdk: Downloads the most current update of java JDK. (i.e: java 7, java 8)
echo.
Echo NOTE: These are possible commands that will be in the next update I will not promice anything, but the most possible commands I may add is: download-eclipse!
Echo -----{ END OF HELP }-----
goto InstallGradlew
:FULLINSTALL
call gradlew.bat setupDevWorkspace --refresh-dependencies
print("DONE - Installing workspace. Installing workspace to /eclipse...")
call gradlew.bat eclipse
print("DONE - Gadlew and Eclipse has finished installing to the current directory!")
goto InstallGradlew
:InstallWorkspace
gradlew.bat setupDevWorkspace --refresh-dependencies
print("Gadlew has finished installing to the current directory!")
goto InstallGradlew
:InstallEclipse
gradlew.bat eclipse
print("Eclipse has finished installing to the /eclipse directory!")
goto InstallGradlew
:cdcommand
set directory=
set /p directory= Enter Directory:
cd %directory%
goto InstallGradlew
:rgcommands
Echo Are you sure you want to switch to gradlew command processor, you will not be able to use this unless gradlew or you open a new window?
set finalanswer=
set /p finalanswer= [Yes,YES,yes,No,NO,no,y,Y,n,Y]:
if %finalanswer% == Yes goto gradlew
if %finalanswer% == YES goto gradlew
if %finalanswer% == yes goto gradlew
if %finalanswer% == y goto gradlew
if %finalanswer% == Y goto gradlew
if %finalanswer% == No goto InstallGradlew
if %finalanswer% == NO goto InstallGradlew
if %finalanswer% == no goto InstallGradlew
if %finalanswer% == n goto InstallGradlew
if %finalanswer% == N goto InstallGradlew
if not %finalanswer% == Yes goto nooption
if not %finalanswer% == YES goto nooption
if not %finalanswer% == yes goto nooption
if not %finalanswer% == y goto nooption
if not %finalanswer% == Y goto nooption
if not %finalanswer% == No goto nooption
if not %finalanswer% == NO goto nooption
if not %finalanswer% == no goto nooption
if not %finalanswer% == n goto nooption
if not %finalanswer% == N goto nooption
:nooption
Echo [ERROR:] There is no such option, please enter a valid option!
goto rgcommands
:gradlew
echo.
Echo [GRADLEW]
set gradlecommand=
set /p gradlecommand= command:
call gradlew.bat %gradlecommand%
goto gradlew
:RECommand
Echo [ERROR:] Gadlew.bat was not found please install gradlew!
pause
:ErrComm
Echo [ERROR:] %input% is not a valid command in 'Gradlew Installer'. Please enter a valid command!
goto InstallGradlew
Note: Made in windows batch.
Note: I do not know if the linux version works but you can try it if you like if you happen to make a better one send it to me.
Note: The program will not work if gradlew and forge is not installed since the program communicates with gradlew.bat and gradlew.bat needs forge to work properly.
Gradlew is basically the forge installer for MCP when trying to make a mine craft mod.
When trying to develop mine craft mods you need to input commands into gradlew, but either not everybody knows you need to input commands for gradlew and screw up there development environment or they enter the wrong command. With this you don't need to. Either it requires commands to run the Install Gradlew.bat but there is help to help you.
Commands:
/help - Opens the command section of the help section of the batch file and lists all possible commands.
/install-default - Sets up the workspace and eclipse.
/install-workspace - Sets up just the workspace.
/install-eclipse - Sets up the /eclipse folder for your workspaces.
/changeDir - If you moved gradlew after opening the program you can redirect the batch window to the new location.
/runGradlewCommands - Want to do it manually all you have to do is type the command then yes and enter a gradlew command without having to do gradlew in every gradlew command.
I know this is probably useless but I was bored and wanted to code in batch so don't judge me.
Batch Code:
@echo off
cls
Echo This program was made by WinMister332, but I do not own gradlew, forge, or MCP.
Echo this was just designed to make gradlew installation easyer.
Echo.
Echo GradlewInstaller v.1.4(Official)
if exist gradlew.bat goto InstallGradlew
if not exist gradlew.bat goto RECommand
:InstallGradlew
color 1f
echo.
set input=
set /p input= Enter Command [/help,*help for Help.]
if %input% == /help goto help
if %input% == *help goto help
if %input% == /install-default goto FULLINSTALL
if %input% == *install-default goto FULLINSTALL
if %input% == /install-workspace goto InstallWorkspace
if %input% == *install-workspace goto InstallWorkspace
if %input% == /install-eclipse goto InstallEclipse
if %input% == *install-eclipse goto InstallEclipse
if %input% == /changeDir goto cdcommand
if %input% == *changeDir goto cdcommand
if %input% == /runGradlewCommands goto rgcommands
if %input% == *runGradlewCommands goto rgcommands
if %input% == /clearWindow goto clrwin
if %input% == *clearWindow goto clrwin
if not %input% == /help goto ErrComm
if not %input% == *help goto ErrComm
if not %input% == /install-default goto ErrComm
if not %input% == *install-default goto ErrComm
if not %input% == /install-workspace goto ErrComm
if not %input% == *install-workspace goto ErrComm
if not %input% == /install-eclipse goto ErrComm
if not %input% == *install-eclipse goto ErrComm
if not %input% == /changeDir goto ErrComm
if not %input% == *changeDir goto ErrComm
if not %input% == /runGradlewCommands goto ErrComm
if not %input% == *runGradlewCommands goto ErrComm
if not %input% == /clearWindow goto ErrComm
if not %input% == *clearWindow goto ErrComm
:help
Echo -----{ HELP }-----
Echo A Simple list of supported commands.
Echo NOTE: You can use either / or * when inputting commands.
echo.
Echo help: Displays the help section of the workspace installer.
echo.
Echo install-default: Installs both the workspace and configures the workspace to be used in eclipse.
echo.
Echo install-workspace: Installs ONLY the gradlew workspace into the current directory where gradlew is found.
echo.
Echo install-eclipse: ONLY Configures the workspace to be used in eclipse without installing the workspace.
echo.
Echo changeDir: Change the directory of where gradlew is installed.
Echo (Installer will switch to another folder with gradlew installed.)
echo.
Echo runGradlewCommands: Allows you to run gradlew commands without the help
echo of this program. (This Program Cannot Be Used In The Current Proccess
echo Unless A New Window Is Opened Again.)
echo.
echo clearWindow: will clear the entire batch window of all text
echo.
Echo -----{ END OF HELP }-----
goto InstallGradlew
:FULLINSTALL
call gradlew.bat setupDevWorkspace --refresh-dependencies
call gradlew.bat eclipse
goto InstallGradlew
:InstallWorkspace
gradlew.bat setupDevWorkspace --refresh-dependencies
print("Gadlew has finished installing to the current directory!")
goto InstallGradlew
:InstallEclipse
gradlew.bat eclipse
print("Eclipse has finished installing to the /eclipse directory!")
goto InstallGradlew
:cdcommand
set directory=
set /p directory= Enter Directory:
cd %directory%
goto InstallGradlew
:rgcommands
Echo Are you sure you want to switch to gradlew command processor, you might not be able to use this program while Echo gradlew command proccessor is open?
set finalanswer=
set /p finalanswer= [Yes,YES,yes,No,NO,no,y,Y,n,Y]:
if %finalanswer% == Yes goto gradlew
if %finalanswer% == YES goto gradlew
if %finalanswer% == yes goto gradlew
if %finalanswer% == y goto gradlew
if %finalanswer% == Y goto gradlew
if %finalanswer% == No goto InstallGradlew
if %finalanswer% == NO goto InstallGradlew
if %finalanswer% == no goto InstallGradlew
if %finalanswer% == n goto InstallGradlew
if %finalanswer% == N goto InstallGradlew
if not %finalanswer% == Yes goto nooption
if not %finalanswer% == YES goto nooption
if not %finalanswer% == yes goto nooption
if not %finalanswer% == y goto nooption
if not %finalanswer% == Y goto nooption
if not %finalanswer% == No goto nooption
if not %finalanswer% == NO goto nooption
if not %finalanswer% == no goto nooption
if not %finalanswer% == n goto nooption
if not %finalanswer% == N goto nooption
:nooption
Echo [ERROR:] There is no such option, please enter a valid option!
goto rgcommands
:gradlew
echo.
Echo [GRADLEW]
set gradlecommand=
set /p gradlecommand= command:
call gradlew.bat %gradlecommand%
goto gradlew
:clrwin
cls
goto InstallGradlew
:RECommand
Echo [ERROR:] Gadlew.bat was not found please install gradlew!
pause
Exit
:ErrComm
Echo [ERROR:] %input% is not a valid command in 'Gradlew Installer'. Please enter a valid command!
goto InstallGradlew
If you do not know how to save as a .bat follow directions below.
1. Open Notepad or Any Text Editor.
2. Copy All Above Code To The Open Text File.
3. Then Goto FILE > Save As... (A Save Dialog Should Pop Up.)
4. In The File Name Textbox Name The File Whatever You Want As Long As There Is a .bat Extension At The End. (i.e.: GradlewInstaller.bat)
5. Below FileName Save File Type As All Files.
Quit and run if that does not create a batch file you probably did something wrong.
Warning: This download is outdated!
Alternatively you can download the batch file instead:
Download From Dropbox
If you have questions or problems with the code please leave comments and I will try to help.
Im not sure but I think I may have found a way for linux users to run .bat files on there system.
I have not been able to test it since my computer won't let me run XUbuntu on virtualbox so let me know if it work/does not work.
Linux Shell File:
sudo apt-get install dosbox > /dev/null
sudo apt-get install dosemu > /dev/null
#!/bin/bash
ECHO if everything went according to plan Linux should now be able to run MS-DOS .bat files.
for i in **/GradlewInstaller.bat; do
process "$i"
done
exit
if anybody knows how to fix anything if there are errors please fix the code and comment the new code because i don't know squat about linux!
DISCLAIMER: I am not associated with the MCP, Forge, Or Gradlew Teams.
Why you didn't just put in here I'll never know..
I dunno I guess I did not think of that that would have probably would have made more sense wouldn't it?