propane 3.3.1-java → 3.6.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/extensions.xml +1 -2
  3. data/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
  4. data/.mvn/wrapper/maven-wrapper.properties +2 -3
  5. data/.travis.yml +9 -0
  6. data/CHANGELOG.md +17 -5
  7. data/Gemfile +2 -0
  8. data/README.md +17 -8
  9. data/Rakefile +16 -30
  10. data/bin/propane +3 -1
  11. data/lib/propane.rb +6 -4
  12. data/lib/propane/app.rb +20 -10
  13. data/lib/propane/creators/sketch_class.rb +7 -1
  14. data/lib/propane/creators/sketch_factory.rb +4 -2
  15. data/lib/propane/creators/sketch_writer.rb +1 -0
  16. data/lib/propane/helper_methods.rb +23 -24
  17. data/lib/propane/helpers/numeric.rb +2 -0
  18. data/lib/propane/helpers/version_error.rb +1 -0
  19. data/lib/propane/library.rb +5 -1
  20. data/lib/propane/library_loader.rb +2 -0
  21. data/lib/propane/native_folder.rb +21 -15
  22. data/lib/propane/native_loader.rb +3 -0
  23. data/lib/propane/runner.rb +14 -6
  24. data/lib/propane/version.rb +2 -1
  25. data/library/boids/boids.rb +21 -11
  26. data/library/color_group/color_group.rb +28 -0
  27. data/library/control_panel/control_panel.rb +8 -5
  28. data/library/dxf/dxf.rb +6 -0
  29. data/library/file_chooser/chooser.rb +10 -9
  30. data/library/file_chooser/file_chooser.rb +10 -9
  31. data/library/library_proxy/library_proxy.rb +2 -0
  32. data/library/net/net.rb +7 -0
  33. data/library/simplex_noise/simplex_noise.rb +2 -0
  34. data/library/slider/slider.rb +23 -22
  35. data/library/vector_utils/vector_utils.rb +4 -0
  36. data/library/video_event/video_event.rb +4 -1
  37. data/mvnw +127 -51
  38. data/mvnw.cmd +182 -145
  39. data/pom.rb +53 -50
  40. data/pom.xml +17 -8
  41. data/propane.gemspec +13 -11
  42. data/src/main/java/monkstone/ColorUtil.java +13 -1
  43. data/src/main/java/monkstone/MathToolModule.java +253 -203
  44. data/src/main/java/monkstone/PropaneLibrary.java +2 -2
  45. data/src/main/java/monkstone/fastmath/Deglut.java +1 -1
  46. data/src/main/java/monkstone/filechooser/Chooser.java +2 -1
  47. data/src/main/java/monkstone/noise/SimplexNoise.java +2 -2
  48. data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +1 -1
  49. data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
  50. data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +1 -1
  51. data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +1 -1
  52. data/src/main/java/monkstone/slider/SliderBar.java +1 -1
  53. data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
  54. data/src/main/java/monkstone/slider/WheelHandler.java +7 -6
  55. data/src/main/java/monkstone/vecmath/package-info.java +1 -1
  56. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +2 -2
  57. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -1
  58. data/src/main/java/monkstone/videoevent/CaptureEvent.java +27 -0
  59. data/src/main/java/monkstone/videoevent/{VideoInterface.java → MovieEvent.java} +11 -27
  60. data/src/main/java/monkstone/videoevent/package-info.java +1 -1
  61. data/src/main/java/processing/awt/PGraphicsJava2D.java +2164 -1661
  62. data/src/main/java/processing/awt/PImageAWT.java +377 -0
  63. data/src/main/java/processing/awt/PShapeJava2D.java +280 -268
  64. data/src/main/java/processing/awt/PSurfaceAWT.java +942 -829
  65. data/src/main/java/processing/awt/ShimAWT.java +581 -0
  66. data/src/main/java/processing/core/PApplet.java +831 -824
  67. data/src/main/java/processing/core/PConstants.java +477 -447
  68. data/src/main/java/processing/core/PFont.java +914 -880
  69. data/src/main/java/processing/core/PGraphics.java +229 -213
  70. data/src/main/java/processing/core/PImage.java +620 -318
  71. data/src/main/java/processing/core/PMatrix.java +172 -159
  72. data/src/main/java/processing/core/PMatrix2D.java +478 -409
  73. data/src/main/java/processing/core/PMatrix3D.java +762 -735
  74. data/src/main/java/processing/core/PShape.java +2888 -2652
  75. data/src/main/java/processing/core/PShapeOBJ.java +436 -415
  76. data/src/main/java/processing/core/PShapeSVG.java +1702 -1479
  77. data/src/main/java/processing/core/PStyle.java +40 -37
  78. data/src/main/java/processing/core/PSurface.java +139 -97
  79. data/src/main/java/processing/core/PSurfaceNone.java +296 -208
  80. data/src/main/java/processing/core/PVector.java +997 -965
  81. data/src/main/java/processing/core/ThinkDifferent.java +12 -17
  82. data/src/main/java/processing/data/DoubleDict.java +756 -710
  83. data/src/main/java/processing/data/DoubleList.java +749 -696
  84. data/src/main/java/processing/data/FloatDict.java +748 -702
  85. data/src/main/java/processing/data/FloatList.java +751 -697
  86. data/src/main/java/processing/data/IntDict.java +720 -673
  87. data/src/main/java/processing/data/IntList.java +699 -633
  88. data/src/main/java/processing/data/JSONArray.java +931 -873
  89. data/src/main/java/processing/data/JSONObject.java +1262 -1165
  90. data/src/main/java/processing/data/JSONTokener.java +351 -341
  91. data/src/main/java/processing/data/LongDict.java +710 -663
  92. data/src/main/java/processing/data/LongList.java +701 -635
  93. data/src/main/java/processing/data/Sort.java +37 -41
  94. data/src/main/java/processing/data/StringDict.java +525 -486
  95. data/src/main/java/processing/data/StringList.java +626 -580
  96. data/src/main/java/processing/data/Table.java +3690 -3510
  97. data/src/main/java/processing/data/TableRow.java +182 -183
  98. data/src/main/java/processing/data/XML.java +957 -883
  99. data/src/main/java/processing/dxf/RawDXF.java +404 -0
  100. data/src/main/java/processing/event/Event.java +87 -66
  101. data/src/main/java/processing/event/KeyEvent.java +48 -41
  102. data/src/main/java/processing/event/MouseEvent.java +88 -113
  103. data/src/main/java/processing/event/TouchEvent.java +10 -6
  104. data/src/main/java/processing/javafx/PGraphicsFX2D.java +20 -345
  105. data/src/main/java/processing/javafx/PSurfaceFX.java +149 -121
  106. data/src/main/java/processing/net/Client.java +744 -0
  107. data/src/main/java/processing/net/Server.java +388 -0
  108. data/src/main/java/processing/opengl/FontTexture.java +289 -270
  109. data/src/main/java/processing/opengl/FrameBuffer.java +386 -364
  110. data/src/main/java/processing/opengl/LinePath.java +547 -500
  111. data/src/main/java/processing/opengl/LineStroker.java +588 -581
  112. data/src/main/java/processing/opengl/PGL.java +3047 -2914
  113. data/src/main/java/processing/opengl/PGraphics2D.java +408 -315
  114. data/src/main/java/processing/opengl/PGraphics3D.java +107 -72
  115. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +12378 -12075
  116. data/src/main/java/processing/opengl/PJOGL.java +1753 -1670
  117. data/src/main/java/processing/opengl/PShader.java +1266 -1257
  118. data/src/main/java/processing/opengl/PShapeOpenGL.java +4678 -4580
  119. data/src/main/java/processing/opengl/PSurfaceJOGL.java +1114 -1027
  120. data/src/main/java/processing/opengl/Texture.java +1492 -1401
  121. data/src/main/java/processing/opengl/VertexBuffer.java +57 -55
  122. data/test/create_test.rb +21 -20
  123. data/test/deglut_spec_test.rb +4 -2
  124. data/test/helper_methods_test.rb +49 -20
  125. data/test/math_tool_test.rb +39 -32
  126. data/test/native_folder.rb +47 -0
  127. data/test/respond_to_test.rb +3 -2
  128. data/test/sketches/key_event.rb +2 -2
  129. data/test/sketches/library/my_library/my_library.rb +3 -0
  130. data/test/test_helper.rb +2 -0
  131. data/test/vecmath_spec_test.rb +35 -22
  132. data/vendors/Rakefile +33 -62
  133. metadata +54 -45
  134. data/src/main/java/processing/core/util/image/ImageLoadFacade.java +0 -161
  135. data/src/main/java/processing/core/util/image/ImageSaveFacade.java +0 -169
  136. data/src/main/java/processing/core/util/image/constants/TifConstants.java +0 -45
  137. data/src/main/java/processing/core/util/image/load/AwtImageLoadStrategy.java +0 -80
  138. data/src/main/java/processing/core/util/image/load/Base64StringImageLoadStrategy.java +0 -73
  139. data/src/main/java/processing/core/util/image/load/FallbackImageLoadStrategy.java +0 -70
  140. data/src/main/java/processing/core/util/image/load/ImageIoImageLoadStrategy.java +0 -132
  141. data/src/main/java/processing/core/util/image/load/ImageLoadStrategy.java +0 -48
  142. data/src/main/java/processing/core/util/image/load/ImageLoadUtil.java +0 -45
  143. data/src/main/java/processing/core/util/image/load/TgaImageLoadStrategy.java +0 -255
  144. data/src/main/java/processing/core/util/image/load/TiffImageLoadStrategy.java +0 -98
  145. data/src/main/java/processing/core/util/image/save/ImageSaveStrategy.java +0 -49
  146. data/src/main/java/processing/core/util/image/save/ImageSaveUtil.java +0 -48
  147. data/src/main/java/processing/core/util/image/save/ImageWriterImageSaveStrategy.java +0 -179
  148. data/src/main/java/processing/core/util/image/save/SaveImageException.java +0 -41
  149. data/src/main/java/processing/core/util/image/save/TgaImageSaveStrategy.java +0 -198
  150. data/src/main/java/processing/core/util/image/save/TiffImageSaveStrategy.java +0 -91
  151. data/src/main/java/processing/core/util/image/save/TiffNakedFilenameImageSaveStrategy.java +0 -57
  152. data/src/main/java/processing/core/util/io/InputFactory.java +0 -285
  153. data/src/main/java/processing/core/util/io/PathUtil.java +0 -109
  154. data/src/main/java/processing/opengl/shaders/LightVert-brcm.glsl +0 -154
  155. data/src/main/java/processing/opengl/shaders/LightVert-vc4.glsl +0 -154
  156. data/src/main/java/processing/opengl/shaders/TexLightVert-brcm.glsl +0 -160
  157. data/src/main/java/processing/opengl/shaders/TexLightVert-vc4.glsl +0 -160
