build_platform.adoc 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. = build_platform
  2. :author:
  3. :revnumber:
  4. :revdate: 2016/03/17 20:48
  5. :keywords: documentation, sdk, builds, project
  6. :relfileprefix: ../
  7. :imagesdir: ..
  8. ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  9. == Building jMonkeyEngine SDK Yourself
  10. === In the jMonkeyEngine SDK or NetBeans
  11. ==== Plugins
  12. Make sure all necessary plugins are installed and active:
  13. * From the menu bar, select `Tools` → `Plugins` to open a `Plugins` dialog.
  14. * Select the `Available Plugins` tab.
  15. * Sort the plugin list by category.
  16. * Check the `Install` checkbox for any plugins in the `Developing NetBeans` category.
  17. * Click on the `Install` button and complete the wizard.
  18. * Select the `Installed` tab.
  19. * Activate any inactive plugins in the `Developing NetBeans` category.
  20. * Close the `Plugins` dialog.
  21. ==== Checkout
  22. * From the menu bar, select `Team` → `Git` → `Clone` to open a `Clone Repository` dialog.
  23. * In the `Repository +++<abbr title="Uniform Resource Locator">URL</abbr>+++:` textbox, type `link:https://github.com/jMonkeyEngine/jmonkeyengine[https://github.com/jMonkeyEngine/jmonkeyengine]`.
  24. * Clear the `User:` and `Password:` textboxes.
  25. * Click on the `Next` button.
  26. * Choose the remote branch, typically “master, and click the Next button.
  27. * Click on the `Browse…` button to the right of the `Parent directory:` textbox to open a `Browse Local Folder` dialog.
  28. * Select an empty or non-existent directory (folder) where you want to save the jMonkeyEngine sources on your hard drive.
  29. * Click the `Finish` button.
  30. Project checkout may take awhile. Do not proceed before the task is complete.
  31. ==== Build
  32. On the commandline:
  33. . `cd jmonkeyengine`
  34. . `./gradlew build`
  35. From the SDK:
  36. * From the menu bar, select `File` → `Open project…` to open an `Open Project` dialog.
  37. * Highlight the free-form project folder you used for checkout and click on the `Open Project` button.
  38. ** A new free-form project named `jME3-SDK` should appear in the SDK's `Projects` window.
  39. * Build the free-form project by right-clicking on it and selecting `Build`.
  40. * Wait until the `jME3-SDK (build)` task is complete. At one point, a web browser window may open.
  41. * From the menu bar, select `File` → `Open project…` to open an `Open Project` dialog.
  42. * Browse into the free-form project folder, highlight the `sdk` node, and click on the `Open Project` button.
  43. ** A number of new projects should appear in the SDK's `Projects` window.
  44. Building the main freeform project copies the jME3 libraries to the sdk, so you should run its build script each time jME3 changes.
  45. ==== Run
  46. * In the SDK's `Projects` window, right-click on the `jMonkeyEngine SDK` project and select `Run`.
  47. ** The SDK you just built will start executing in a new window.