xowa_maven_readme.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. == Reading this file ==
  2. To view this file with formatting, do the following:
  3. * Go to https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit
  4. * Paste this entire file into the box
  5. * Press "Show Preview"
  6. == Purpose ==
  7. The xowa_maven.sh script will do the following:
  8. * Download the latest source code of XOWA
  9. * Compile the code
  10. * Run the unit tests
  11. * Build a runnable jar
  12. == Requirements ==
  13. The shell script requires 4 applications:
  14. * Git 2.21+
  15. * Java 1.7+ JDK
  16. * Maven 3.6+
  17. * Apache Ant 1.9+
  18. The shell script also requires an internet connection for the following:
  19. * Download necessary binaries
  20. * Download XOWA git repository
  21. * Download Maven repositories
  22. == Setup ==
  23. Windows instructions are listed below.
  24. * Java will come installed on most Linux / Mac OS X system
  25. * Git / Maven / Ant can downloaded / set-up
  26. In addition, file paths in this README follow the Windows convention (C:\xowa\ instead of C:/xowa/)
  27. However, the shell script uses the Unix convention (C:/xowa/)
  28. Finally, note that directories are given for example purposes only. Feel free to change C:\xowa_dev to D:\whatever_you_want
  29. === Binaries ===
  30. ==== Git ====
  31. ===== Windows =====
  32. * Download "Git for Windows Portable" from https://git-scm.com/download/win
  33. * Unzip it to C:\xowa_dev\bin\git
  34. ==== Java 1.8 JDK ====
  35. * Download "Java SE Development Kit 8u###" from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  36. * Install it
  37. * Confirm the JAVA_HOME variable exists
  38. * echo %JAVA_HOME%
  39. * EX: C:\xowa_dev\bin\java_jdk_1_8
  40. ==== Maven ====
  41. * Download "apache-maven-#.#.#-bin.zip" https://maven.apache.org/download.cgi
  42. * Unzip it to C:\xowa_dev\bin\maven
  43. ==== Apache Ant ====
  44. * Download "#.#.##.zip" https://ant.apache.org/bindownload.cgi
  45. * Unzip it to C:\xowa_dev\bin\ant
  46. ==== Minttyrc (Optional: for Ctrl+V) ====
  47. * Open $HOME/.minttyrc
  48. * Add $CtrlExchangeShift=yes
  49. https://github.com/mintty/mintty/issues/602
  50. === Boot ===
  51. * Copy xowa_maven_boot.txt to C:\xowa_dev\xowa_maven_boot.txt
  52. * Rename it to xowa_maven_boot.sh
  53. * Review all the exports and make sure they match
  54. ** The platform type (windows vs linux vs macosx)
  55. ** The directories on your machine
  56. == Launch Git ==
  57. * Run C:\xowa_dev\bin\git\git-bash.exe
  58. * Run git config --global core.autocrlf false
  59. * autocrlf needs to be disabled on Windows boxes, or else, Git will change all .txt to \r\n . This will break xowa.gfs
  60. * Run xowa_maven_boot.sh