-
Notifications
You must be signed in to change notification settings - Fork 155
Set up the project with your favorite IDE (Eclipse, Netbeans, etc.)
OpenRTS uses Gradle to be IDE independant. You can run, commit and update the project from any Java IDE supporting Gradle, or even no IDE att all, since Gradle can build the code on it's own.
First, install gradle plugin :
Help / Eclipse marketplace / search "gradle" and install Gradle integration for Eclipse
Or https://marketplace.eclipse.org/content/gradle-integration-eclipse-44
Then :
- clone https://github.com/methusalah/OpenRTS as usual (see below if you're not accustomed),
- import a Gradle project File / Import... / Gradle / Gradle Project /,
- browse to the cloned repository root directory,
- clic Build Model,
- select 'core' project and you're done.
You can open the example game the same way, by selecting 'example' project as well. The main classes to run are in /src.app/ package
Note : Sometime after major pulls, you may need to refresh the gradle dependencies manually : right clic on the project then Gradle / Refresh All
You have two ways to clone a repository :
File / Import... / Git / Projects from git / then select clone URI
Or you may prefer to open the dedicated view once and for all, which will help you for committing and fetching : Window / Show View / Others... / Git / Git Repositories, now you have all needed option, including the clone button.
First, install gradle plugin :
Tools / Plugins / Available plugins / search "gradle"
Or http://plugins.netbeans.org/plugin/44510/gradle-support
Then,
- clone https://github.com/methusalah/OpenRTS with Team / Git / Clone /,
- ask to open existing project after cloning,
- it should ask you which project to open. Expand OpenRTS and select "core",
- wait for cloning and you're done.
First, install gradle plugin :
Tools / Plugins / Available plugins / search "gradle"
Then,
- clone https://github.com/methusalah/OpenRTS with Team / Git / Clone /,
- press "Next" and make sure the remote branch "Master*" is selected
- press "Next" and select a destination directory.
- press "Finish" and wait for the cloning.
- ask to open existing project after cloning,
- it should ask you which project to open. Expand OpenRTS and select "core",
- wait for cloning and you're done.
Note to jMonkey SDK users on Linux : On a fresh install, you may have to set all the bins in /home/myName/jmonkeyplatform/jdk/jre/bin to executable.
To run OpenRTS without installing a Java IDE, you have to :
- clone https://github.com/methusalah/OpenRTS on your hard drive using GitHub for Windows
- linux users : at commandline, from the cloned directory, run "gradlew run"
- windows users : launch cmd.exe, then from the cloned directory, run "gradlew.bat run"
The first time (or after an update) Gradle must build the project before launching it. It may take a while.