data/mvnw.cmd CHANGED
@@ -1,145 +1,182 @@
1
- @REM ----------------------------------------------------------------------------
2
- @REM Licensed to the Apache Software Foundation (ASF) under one
3
- @REM or more contributor license agreements. See the NOTICE file
4
- @REM distributed with this work for additional information
5
- @REM regarding copyright ownership. The ASF licenses this file
6
- @REM to you under the Apache License, Version 2.0 (the
7
- @REM "License"); you may not use this file except in compliance
8
- @REM with the License. You may obtain a copy of the License at
9
- @REM
10
- @REM http://www.apache.org/licenses/LICENSE-2.0
11
- @REM
12
- @REM Unless required by applicable law or agreed to in writing,
13
- @REM software distributed under the License is distributed on an
14
- @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- @REM KIND, either express or implied. See the License for the
16
- @REM specific language governing permissions and limitations
17
- @REM under the License.
18
- @REM ----------------------------------------------------------------------------
19
-
20
- @REM ----------------------------------------------------------------------------
21
- @REM Maven2 Start Up Batch script
22
- @REM
23
- @REM Required ENV vars:
24
- @REM JAVA_HOME - location of a JDK home dir
25
- @REM
26
- @REM Optional ENV vars
27
- @REM M2_HOME - location of maven2's installed home dir
28
- @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
- @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
- @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
- @REM e.g. to debug Maven itself, use
32
- @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
- @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
- @REM ----------------------------------------------------------------------------
35
-
36
- @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
- @echo off
38
- @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
39
- @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
40
-
41
- @REM set %HOME% to equivalent of $HOME
42
- if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
43
-
44
- @REM Execute a user defined script before this one
45
- if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
46
- @REM check for pre script, once with legacy .bat ending and once with .cmd ending
47
- if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
48
- if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
49
- :skipRcPre
50
-
51
- @setlocal
52
-
53
- set ERROR_CODE=0
54
-
55
- @REM To isolate internal variables from possible post scripts, we use another setlocal
56
- @setlocal
57
-
58
- @REM ==== START VALIDATION ====
59
- if not "%JAVA_HOME%" == "" goto OkJHome
60
-
61
- echo.
62
- echo Error: JAVA_HOME not found in your environment. >&2
63
- echo Please set the JAVA_HOME variable in your environment to match the >&2
64
- echo location of your Java installation. >&2
65
- echo.
66
- goto error
67
-
68
- :OkJHome
69
- if exist "%JAVA_HOME%\bin\java.exe" goto init
70
-
71
- echo.
72
- echo Error: JAVA_HOME is set to an invalid directory. >&2
73
- echo JAVA_HOME = "%JAVA_HOME%" >&2
74
- echo Please set the JAVA_HOME variable in your environment to match the >&2
75
- echo location of your Java installation. >&2
76
- echo.
77
- goto error
78
-
79
- @REM ==== END VALIDATION ====
80
-
81
- :init
82
-
83
- set MAVEN_CMD_LINE_ARGS=%MAVEN_CONFIG% %*
84
-
85
- @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86
- @REM Fallback to current working directory if not found.
87
-
88
- set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89
- IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90
-
91
- set EXEC_DIR=%CD%
92
- set WDIR=%EXEC_DIR%
93
- :findBaseDir
94
- IF EXIST "%WDIR%"\.mvn goto baseDirFound
95
- cd ..
96
- IF "%WDIR%"=="%CD%" goto baseDirNotFound
97
- set WDIR=%CD%
98
- goto findBaseDir
99
-
100
- :baseDirFound
101
- set MAVEN_PROJECTBASEDIR=%WDIR%
102
- cd "%EXEC_DIR%"
103
- goto endDetectBaseDir
104
-
105
- :baseDirNotFound
106
- set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107
- cd "%EXEC_DIR%"
108
-
109
- :endDetectBaseDir
110
-
111
- IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112
-
113
- @setlocal EnableExtensions EnableDelayedExpansion
114
- for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115
- @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116
-
117
- :endReadAdditionalConfig
118
-
119
- SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120
-
121
- set WRAPPER_JAR=""%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar""
122
- set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
123
-
124
- %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
125
- if ERRORLEVEL 1 goto error
126
- goto end
127
-
128
- :error
129
- set ERROR_CODE=1
130
-
131
- :end
132
- @endlocal & set ERROR_CODE=%ERROR_CODE%
133
-
134
- if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
135
- @REM check for post script, once with legacy .bat ending and once with .cmd ending
136
- if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
137
- if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
138
- :skipRcPost
139
-
140
- @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
141
- if "%MAVEN_BATCH_PAUSE%" == "on" pause
142
-
143
- if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
144
-
145
- exit /B %ERROR_CODE%
1
+ @REM ----------------------------------------------------------------------------
2
+ @REM Licensed to the Apache Software Foundation (ASF) under one
3
+ @REM or more contributor license agreements. See the NOTICE file
4
+ @REM distributed with this work for additional information
5
+ @REM regarding copyright ownership. The ASF licenses this file
6
+ @REM to you under the Apache License, Version 2.0 (the
7
+ @REM "License"); you may not use this file except in compliance
8
+ @REM with the License. You may obtain a copy of the License at
9
+ @REM
10
+ @REM http://www.apache.org/licenses/LICENSE-2.0
11
+ @REM
12
+ @REM Unless required by applicable law or agreed to in writing,
13
+ @REM software distributed under the License is distributed on an
14
+ @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ @REM KIND, either express or implied. See the License for the
16
+ @REM specific language governing permissions and limitations
17
+ @REM under the License.
18
+ @REM ----------------------------------------------------------------------------
19
+
20
+ @REM ----------------------------------------------------------------------------
21
+ @REM Maven2 Start Up Batch script
22
+ @REM
23
+ @REM Required ENV vars:
24
+ @REM JAVA_HOME - location of a JDK home dir
25
+ @REM
26
+ @REM Optional ENV vars
27
+ @REM M2_HOME - location of maven2's installed home dir
28
+ @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+ @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+ @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+ @REM e.g. to debug Maven itself, use
32
+ @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+ @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+ @REM ----------------------------------------------------------------------------
35
+
36
+ @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+ @echo off
38
+ @REM set title of command window
39
+ title %0
40
+ @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41
+ @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42
+
43
+ @REM set %HOME% to equivalent of $HOME
44
+ if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45
+
46
+ @REM Execute a user defined script before this one
47
+ if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48
+ @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49
+ if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50
+ if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51
+ :skipRcPre
52
+
53
+ @setlocal
54
+
55
+ set ERROR_CODE=0
56
+
57
+ @REM To isolate internal variables from possible post scripts, we use another setlocal
58
+ @setlocal
59
+
60
+ @REM ==== START VALIDATION ====
61
+ if not "%JAVA_HOME%" == "" goto OkJHome
62
+
63
+ echo.
64
+ echo Error: JAVA_HOME not found in your environment. >&2
65
+ echo Please set the JAVA_HOME variable in your environment to match the >&2
66
+ echo location of your Java installation. >&2
67
+ echo.
68
+ goto error
69
+
70
+ :OkJHome
71
+ if exist "%JAVA_HOME%\bin\java.exe" goto init
72
+
73
+ echo.
74
+ echo Error: JAVA_HOME is set to an invalid directory. >&2
75
+ echo JAVA_HOME = "%JAVA_HOME%" >&2
76
+ echo Please set the JAVA_HOME variable in your environment to match the >&2
77
+ echo location of your Java installation. >&2
78
+ echo.
79
+ goto error
80
+
81
+ @REM ==== END VALIDATION ====
82
+
83
+ :init
84
+
85
+ @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86
+ @REM Fallback to current working directory if not found.
87
+
88
+ set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89
+ IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90
+
91
+ set EXEC_DIR=%CD%
92
+ set WDIR=%EXEC_DIR%
93
+ :findBaseDir
94
+ IF EXIST "%WDIR%"\.mvn goto baseDirFound
95
+ cd ..
96
+ IF "%WDIR%"=="%CD%" goto baseDirNotFound
97
+ set WDIR=%CD%
98
+ goto findBaseDir
99
+
100
+ :baseDirFound
101
+ set MAVEN_PROJECTBASEDIR=%WDIR%
102
+ cd "%EXEC_DIR%"
103
+ goto endDetectBaseDir
104
+
105
+ :baseDirNotFound
106
+ set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107
+ cd "%EXEC_DIR%"
108
+
109
+ :endDetectBaseDir
110
+
111
+ IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112
+
113
+ @setlocal EnableExtensions EnableDelayedExpansion
114
+ for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115
+ @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116
+
117
+ :endReadAdditionalConfig
118
+
119
+ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120
+ set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121
+ set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122
+
123
+ set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
124
+
125
+ FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127
+ )
128
+
129
+ @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130
+ @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131
+ if exist %WRAPPER_JAR% (
132
+ if "%MVNW_VERBOSE%" == "true" (
133
+ echo Found %WRAPPER_JAR%
134
+ )
135
+ ) else (
136
+ if not "%MVNW_REPOURL%" == "" (
137
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
138
+ )
139
+ if "%MVNW_VERBOSE%" == "true" (
140
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
141
+ echo Downloading from: %DOWNLOAD_URL%
142
+ )
143
+
144
+ powershell -Command "&{"^
145
+ "$webclient = new-object System.Net.WebClient;"^
146
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148
+ "}"^
149
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150
+ "}"
151
+ if "%MVNW_VERBOSE%" == "true" (
152
+ echo Finished downloading %WRAPPER_JAR%
153
+ )
154
+ )
155
+ @REM End of extension
156
+
157
+ @REM Provide a "standardized" way to retrieve the CLI args that will
158
+ @REM work with both Windows and non-Windows executions.
159
+ set MAVEN_CMD_LINE_ARGS=%*
160
+
161
+ %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162
+ if ERRORLEVEL 1 goto error
163
+ goto end
164
+
165
+ :error
166
+ set ERROR_CODE=1
167
+
168
+ :end
169
+ @endlocal & set ERROR_CODE=%ERROR_CODE%
170
+
171
+ if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172
+ @REM check for post script, once with legacy .bat ending and once with .cmd ending
173
+ if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174
+ if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175
+ :skipRcPost
176
+
177
+ @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178
+ if "%MAVEN_BATCH_PAUSE%" == "on" pause
179
+
180
+ if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181
+
182
+ exit /B %ERROR_CODE%
data/pom.rb CHANGED
@@ -1,7 +1,8 @@
1
- project 'propane', 'https://github.com/monkstone/propane' do
1
+ # frozen_string_literal: true
2
2
 
