Fix all jar build systems to incorporate external jars

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 3 years ago
parent e896e1289b
commit 96304c507e
  1. 5
      Java/scripts/build.sh
  2. 4
      Java/scripts/clean.sh
  3. 7
      Java/scripts/jar.sh
  4. BIN
      bin/RabiClone.jar
  5. 0
      jinput-2.0.9-natives-all.jar
  6. BIN
      jinput-2.0.9.jar
  7. BIN
      lib/bin/net/java/games/input/AbstractComponent.class
  8. BIN
      lib/bin/net/java/games/input/AbstractController.class
  9. BIN
      lib/bin/net/java/games/input/ButtonUsage.class
  10. BIN
      lib/bin/net/java/games/input/Component$Identifier$Axis.class
  11. BIN
      lib/bin/net/java/games/input/Component$Identifier$Button.class
  12. BIN
      lib/bin/net/java/games/input/Component$Identifier$Key.class
  13. BIN
      lib/bin/net/java/games/input/Component$Identifier.class
  14. BIN
      lib/bin/net/java/games/input/Component$POV.class
  15. BIN
      lib/bin/net/java/games/input/Component.class
  16. BIN
      lib/bin/net/java/games/input/Controller$PortType.class
  17. BIN
      lib/bin/net/java/games/input/Controller$Type.class
  18. BIN
      lib/bin/net/java/games/input/Controller.class
  19. BIN
      lib/bin/net/java/games/input/ControllerEnvironment.class
  20. BIN
      lib/bin/net/java/games/input/ControllerEvent.class
  21. BIN
      lib/bin/net/java/games/input/ControllerListener.class
  22. BIN
      lib/bin/net/java/games/input/DIAbstractController.class
  23. BIN
      lib/bin/net/java/games/input/DIComponent.class
  24. BIN
      lib/bin/net/java/games/input/DIControllers.class
  25. BIN
      lib/bin/net/java/games/input/DIDeviceObject.class
  26. BIN
      lib/bin/net/java/games/input/DIDeviceObjectData.class
  27. BIN
      lib/bin/net/java/games/input/DIEffectInfo.class
  28. BIN
      lib/bin/net/java/games/input/DIIdentifierMap.class
  29. BIN
      lib/bin/net/java/games/input/DIKeyboard.class
  30. BIN
      lib/bin/net/java/games/input/DIMouse.class
  31. BIN
      lib/bin/net/java/games/input/DataQueue.class
  32. BIN
      lib/bin/net/java/games/input/DefaultControllerEnvironment.class
  33. BIN
      lib/bin/net/java/games/input/DirectAndRawInputEnvironmentPlugin.class
  34. BIN
      lib/bin/net/java/games/input/DirectInputEnvironmentPlugin$1.class
  35. BIN
      lib/bin/net/java/games/input/DirectInputEnvironmentPlugin$ShutdownHook.class
  36. BIN
      lib/bin/net/java/games/input/DirectInputEnvironmentPlugin.class
  37. BIN
      lib/bin/net/java/games/input/DummyWindow.class
  38. BIN
      lib/bin/net/java/games/input/ElementType.class
  39. BIN
      lib/bin/net/java/games/input/Event.class
  40. BIN
      lib/bin/net/java/games/input/EventQueue.class
  41. BIN
      lib/bin/net/java/games/input/GenericDesktopUsage.class
  42. BIN
      lib/bin/net/java/games/input/IDirectInput.class
  43. BIN
      lib/bin/net/java/games/input/IDirectInputDevice.class
  44. BIN
      lib/bin/net/java/games/input/IDirectInputEffect.class
  45. BIN
      lib/bin/net/java/games/input/Keyboard.class
  46. BIN
      lib/bin/net/java/games/input/KeyboardUsage.class
  47. BIN
      lib/bin/net/java/games/input/LinuxAbsInfo.class
  48. BIN
      lib/bin/net/java/games/input/LinuxAbstractController.class
  49. BIN
      lib/bin/net/java/games/input/LinuxAxisDescriptor.class
  50. BIN
      lib/bin/net/java/games/input/LinuxCombinedController.class
  51. BIN
      lib/bin/net/java/games/input/LinuxComponent.class
  52. BIN
      lib/bin/net/java/games/input/LinuxConstantFF.class
  53. BIN
      lib/bin/net/java/games/input/LinuxControllers.class
  54. BIN
      lib/bin/net/java/games/input/LinuxDevice.class
  55. BIN
      lib/bin/net/java/games/input/LinuxDeviceTask.class
  56. BIN
      lib/bin/net/java/games/input/LinuxDeviceThread.class
  57. BIN
      lib/bin/net/java/games/input/LinuxEnvironmentPlugin$1.class
  58. BIN
      lib/bin/net/java/games/input/LinuxEnvironmentPlugin$ShutdownHook.class
  59. BIN
      lib/bin/net/java/games/input/LinuxEnvironmentPlugin.class
  60. BIN
      lib/bin/net/java/games/input/LinuxEvent.class
  61. BIN
      lib/bin/net/java/games/input/LinuxEventComponent.class
  62. BIN
      lib/bin/net/java/games/input/LinuxEventDevice$1.class
  63. BIN
      lib/bin/net/java/games/input/LinuxEventDevice.class
  64. BIN
      lib/bin/net/java/games/input/LinuxForceFeedbackEffect$1.class
  65. BIN
      lib/bin/net/java/games/input/LinuxForceFeedbackEffect$UploadTask.class
  66. BIN
      lib/bin/net/java/games/input/LinuxForceFeedbackEffect$WriteTask.class
  67. BIN
      lib/bin/net/java/games/input/LinuxForceFeedbackEffect.class
  68. BIN
      lib/bin/net/java/games/input/LinuxInputID.class
  69. BIN
      lib/bin/net/java/games/input/LinuxJoystickAbstractController.class
  70. BIN
      lib/bin/net/java/games/input/LinuxJoystickAxis.class
  71. BIN
      lib/bin/net/java/games/input/LinuxJoystickButton.class
  72. BIN
      lib/bin/net/java/games/input/LinuxJoystickDevice.class
  73. BIN
      lib/bin/net/java/games/input/LinuxJoystickEvent.class
  74. BIN
      lib/bin/net/java/games/input/LinuxJoystickPOV.class
  75. BIN
      lib/bin/net/java/games/input/LinuxKeyboard.class
  76. BIN
      lib/bin/net/java/games/input/LinuxMouse.class
  77. BIN
      lib/bin/net/java/games/input/LinuxNativeTypesMap.class
  78. BIN
      lib/bin/net/java/games/input/LinuxPOV.class
  79. BIN
      lib/bin/net/java/games/input/LinuxRumbleFF.class
  80. BIN
      lib/bin/net/java/games/input/Mouse.class
  81. BIN
      lib/bin/net/java/games/input/NativeDefinitions.class
  82. BIN
      lib/bin/net/java/games/input/OSXAbstractController.class
  83. BIN
      lib/bin/net/java/games/input/OSXComponent.class
  84. BIN
      lib/bin/net/java/games/input/OSXControllers.class
  85. BIN
      lib/bin/net/java/games/input/OSXEnvironmentPlugin.class
  86. BIN
      lib/bin/net/java/games/input/OSXEvent.class
  87. BIN
      lib/bin/net/java/games/input/OSXHIDDevice.class
  88. BIN
      lib/bin/net/java/games/input/OSXHIDDeviceIterator.class
  89. BIN
      lib/bin/net/java/games/input/OSXHIDElement.class
  90. BIN
      lib/bin/net/java/games/input/OSXHIDQueue.class
  91. BIN
      lib/bin/net/java/games/input/OSXKeyboard.class
  92. BIN
      lib/bin/net/java/games/input/OSXMouse.class
  93. BIN
      lib/bin/net/java/games/input/PluginClassLoader$1.class
  94. BIN
      lib/bin/net/java/games/input/PluginClassLoader$JarFileFilter.class
  95. BIN
      lib/bin/net/java/games/input/PluginClassLoader.class
  96. BIN
      lib/bin/net/java/games/input/RawDevice.class
  97. BIN
      lib/bin/net/java/games/input/RawDeviceInfo.class
  98. BIN
      lib/bin/net/java/games/input/RawHIDInfo.class
  99. BIN
      lib/bin/net/java/games/input/RawIdentifierMap.class
  100. BIN
      lib/bin/net/java/games/input/RawInputEnvironmentPlugin.class
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,10 +1,9 @@
#Builds and runs the project.
#Java
source ${LANGUAGE}/scripts/version_info
rm -Rf out/*
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${PROJECT_DIR}/.. -d ${OUT_DIR} ${PROJECT_DIR}/*.java
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp "${CLASS_PATH}" -d ${OUT_DIR} ${PROJECT_DIR}/*.java
printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd)
cd $OUT_DIR
java -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
java -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh

@ -1,4 +1,4 @@
#Cleans up and removes unused files.
#Java
find . -type f -name *.class -delete
find . -type f -name manifest -delete
find -type f -name *.class -delete
find -type f -name manifest -delete

@ -2,7 +2,7 @@
#Java
source ${LANGUAGE}/scripts/version_info
rm -Rf bin/*
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp src -d bin ${PROJECT_DIR}/${PROJECT_NAME}.java
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${CLASS_PATH} -d ${OUT_DIR} ${PROJECT_DIR}/${PROJECT_NAME}.java
printf "\n\n\nGenerating Manifest...\n\n"
touch manifest
echo "Main-Class: ${MAIN_CLASS}" >> manifest
@ -10,7 +10,8 @@ printf "\n\n\nCreating Jar...\n\n"
ORIGINAL_LOC=$(pwd)
cd ${OUT_DIR}
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ .
printf "\n\n\nRunning Program...\n\n"
java -jar ${PROJECT_NAME}.jar "$@"
cd ..
java -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@"
./${LANGUAGE}/scripts/clean.sh
cd ..

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save