3
+ project 'propane', 'https://github.com/monkstone/propane' do
3
4
  model_version '4.0.0'
4
- id 'propane:propane:3.3.1'
5
+ id 'propane:propane:3.6.0'
5
6
  packaging 'jar'
6
7
 
7
8
  description 'An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.'
@@ -26,54 +27,56 @@ project 'propane', 'https://github.com/monkstone/propane' do
26
27
  roles 'developer'
27
28
  end
28
29
 
29
- issue_management 'https://github.com/ruby-processing/propane/issues', 'Github'
30
-
31
- source_control( :url => 'https://github.com/ruby-processing/propane',
32
- :connection => 'scm:git:git://github.com/ruby-processing/propane.git',
33
- :developer_connection => 'scm:git:git@github.com/ruby-processing/propane.git' )
34
-
35
- properties( 'propane.basedir' => '${project.basedir}',
36
- 'processing.api' => 'http://processing.github.io/processing-javadocs/core/',
37
- 'source.directory' => 'src',
38
- 'polyglot.dump.pom' => 'pom.xml',
39
- 'project.build.sourceEncoding' => 'utf-8',
40
- 'jogl.version' => '2.3.2',
41
- 'jruby.api' => 'http://jruby.org/apidocs/' )
42
-
43
- pom 'org.jruby:jruby:9.2.7.0'
44
- jar 'org.processing:video:3.2.3'
45
- jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
46
- jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
47
-
48
- overrides do
49
- plugin( 'org.codehaus.mojo:versions-maven-plugin:2.7',
50
- 'generateBackupPoms' => 'false' )
51
- plugin( :compiler, '3.8.0',
52
- 'release' => '11' )
53
- plugin( :javadoc, '3.0.1',
54
- 'detectOfflineLinks' => 'false',
55
- 'links' => [ '${jruby.api}',
56
- '${processing.api}' ] )
57
- plugin( :jar, '3.1.0',
58
- 'archive' => {
59
- 'manifestFile' => 'MANIFEST.MF'
60
- } )
30
+ developer 'sampottinger' do
31
+ name 'Sam Pottinger'
32
+ roles 'developer'
61
33
  end
62
34
 
35
+ issue_management 'https://github.com/ruby-processing/propane/issues', 'Github'
63
36
 
64
- build do
65
-
66
- resource do
67
- directory '${source.directory}/main/java'
68
- includes '**/**/*.glsl', '**/*.jnilib'
69
- excludes '**/**/*.java'
70
- end
71
-
72
- resource do
73
- directory '${source.directory}/main/resources'
74
- includes '**/*.png', '*.txt'
75
- excludes
76
- end
77
- end
78
-
79
- end
37
+ source_control(url: 'https://github.com/ruby-processing/propane',
38
+ connection: 'scm:git:git://github.com/ruby-processing/propane.git',
39
+ developer_connection: 'scm:git:git@github.com/ruby-processing/propane.git')
40
+
41
+ properties('propane.basedir' => '${project.basedir}',
42
+ 'processing.api' => 'http://processing.github.io/processing-javadocs/core/',
43
+ 'source.directory' => 'src',
44
+ 'polyglot.dump.pom' => 'pom.xml',
45
+ 'project.build.sourceEncoding' => 'utf-8',
46
+ 'jogl.version' => '2.3.2', # for compiling actual included 2.4.0-rc
47
+ 'jruby.api' => 'http://jruby.org/apidocs/')
48
+
49
+ pom 'org.jruby:jruby:9.2.14.0'
50
+ jar 'org.processing:video:3.3.7' # only for compiling
51
+ jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
52
+ jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
53
+
54
+ overrides do
55
+ plugin('org.codehaus.mojo:versions-maven-plugin:2.7',
56
+ 'generateBackupPoms' => 'false')
57
+ plugin(:compiler, '3.8.1',
58
+ 'release' => '11')
59
+ plugin(:javadoc, '3.2.0',
60
+ 'detectOfflineLinks' => 'false',
61
+ 'links' => ['${jruby.api}',
62
+ '${processing.api}'])
63
+ plugin(:jar, '3.2.0',
64
+ 'archive' => {
65
+ 'manifestEntries' => {
66
+ 'Automatic-Module-Name' => 'processing.core'
67
+ }
68
+ })
69
+ end
70
+ build do
71
+ resource do
72
+ directory '${source.directory}/main/java'
73
+ includes '**/**/*.glsl', '**/*.jnilib'
74
+ excludes '**/**/*.java'
75
+ end
76
+ resource do
77
+ directory '${source.directory}/main/resources'
78
+ includes '**/*.png', '*.txt'
79
+ excludes
80
+ end
81
+ end
82
+ end
data/pom.xml CHANGED
@@ -6,12 +6,12 @@ DO NOT MODIFIY - GENERATED CODE
6
6
 
7
7
 
8
8
  -->
9
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
9
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
10
10
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
11
11
  <modelVersion>4.0.0</modelVersion>
12
12
  <groupId>propane</groupId>
13
13
  <artifactId>propane</artifactId>
14
- <version>3.3.1</version>
14
+ <version>3.6.0</version>
15
15
  <name>propane</name>
16
16
  <description>An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.</description>
17
17
  <url>https://github.com/monkstone/propane</url>
@@ -44,6 +44,13 @@ DO NOT MODIFIY - GENERATED CODE
44
44
  <role>developer</role>
45
45
  </roles>
46
46
  </developer>
47
+ <developer>
48
+ <id>sampottinger</id>
49
+ <name>Sam Pottinger</name>
50
+ <roles>
51
+ <role>developer</role>
52
+ </roles>
53
+ </developer>
47
54
  </developers>
48
55
  <scm>
49
56
  <connection>scm:git:git://github.com/ruby-processing/propane.git</connection>
@@ -67,13 +74,13 @@ DO NOT MODIFIY - GENERATED CODE
67
74
  <dependency>
68
75
  <groupId>org.jruby</groupId>
69
76
  <artifactId>jruby</artifactId>
70
- <version>9.2.7.0</version>
77
+ <version>9.2.14.0</version>
71
78
  <type>pom</type>
72
79
  </dependency>
73
80
  <dependency>
74
81
  <groupId>org.processing</groupId>
75
82
  <artifactId>video</artifactId>
76
- <version>3.2.3</version>
83
+ <version>3.3.7</version>
77
84
  </dependency>
78
85
  <dependency>
79
86
  <groupId>org.jogamp.jogl</groupId>
@@ -118,14 +125,14 @@ DO NOT MODIFIY - GENERATED CODE
118
125
  </plugin>
119
126
  <plugin>
120
127
  <artifactId>maven-compiler-plugin</artifactId>
121
- <version>3.8.0</version>
128
+ <version>3.8.1</version>
122
129
  <configuration>
123
130
  <release>11</release>
124
131
  </configuration>
125
132
  </plugin>
126
133
  <plugin>
127
134
  <artifactId>maven-javadoc-plugin</artifactId>
128
- <version>3.0.1</version>
135
+ <version>3.2.0</version>
129
136
  <configuration>
130
137
  <detectOfflineLinks>false</detectOfflineLinks>
131
138
  <links>
@@ -136,10 +143,12 @@ DO NOT MODIFIY - GENERATED CODE
136
143
  </plugin>
137
144
  <plugin>
138
145
  <artifactId>maven-jar-plugin</artifactId>
139
- <version>3.1.0</version>
146
+ <version>3.2.0</version>
140
147
  <configuration>
141
148
  <archive>
142
- <manifestFile>MANIFEST.MF</manifestFile>
149
+ <manifestEntries>
150
+ <Automatic-Module-Name>processing.core</Automatic-Module-Name>
151
+ </manifestEntries>
143
152
  </archive>
144
153
  </configuration>
145
154
  </plugin>