rhodes 6.2.0 → 7.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +14 -10
- data/appveyor.yml +1 -1
- data/extensions/emdk3-manager/ext/platform/android/Rakefile +2 -0
- data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/Rakefile +18 -1
- data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/Rakefile +19 -1
- data/lib/commonAPI/RubyServer/ext.yml +21 -0
- data/lib/commonAPI/RubyServer/ext/RubyServer.xml +101 -0
- data/lib/commonAPI/RubyServer/ext/build +19 -0
- data/lib/commonAPI/RubyServer/ext/build.bat +29 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/Rakefile +161 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/ext_java.files +9 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/ext_native.files +7 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/Rakefile +73 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer.xcodeproj/project.pbxproj +322 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer_Prefix.pch +7 -0
- data/lib/commonAPI/RubyServer/ext/shared/RubyServerImpl.cpp +242 -0
- data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeFactory.java +23 -3
- data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeRhoExtension.java +68 -8
- data/lib/commonAPI/barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +24 -52
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.h +38 -10
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m +300 -22
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +6 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/barcode.m +6 -2
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/Barcode.m +7 -3
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeFactory.m +13 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeSingleton.m +25 -3
- data/lib/commonAPI/bluetooth/ext/platform/android/Rakefile +29 -10
- data/lib/commonAPI/clipboard/ext/platform/android/Rakefile +29 -10
- data/lib/commonAPI/coreapi/ext/Notification.xml +47 -0
- data/lib/commonAPI/coreapi/ext/platform/android/ApplicationManifestAdds.erb +1 -0
- data/lib/commonAPI/coreapi/ext/platform/android/Rakefile +19 -0
- data/lib/commonAPI/coreapi/ext/platform/android/ext_java.files +2 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/AlarmReceiver.java +27 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +28 -10
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationFactory.java +14 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +260 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java +23 -1
- data/lib/commonAPI/coreapi/ext/platform/iphone/Coreapi.xcodeproj/project.pbxproj +21 -19
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +1 -0
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +234 -1
- data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +2 -0
- data/lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp +7 -0
- data/lib/commonAPI/coreapi/ext/shared/ApplicationImpl.cpp +5 -0
- data/lib/commonAPI/coreapi/public/api/rhoapi.js +18 -8
- data/lib/commonAPI/devicesecurity/ext/platform/android/Rakefile +19 -0
- data/lib/commonAPI/devicesecurity/ext/platform/iphone/DeviceSecurity.xcodeproj/project.pbxproj +16 -0
- data/lib/commonAPI/hardwarekeys/ext/keycapture.xml +11 -9
- data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.h +5 -3
- data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.m +80 -67
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraEclair.java +25 -14
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraGingerbread.java +55 -25
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +34 -9
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/ICameraObject.java +1 -0
- data/lib/commonAPI/printing_zebra/ext/platform/android/Rakefile +18 -0
- data/lib/commonAPI/sensor/ext/platform/android/src/com/rho/sensor/Sensor.java +4 -4
- data/lib/extensions/decrypt/ext/platform/android/Rakefile +19 -1
- data/lib/extensions/decryptstub/ext/platform/android/Rakefile +19 -0
- data/lib/extensions/decryptstub/ext/platform/iphone/Decryptstub.xcodeproj/project.pbxproj +4 -2
- data/lib/extensions/digest-md5/ext/android/Rakefile +18 -0
- data/lib/extensions/digest-sha1/ext/android/Rakefile +18 -0
- data/lib/extensions/digest-sha2/ext/android/Rakefile +18 -0
- data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +19 -19
- data/lib/extensions/fcm-push/ext/android/Rakefile +18 -0
- data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMIntentService.java +38 -16
- data/lib/extensions/gcm-push/ext/android/Rakefile +19 -0
- data/lib/extensions/keyboard/ext.yml +15 -0
- data/lib/extensions/keyboard/ext/Keyboard.xml +28 -0
- data/lib/extensions/keyboard/ext/build +19 -0
- data/lib/extensions/keyboard/ext/build.bat +29 -0
- data/lib/extensions/keyboard/ext/platform/android/Rakefile +141 -0
- data/lib/extensions/keyboard/ext/platform/android/ext_java.files +9 -0
- data/lib/extensions/keyboard/ext/platform/android/ext_native.files +7 -0
- data/lib/extensions/keyboard/ext/platform/android/jni/Keyboard_impl.cpp +61 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/Keyboard.java +32 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardFactory.java +18 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardSingleton.java +29 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Keyboard.xcodeproj/project.pbxproj +368 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Keyboard_Prefix.pch +7 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Rakefile +73 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.h +14 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.m +24 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardFactorySingleton.m +16 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSetup.m +9 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.h +17 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.m +23 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/readme.txt +7 -0
- data/lib/extensions/keyboard/ext/platform/qt/Keyboard.pro +68 -0
- data/lib/extensions/keyboard/ext/platform/qt/Makefile +473 -0
- data/lib/extensions/keyboard/ext/platform/qt/Makefile.Release +408 -0
- data/lib/extensions/keyboard/ext/platform/qt/Rakefile +39 -0
- data/lib/extensions/keyboard/ext/platform/qt/src/Keyboard_impl.cpp +99 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.props +18 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj +197 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj.filters +50 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.csproj +119 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.props +8 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.targets +7 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.props +18 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj +197 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj.filters +58 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cpp +76 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cs +69 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Properties/AssemblyInfo.cs +37 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.sln +52 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vcproj +714 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vsprops +15 -0
- data/lib/extensions/keyboard/ext/platform/wm/src/Keyboard_impl.cpp +77 -0
- data/lib/extensions/openssl.so.src/ext/android/Rakefile +18 -0
- data/lib/extensions/openssl.so/ext/android/aarch64/libopenssl.so.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/howtobuild.txt +2 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libcrypto.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libssl.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/Release-iphoneos/libopenssl.so.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/Release-iphonesimulator/libopenssl.so.a +0 -0
- data/lib/extensions/openssl/ext/android/Rakefile +18 -0
- data/lib/extensions/zlib/ext/zlib.c +5 -1
- data/lib/framework/autocomplete/Rhodes.rb +1 -1
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/set.rb +799 -0
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml.erb +11 -2
- data/platform/android/Rhodes/jni/include/rhodes.h +6 -0
- data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +3 -0
- data/platform/android/Rhodes/jni/include/rhodes/SecurityTokenGenerator.h +30 -0
- data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/src/JNIRhoRubyCppWrapper.cpp +408 -0
- data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +7 -0
- data/platform/android/Rhodes/jni/src/SecurityTokenGenerator.cpp +60 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +318 -12
- data/platform/android/Rhodes/jni/src/mapview.cpp +4 -0
- data/platform/android/Rhodes/res/drawable/ic_notification.png +0 -0
- data/platform/android/Rhodes/res/xml/network_security_config.xml +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMain.java +8 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyArrayObjects.java +33 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyClassObject.java +20 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyObject.java +115 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubySingleton.java +52 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyTypes.java +15 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +25 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/SecurityTokenGenerator.java +57 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +9 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +3 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality11.java +13 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality26.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +24 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +20 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +10 -0
- data/platform/android/build/Rakefile +30 -1
- data/platform/android/build/RhodesSRC_build.files +8 -0
- data/platform/android/build/android.rake +326 -22
- data/platform/android/build/android_tools.rb +36 -3
- data/platform/android/build/androidcommon.rb +97 -44
- data/platform/android/build/librhocommon_build.files +11 -0
- data/platform/android/build/librhodes_build.files +2 -0
- data/platform/android/build/manifest_generator.rb +9 -2
- data/platform/android/build/maven_deps_extractor.rb +96 -15
- data/platform/android/build/ndkwrapper.rb +111 -16
- data/platform/android/build/pom.erb +2 -2
- data/platform/iphone/Classes/AppManager/AppManager.m +31 -1
- data/platform/iphone/Classes/MapView/GoogleGeocoder.h +3 -3
- data/platform/iphone/Classes/RhoMainViewStubImpl.h +38 -0
- data/platform/iphone/Classes/RhoMainViewStubImpl.m +88 -0
- data/platform/iphone/Classes/RhoUIWebView.h +5 -0
- data/platform/iphone/Classes/RhoUIWebView.m +14 -6
- data/platform/iphone/Classes/{RhoWKWebView.m → RhoWKWebView.mm} +98 -18
- data/platform/iphone/Classes/RhoWebView.h +1 -1
- data/platform/iphone/Classes/RhoWebViewFabrique.m +24 -12
- data/platform/iphone/Classes/Rhodes.h +7 -2
- data/platform/iphone/Classes/Rhodes.m +46 -8
- data/platform/iphone/Classes/SimpleMainView.m +22 -13
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.h +32 -3
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +93 -61
- data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.h +22 -0
- data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.m +246 -0
- data/platform/iphone/Classes/WebView.m +14 -2
- data/platform/iphone/Entitlements.plist +1 -1
- data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +399 -0
- data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1208 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/Info.plist +24 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/Rhodes.h +21 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/StubCode.m +15 -0
- data/platform/iphone/Info.plist +1 -3
- data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +511 -4
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +467 -1
- data/platform/iphone/Rhodes.xcodeproj/project.pbxproj +51 -274
- data/platform/iphone/RhodesBaseDelegate.h +1 -1
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +85 -3
- data/platform/iphone/rbuild/ApplicationPlist.erb +1 -1
- data/platform/iphone/rbuild/iphone.rake +497 -25
- data/platform/iphone/rbuild/iphonecommon.rb +15 -6
- data/platform/iphone/rhodes_stub.cpp +15 -0
- data/platform/iphone/rhodeslib/api/RhodesLib.h +28 -0
- data/platform/iphone/rhodeslib/impl/RhodesLib.m +52 -0
- data/platform/iphone/rhodesruby/api/IRefCountedObject.h +20 -0
- data/platform/iphone/rhodesruby/api/IRhoRuby.h +72 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyArray.h +12 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyBoolean.h +11 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyFloat.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyHash.h +15 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyInteger.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableArray.h +9 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableBoolean.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableFloat.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableHash.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableInteger.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableString.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyNativeCallback.h +9 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyNil.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyObject.h +37 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyRunnable.h +8 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyString.h +10 -0
- data/platform/iphone/rhodesruby/api/RhoRuby.h +26 -0
- data/platform/iphone/rhodesruby/api/RhoRubySingletone.h +14 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyFabrique.h +10 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyImpl.h +56 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyImpl.mm +432 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.h +24 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.mm +43 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.mm +38 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.h +24 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.mm +48 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.h +22 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.mm +11 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.h +31 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.mm +49 -0
- data/platform/iphone/rhodesruby/impl/RhoRubySingletone.m +19 -0
- data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.h +21 -0
- data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.mm +32 -0
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +79 -0
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +91 -0
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +85 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
- data/platform/shared/common/IRhoClassFactory.h +2 -0
- data/platform/shared/common/ISecurityTokenGenerator.h +16 -0
- data/platform/shared/common/RhoFile.cpp +11 -0
- data/platform/shared/common/RhoMath.h +14 -0
- data/platform/shared/common/RhoMutexLock.h +13 -0
- data/platform/shared/common/RhoSystem.h +1 -1
- data/platform/shared/common/RhoThread.cpp +25 -0
- data/platform/shared/common/RhodesApp.cpp +52 -6
- data/platform/shared/common/RhodesApp.h +25 -1
- data/platform/shared/common/RhodesAppBase.cpp +4 -2
- data/platform/shared/common/RhodesAppBase.h +5 -0
- data/platform/shared/common/iphone/RhoClassfactory.h +6 -0
- data/platform/shared/common/iphone/RhoCryptImpl.mm +21 -2
- data/platform/shared/common/map/BaseMapEngine.cpp +2 -2
- data/platform/shared/common/map/GeocodingMapEngine.cpp +1 -1
- data/platform/shared/common/map/GoogleMapEngine.cpp +1 -1
- data/platform/shared/common/map/OSMMapEngine.cpp +1 -1
- data/platform/shared/curl/lib/curl_config.h +28 -0
- data/platform/shared/db/DBAdapter.cpp +18 -10
- data/platform/shared/json.new/JSONIterator.cpp +2 -2
- data/platform/shared/net/HttpServer.cpp +32 -0
- data/platform/shared/net/HttpServer.h +15 -0
- data/platform/shared/net/INetRequest.cpp +54 -0
- data/platform/shared/qt/RhoRubylib.pro +10 -0
- data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +13 -0
- data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +6 -0
- data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +4 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +36 -7
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +12 -1
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +21 -2
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +1 -0
- data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +10 -0
- data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +55 -3
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +11 -0
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +71 -7
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +79 -2
- data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +16 -6
- data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.cpp +37 -0
- data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.h +25 -0
- data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +2 -0
- data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +27 -0
- data/platform/shared/qt/rhodes/impl/notificationsound.cpp +16 -2
- data/platform/shared/qt/rhodes/impl/notificationsound.h +11 -1
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +25 -16
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +3 -0
- data/platform/shared/qt/rhodes/newVersion/WebUrlRequestInterceptor.cpp +17 -0
- data/platform/shared/qt/rhodes/rhodes.pro +68 -14
- data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.cpp +148 -0
- data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.h +12 -0
- data/platform/shared/qt/rholib/rholib.pro +33 -5
- data/platform/shared/qt/rhoruby_win32_build.bat +19 -0
- data/platform/shared/qt/rhoruby_win32_build_debug.bat +19 -0
- data/platform/shared/qt/rhosimulator_win32_build_debug.bat +19 -0
- data/platform/shared/qt/rubylib/rubylib.pro +1 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +1 -0
- data/platform/shared/qt/syncengine/syncengine.pro +1 -0
- data/platform/shared/rhoruby/api/IArray.h +20 -0
- data/platform/shared/rhoruby/api/IBoolean.h +17 -0
- data/platform/shared/rhoruby/api/IFloat.h +17 -0
- data/platform/shared/rhoruby/api/IHash.h +23 -0
- data/platform/shared/rhoruby/api/IInteger.h +18 -0
- data/platform/shared/rhoruby/api/IMutableArray.h +18 -0
- data/platform/shared/rhoruby/api/IMutableBoolean.h +18 -0
- data/platform/shared/rhoruby/api/IMutableFloat.h +17 -0
- data/platform/shared/rhoruby/api/IMutableHash.h +18 -0
- data/platform/shared/rhoruby/api/IMutableInteger.h +17 -0
- data/platform/shared/rhoruby/api/IMutableString.h +17 -0
- data/platform/shared/rhoruby/api/INil.h +16 -0
- data/platform/shared/rhoruby/api/IObject.h +46 -0
- data/platform/shared/rhoruby/api/IRefCountedObject.h +20 -0
- data/platform/shared/rhoruby/api/IRhoRuby.h +78 -0
- data/platform/shared/rhoruby/api/IRunnable.h +17 -0
- data/platform/shared/rhoruby/api/IString.h +17 -0
- data/platform/shared/rhoruby/api/RhoRuby.h +29 -0
- data/platform/shared/rhoruby/api/RhoRubySingletone.h +19 -0
- data/platform/shared/rhoruby/api/SmartPointer.h +27 -0
- data/platform/shared/rhoruby/impl/MutableArrayImpl.cpp +54 -0
- data/platform/shared/rhoruby/impl/MutableArrayImpl.h +48 -0
- data/platform/shared/rhoruby/impl/MutableBooleanImpl.cpp +44 -0
- data/platform/shared/rhoruby/impl/MutableBooleanImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableFloatImpl.cpp +41 -0
- data/platform/shared/rhoruby/impl/MutableFloatImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableHashImpl.cpp +64 -0
- data/platform/shared/rhoruby/impl/MutableHashImpl.h +49 -0
- data/platform/shared/rhoruby/impl/MutableIntegerImpl.cpp +41 -0
- data/platform/shared/rhoruby/impl/MutableIntegerImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableStringImpl.cpp +52 -0
- data/platform/shared/rhoruby/impl/MutableStringImpl.h +44 -0
- data/platform/shared/rhoruby/impl/NilImpl.cpp +23 -0
- data/platform/shared/rhoruby/impl/NilImpl.h +32 -0
- data/platform/shared/rhoruby/impl/ObjectImpl.cpp +77 -0
- data/platform/shared/rhoruby/impl/ObjectImpl.h +53 -0
- data/platform/shared/rhoruby/impl/RefCountedObjectImpl.cpp +28 -0
- data/platform/shared/rhoruby/impl/RefCountedObjectImpl.h +33 -0
- data/platform/shared/rhoruby/impl/RhoRubyImpl.cpp +799 -0
- data/platform/shared/rhoruby/impl/RhoRubyImpl.h +81 -0
- data/platform/shared/rhoruby/impl/RhoRubySingletone.cpp +20 -0
- data/platform/shared/rhoruby/impl/RubyServerResponceImpl.cpp +32 -0
- data/platform/shared/rhoruby/impl/RubyServerResponceImpl.h +21 -0
- data/platform/shared/ruby/android/ruby/config.h +55 -3
- data/platform/shared/ruby/error.c +1 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +60 -7
- data/platform/shared/ruby/ext/rho/rhoruby.h +3 -0
- data/platform/shared/rubyext/NativeToolbarExt.h +1 -0
- data/platform/uwp/rhodes/rhodes_TemporaryKey.pfx +0 -0
- data/platform/uwp/rhoruntime/common/RhoClassFactory.h +6 -0
- data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Positioning.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5QuickWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5SerialPort.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Svg.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebChannel.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngine.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngineCore.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngineWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
- data/platform/win32/RhoSimulator/QtWebEngineProcess.exe +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/audio/qtaudio_wasapi.dll +0 -0
- data/platform/win32/RhoSimulator/audio/qtaudio_windows.dll +0 -0
- data/platform/win32/RhoSimulator/bearer/qgenericbearer.dll +0 -0
- data/platform/win32/RhoSimulator/iconengines/qsvgicon.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qicns.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwebp.dll +0 -0
- data/platform/win32/RhoSimulator/libEGL.dll +0 -0
- data/platform/win32/RhoSimulator/libGLESV2.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/dsengine.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/qtmedia_audioengine.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/wmfengine.dll +0 -0
- data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
- data/platform/win32/RhoSimulator/playlistformats/qtmultimedia_m3u.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_geoclue.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_positionpoll.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_serialnmea.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_winrt.dll +0 -0
- data/platform/win32/RhoSimulator/printsupport/windowsprintersupport.dll +0 -0
- data/platform/wm/build/wm.rake +110 -5
- data/platform/wm/rhodes/rho/common/ExtManager.cpp +30 -0
- data/platform/wm/rhodes/rho/common/RhoClassFactory.h +6 -0
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -0
- data/platform/wm/rubylib/rubylib.vcxproj +6 -0
- data/platform/wp8/rhoruntime/common/RhoClassFactory.h +6 -0
- data/rakefile.rb +14 -10
- data/res/build-tools/iphonesim/build/Release/iphonesim_8 +23 -15
- data/res/build-tools/maven/LICENSE +18 -89
- data/res/build-tools/maven/NOTICE +1 -1
- data/res/build-tools/maven/README.txt +12 -12
- data/res/build-tools/maven/bin/m2.conf +2 -2
- data/res/build-tools/maven/bin/mvn +122 -125
- data/res/build-tools/maven/bin/mvn.cmd +205 -0
- data/res/build-tools/maven/bin/mvnDebug +10 -176
- data/res/build-tools/maven/bin/mvnDebug.cmd +33 -0
- data/res/build-tools/maven/bin/mvnyjp +9 -181
- data/res/build-tools/maven/boot/plexus-classworlds-2.6.0.jar +0 -0
- data/res/build-tools/maven/conf/logging/simplelogger.properties +8 -1
- data/res/build-tools/maven/conf/settings.xml +1 -1
- data/res/build-tools/maven/conf/toolchains.xml +103 -0
- data/res/build-tools/maven/lib/animal-sniffer-annotations-1.14.jar +0 -0
- data/res/build-tools/maven/lib/animal-sniffer-annotations.license +14 -0
- data/res/build-tools/maven/lib/checker-compat-qual-2.0.0.jar +0 -0
- data/res/build-tools/maven/lib/checker-compat-qual.license +14 -0
- data/res/build-tools/maven/lib/commons-cli-1.4.jar +0 -0
- data/res/build-tools/maven/lib/commons-io-2.5.jar +0 -0
- data/res/build-tools/maven/lib/commons-lang3-3.8.1.jar +0 -0
- data/res/build-tools/maven/lib/error_prone_annotations-2.1.3.jar +0 -0
- data/res/build-tools/maven/lib/guava-25.1-android.jar +0 -0
- data/res/build-tools/maven/lib/guice-4.2.1-no_aop.jar +0 -0
- data/res/build-tools/maven/lib/j2objc-annotations-1.1.jar +0 -0
- data/res/build-tools/maven/lib/jansi-1.17.1.jar +0 -0
- data/res/build-tools/maven/lib/jansi-native/README.txt +7 -0
- data/res/build-tools/maven/lib/jansi-native/freebsd32/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/freebsd64/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/linux32/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/linux64/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/osx/libjansi.jnilib +0 -0
- data/res/build-tools/maven/lib/jansi-native/windows32/jansi.dll +0 -0
- data/res/build-tools/maven/lib/jansi-native/windows64/jansi.dll +0 -0
- data/res/build-tools/maven/lib/jcl-over-slf4j-1.7.25.jar +0 -0
- data/res/build-tools/maven/lib/jcl-over-slf4j.license +14 -0
- data/res/build-tools/maven/lib/jsr250-api.license +383 -405
- data/res/build-tools/maven/lib/jsr305-3.0.2.jar +0 -0
- data/res/build-tools/maven/lib/maven-artifact-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-builder-support-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-compat-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-core-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-embedder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-plugin-api-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-repository-metadata-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-api-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-connector-basic-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-impl-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-provider-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-spi-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-transport-wagon-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-util-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-shared-utils-3.2.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-slf4j-provider-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.3.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject.license +210 -261
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus.license +210 -261
- data/res/build-tools/maven/lib/plexus-component-annotations-1.7.1.jar +0 -0
- data/res/build-tools/maven/lib/plexus-interpolation-1.25.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.4.jar +0 -0
- data/res/build-tools/maven/lib/plexus-utils-3.2.0.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api-1.7.25.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api.license +10 -186
- data/res/build-tools/maven/lib/wagon-file-3.3.2.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-3.3.2-shaded.jar +0 -0
- data/res/build-tools/maven/lib/wagon-provider-api-3.3.2.jar +0 -0
- data/res/generators/rhogen.rb +150 -0
- data/res/generators/templates/application/AndroidManifest.erb +13 -4
- data/res/generators/templates/application/build.yml +9 -0
- data/res/generators/templates/application/nodejs_build.yml +1 -1
- data/res/generators/templates/application/resources/android/res/xml/network_security_config.xml +7 -0
- data/res/generators/templates/application/rhoconfig.txt +13 -6
- data/res/generators/templates/application/rhoconfig_rubynode.txt +139 -0
- data/res/generators/templates/application/rubynodejs_build.yml +95 -0
- data/res/generators/templates/extension/extensions/montana/ext/platform/android/Rakefile +19 -0
- data/res/generators/templates/iphone_project/root/Entitlements.plist +1 -1
- data/res/generators/templates/iphone_project/root/Info.plist +1 -3
- data/res/generators/templates/iphone_project/root/rhorunner_development.entitlements +1 -1
- data/res/generators/templates/iphone_project/root/rhorunner_production.entitlements +1 -1
- data/rhodes.gemspec +2 -2
- data/version +1 -1
- metadata +244 -71
- data/res/build-tools/maven/bin/mvn.bat +0 -197
- data/res/build-tools/maven/bin/mvnDebug.bat +0 -200
- data/res/build-tools/maven/boot/plexus-classworlds-2.5.2.jar +0 -0
- data/res/build-tools/maven/lib/aether-api-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-api.license +0 -261
- data/res/build-tools/maven/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-connector-basic.license +0 -261
- data/res/build-tools/maven/lib/aether-impl-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-impl.license +0 -261
- data/res/build-tools/maven/lib/aether-spi-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-spi.license +0 -261
- data/res/build-tools/maven/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-transport-wagon.license +0 -261
- data/res/build-tools/maven/lib/aether-util-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-util.license +0 -261
- data/res/build-tools/maven/lib/cdi-api.license +0 -445
- data/res/build-tools/maven/lib/commons-cli-1.2.jar +0 -0
- data/res/build-tools/maven/lib/commons-io-2.2.jar +0 -0
- data/res/build-tools/maven/lib/commons-lang-2.6.jar +0 -0
- data/res/build-tools/maven/lib/guava-18.0.jar +0 -0
- data/res/build-tools/maven/lib/jsoup-1.7.2.jar +0 -0
- data/res/build-tools/maven/lib/jsoup.license +0 -66
- data/res/build-tools/maven/lib/maven-aether-provider-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-aether-provider.license +0 -202
- data/res/build-tools/maven/lib/maven-artifact-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-artifact.license +0 -202
- data/res/build-tools/maven/lib/maven-compat-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-compat.license +0 -202
- data/res/build-tools/maven/lib/maven-core-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-core.license +0 -202
- data/res/build-tools/maven/lib/maven-embedder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-embedder.license +0 -202
- data/res/build-tools/maven/lib/maven-model-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder.license +0 -202
- data/res/build-tools/maven/lib/maven-model.license +0 -202
- data/res/build-tools/maven/lib/maven-plugin-api-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-plugin-api.license +0 -202
- data/res/build-tools/maven/lib/maven-repository-metadata-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-repository-metadata.license +0 -202
- data/res/build-tools/maven/lib/maven-settings-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder.license +0 -202
- data/res/build-tools/maven/lib/maven-settings.license +0 -202
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
- data/res/build-tools/maven/lib/plexus-cipher.license +0 -445
- data/res/build-tools/maven/lib/plexus-component-annotations-1.5.5.jar +0 -0
- data/res/build-tools/maven/lib/plexus-interpolation-1.21.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.3.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher.license +0 -445
- data/res/build-tools/maven/lib/plexus-utils-3.0.20.jar +0 -0
- data/res/build-tools/maven/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api-1.7.5.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-simple-1.7.5.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-simple.license +0 -190
- data/res/build-tools/maven/lib/wagon-file-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-file.license +0 -202
- data/res/build-tools/maven/lib/wagon-http-2.8-shaded.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-shared-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-shared.license +0 -202
- data/res/build-tools/maven/lib/wagon-http.license +0 -202
- data/res/build-tools/maven/lib/wagon-provider-api-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-provider-api.license +0 -202
@@ -0,0 +1,205 @@
|
|
1
|
+
@REM Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
@REM or more contributor license agreements. See the NOTICE file
|
3
|
+
@REM distributed with this work for additional information
|
4
|
+
@REM regarding copyright ownership. The ASF licenses this file
|
5
|
+
@REM to you under the Apache License, Version 2.0 (the
|
6
|
+
@REM "License"); you may not use this file except in compliance
|
7
|
+
@REM with the License. You may obtain a copy of the License at
|
8
|
+
@REM
|
9
|
+
@REM http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
@REM
|
11
|
+
@REM Unless required by applicable law or agreed to in writing,
|
12
|
+
@REM software distributed under the License is distributed on an
|
13
|
+
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
@REM KIND, either express or implied. See the License for the
|
15
|
+
@REM specific language governing permissions and limitations
|
16
|
+
@REM under the License.
|
17
|
+
|
18
|
+
@REM -----------------------------------------------------------------------------
|
19
|
+
@REM Apache Maven Startup Script
|
20
|
+
@REM
|
21
|
+
@REM Environment Variable Prerequisites
|
22
|
+
@REM
|
23
|
+
@REM JAVA_HOME Must point at your Java Development Kit installation.
|
24
|
+
@REM MAVEN_BATCH_ECHO (Optional) Set to 'on' to enable the echoing of the batch commands.
|
25
|
+
@REM MAVEN_BATCH_PAUSE (Optional) set to 'on' to wait for a key stroke before ending.
|
26
|
+
@REM MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
|
27
|
+
@REM MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
|
28
|
+
@REM -----------------------------------------------------------------------------
|
29
|
+
|
30
|
+
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
|
31
|
+
@echo off
|
32
|
+
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
|
33
|
+
@if "%MAVEN_BATCH_ECHO%"=="on" echo %MAVEN_BATCH_ECHO%
|
34
|
+
|
35
|
+
@REM Execute a user defined script before this one
|
36
|
+
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPre
|
37
|
+
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
|
38
|
+
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat"
|
39
|
+
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd"
|
40
|
+
:skipRcPre
|
41
|
+
|
42
|
+
@setlocal
|
43
|
+
|
44
|
+
set ERROR_CODE=0
|
45
|
+
|
46
|
+
@REM ==== START VALIDATION ====
|
47
|
+
if not "%JAVA_HOME%"=="" goto OkJHome
|
48
|
+
for %%i in (java.exe) do set "JAVACMD=%%~$PATH:i"
|
49
|
+
goto checkJCmd
|
50
|
+
|
51
|
+
:OkJHome
|
52
|
+
set "JAVACMD=%JAVA_HOME%\bin\java.exe"
|
53
|
+
|
54
|
+
:checkJCmd
|
55
|
+
if exist "%JAVACMD%" goto chkMHome
|
56
|
+
|
57
|
+
echo The JAVA_HOME environment variable is not defined correctly >&2
|
58
|
+
echo This environment variable is needed to run this program >&2
|
59
|
+
echo NB: JAVA_HOME should point to a JDK not a JRE >&2
|
60
|
+
goto error
|
61
|
+
|
62
|
+
:chkMHome
|
63
|
+
set "MAVEN_HOME=%~dp0.."
|
64
|
+
if not "%MAVEN_HOME%"=="" goto stripMHome
|
65
|
+
goto error
|
66
|
+
|
67
|
+
:stripMHome
|
68
|
+
if not "_%MAVEN_HOME:~-1%"=="_\" goto checkMCmd
|
69
|
+
set "MAVEN_HOME=%MAVEN_HOME:~0,-1%"
|
70
|
+
goto stripMHome
|
71
|
+
|
72
|
+
:checkMCmd
|
73
|
+
if exist "%MAVEN_HOME%\bin\mvn.cmd" goto init
|
74
|
+
goto error
|
75
|
+
@REM ==== END VALIDATION ====
|
76
|
+
|
77
|
+
:init
|
78
|
+
|
79
|
+
set MAVEN_CMD_LINE_ARGS=%*
|
80
|
+
|
81
|
+
@REM Find the project basedir, i.e., the directory that contains the folder ".mvn".
|
82
|
+
@REM Fallback to current working directory if not found.
|
83
|
+
|
84
|
+
set "MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%"
|
85
|
+
if not "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
|
86
|
+
|
87
|
+
set "EXEC_DIR=%CD%"
|
88
|
+
set "WDIR=%EXEC_DIR%"
|
89
|
+
|
90
|
+
@REM Look for the --file switch and start the search for the .mvn directory from the specified
|
91
|
+
@REM POM location, if supplied.
|
92
|
+
|
93
|
+
set FILE_ARG=
|
94
|
+
:arg_loop
|
95
|
+
if "%~1" == "-f" (
|
96
|
+
set "FILE_ARG=%~2"
|
97
|
+
shift
|
98
|
+
goto process_file_arg
|
99
|
+
)
|
100
|
+
if "%~1" == "--file" (
|
101
|
+
set "FILE_ARG=%~2"
|
102
|
+
shift
|
103
|
+
goto process_file_arg
|
104
|
+
)
|
105
|
+
@REM If none of the above, skip the argument
|
106
|
+
shift
|
107
|
+
if not "%~1" == "" (
|
108
|
+
goto arg_loop
|
109
|
+
) else (
|
110
|
+
goto findBaseDir
|
111
|
+
)
|
112
|
+
|
113
|
+
:process_file_arg
|
114
|
+
if "%FILE_ARG%" == "" (
|
115
|
+
goto findBaseDir
|
116
|
+
)
|
117
|
+
if not exist "%FILE_ARG%" (
|
118
|
+
echo POM file "%FILE_ARG%" specified the -f/--file command-line argument does not exist >&2
|
119
|
+
goto error
|
120
|
+
)
|
121
|
+
if exist "%FILE_ARG%\*" (
|
122
|
+
set "POM_DIR=%FILE_ARG%"
|
123
|
+
) else (
|
124
|
+
call :get_directory_from_file "%FILE_ARG%"
|
125
|
+
)
|
126
|
+
if not exist "%POM_DIR%" (
|
127
|
+
echo Directory "%POM_DIR%" extracted from the -f/--file command-line argument "%FILE_ARG%" does not exist >&2
|
128
|
+
goto error
|
129
|
+
)
|
130
|
+
set "WDIR=%POM_DIR%"
|
131
|
+
goto findBaseDir
|
132
|
+
|
133
|
+
:get_directory_from_file
|
134
|
+
set "POM_DIR=%~dp1"
|
135
|
+
:stripPomDir
|
136
|
+
if not "_%POM_DIR:~-1%"=="_\" goto pomDirStripped
|
137
|
+
set "POM_DIR=%POM_DIR:~0,-1%"
|
138
|
+
goto stripPomDir
|
139
|
+
:pomDirStripped
|
140
|
+
exit /b
|
141
|
+
|
142
|
+
:findBaseDir
|
143
|
+
cd /d "%WDIR%"
|
144
|
+
:findBaseDirLoop
|
145
|
+
if exist "%WDIR%\.mvn" goto baseDirFound
|
146
|
+
cd ..
|
147
|
+
IF "%WDIR%"=="%CD%" goto baseDirNotFound
|
148
|
+
set "WDIR=%CD%"
|
149
|
+
goto findBaseDirLoop
|
150
|
+
|
151
|
+
:baseDirFound
|
152
|
+
set "MAVEN_PROJECTBASEDIR=%WDIR%"
|
153
|
+
cd /d "%EXEC_DIR%"
|
154
|
+
goto endDetectBaseDir
|
155
|
+
|
156
|
+
:baseDirNotFound
|
157
|
+
if "_%EXEC_DIR:~-1%"=="_\" set "EXEC_DIR=%EXEC_DIR:~0,-1%"
|
158
|
+
set "MAVEN_PROJECTBASEDIR=%EXEC_DIR%"
|
159
|
+
cd "%EXEC_DIR%"
|
160
|
+
|
161
|
+
:endDetectBaseDir
|
162
|
+
|
163
|
+
set "jvmConfig=\.mvn\jvm.config"
|
164
|
+
if not exist "%MAVEN_PROJECTBASEDIR%%jvmConfig%" goto endReadAdditionalConfig
|
165
|
+
|
166
|
+
@setlocal EnableExtensions EnableDelayedExpansion
|
167
|
+
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
|
168
|
+
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
|
169
|
+
|
170
|
+
:endReadAdditionalConfig
|
171
|
+
|
172
|
+
for %%i in ("%MAVEN_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
|
173
|
+
set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
174
|
+
|
175
|
+
"%JAVACMD%" ^
|
176
|
+
%JVM_CONFIG_MAVEN_PROPS% ^
|
177
|
+
%MAVEN_OPTS% ^
|
178
|
+
%MAVEN_DEBUG_OPTS% ^
|
179
|
+
-classpath %CLASSWORLDS_JAR% ^
|
180
|
+
"-Dclassworlds.conf=%MAVEN_HOME%\bin\m2.conf" ^
|
181
|
+
"-Dmaven.home=%MAVEN_HOME%" ^
|
182
|
+
"-Dlibrary.jansi.path=%MAVEN_HOME%\lib\jansi-native" ^
|
183
|
+
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
|
184
|
+
%CLASSWORLDS_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
|
185
|
+
if ERRORLEVEL 1 goto error
|
186
|
+
goto end
|
187
|
+
|
188
|
+
:error
|
189
|
+
set ERROR_CODE=1
|
190
|
+
|
191
|
+
:end
|
192
|
+
@endlocal & set ERROR_CODE=%ERROR_CODE%
|
193
|
+
|
194
|
+
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
|
195
|
+
@REM check for post script, once with legacy .bat ending and once with .cmd ending
|
196
|
+
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
|
197
|
+
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
|
198
|
+
:skipRcPost
|
199
|
+
|
200
|
+
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
|
201
|
+
if "%MAVEN_BATCH_PAUSE%"=="on" pause
|
202
|
+
|
203
|
+
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
|
204
|
+
|
205
|
+
cmd /C exit /B %ERROR_CODE%
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
|
2
|
+
|
3
3
|
# Licensed to the Apache Software Foundation (ASF) under one
|
4
4
|
# or more contributor license agreements. See the NOTICE file
|
5
5
|
# distributed with this work for additional information
|
@@ -16,185 +16,19 @@
|
|
16
16
|
# KIND, either express or implied. See the License for the
|
17
17
|
# specific language governing permissions and limitations
|
18
18
|
# under the License.
|
19
|
-
# ----------------------------------------------------------------------------
|
20
19
|
|
21
|
-
#
|
22
|
-
#
|
20
|
+
# -----------------------------------------------------------------------------
|
21
|
+
# Apache Maven Debug Script
|
23
22
|
#
|
24
|
-
#
|
25
|
-
# ------------------
|
26
|
-
# JAVA_HOME - location of a JDK home dir
|
23
|
+
# Environment Variable Prerequisites
|
27
24
|
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# e.g. to debug Maven itself, use
|
33
|
-
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
34
|
-
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
35
|
-
# ----------------------------------------------------------------------------
|
25
|
+
# JAVA_HOME Must point at your Java Development Kit installation.
|
26
|
+
# MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
|
27
|
+
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
|
28
|
+
# -----------------------------------------------------------------------------
|
36
29
|
|
37
30
|
MAVEN_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
|
38
31
|
|
39
|
-
echo Preparing to
|
40
|
-
|
41
|
-
if [ -z "$MAVEN_SKIP_RC" ] ; then
|
42
|
-
|
43
|
-
if [ -f /etc/mavenrc ] ; then
|
44
|
-
. /etc/mavenrc
|
45
|
-
fi
|
46
|
-
|
47
|
-
if [ -f "$HOME/.mavenrc" ] ; then
|
48
|
-
. "$HOME/.mavenrc"
|
49
|
-
fi
|
50
|
-
|
51
|
-
fi
|
52
|
-
|
53
|
-
# OS specific support. $var _must_ be set to either true or false.
|
54
|
-
cygwin=false;
|
55
|
-
darwin=false;
|
56
|
-
mingw=false
|
57
|
-
case "`uname`" in
|
58
|
-
CYGWIN*) cygwin=true ;;
|
59
|
-
MINGW*) mingw=true;;
|
60
|
-
Darwin*) darwin=true
|
61
|
-
#
|
62
|
-
# Look for the Apple JDKs first to preserve the existing behaviour, and then look
|
63
|
-
# for the new JDKs provided by Oracle.
|
64
|
-
#
|
65
|
-
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then
|
66
|
-
#
|
67
|
-
# Apple JDKs
|
68
|
-
#
|
69
|
-
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
|
70
|
-
fi
|
71
|
-
|
72
|
-
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then
|
73
|
-
#
|
74
|
-
# Apple JDKs
|
75
|
-
#
|
76
|
-
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
|
77
|
-
fi
|
78
|
-
|
79
|
-
if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then
|
80
|
-
#
|
81
|
-
# Oracle JDKs
|
82
|
-
#
|
83
|
-
export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
|
84
|
-
fi
|
85
|
-
;;
|
86
|
-
esac
|
87
|
-
|
88
|
-
if [ -z "$JAVA_HOME" ] ; then
|
89
|
-
if [ -r /etc/gentoo-release ] ; then
|
90
|
-
JAVA_HOME=`java-config --jre-home`
|
91
|
-
fi
|
92
|
-
fi
|
93
|
-
|
94
|
-
if [ -z "$M2_HOME" ] ; then
|
95
|
-
## resolve links - $0 may be a link to maven's home
|
96
|
-
PRG="$0"
|
97
|
-
|
98
|
-
# need this for relative symlinks
|
99
|
-
while [ -h "$PRG" ] ; do
|
100
|
-
ls=`ls -ld "$PRG"`
|
101
|
-
link=`expr "$ls" : '.*-> \(.*\)$'`
|
102
|
-
if expr "$link" : '/.*' > /dev/null; then
|
103
|
-
PRG="$link"
|
104
|
-
else
|
105
|
-
PRG="`dirname "$PRG"`/$link"
|
106
|
-
fi
|
107
|
-
done
|
108
|
-
|
109
|
-
saveddir=`pwd`
|
110
|
-
|
111
|
-
M2_HOME=`dirname "$PRG"`/..
|
112
|
-
|
113
|
-
# make it fully qualified
|
114
|
-
M2_HOME=`cd "$M2_HOME" && pwd`
|
115
|
-
|
116
|
-
cd "$saveddir"
|
117
|
-
# echo Using m2 at $M2_HOME
|
118
|
-
fi
|
119
|
-
|
120
|
-
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
121
|
-
if $cygwin ; then
|
122
|
-
[ -n "$M2_HOME" ] &&
|
123
|
-
M2_HOME=`cygpath --unix "$M2_HOME"`
|
124
|
-
[ -n "$JAVA_HOME" ] &&
|
125
|
-
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
126
|
-
[ -n "$CLASSPATH" ] &&
|
127
|
-
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
128
|
-
fi
|
129
|
-
|
130
|
-
# For Migwn, ensure paths are in UNIX format before anything is touched
|
131
|
-
if $mingw ; then
|
132
|
-
[ -n "$M2_HOME" ] &&
|
133
|
-
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
134
|
-
[ -n "$JAVA_HOME" ] &&
|
135
|
-
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
136
|
-
# TODO classpath?
|
137
|
-
fi
|
138
|
-
|
139
|
-
if [ -z "$JAVA_HOME" ]; then
|
140
|
-
javaExecutable="`which javac`"
|
141
|
-
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
|
142
|
-
# readlink(1) is not available as standard on Solaris 10.
|
143
|
-
readLink=`which readlink`
|
144
|
-
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
|
145
|
-
javaExecutable="`readlink -f \"$javaExecutable\"`"
|
146
|
-
javaHome="`dirname \"$javaExecutable\"`"
|
147
|
-
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
|
148
|
-
JAVA_HOME="$javaHome"
|
149
|
-
export JAVA_HOME
|
150
|
-
fi
|
151
|
-
fi
|
152
|
-
fi
|
153
|
-
|
154
|
-
if [ -z "$JAVACMD" ] ; then
|
155
|
-
if [ -n "$JAVA_HOME" ] ; then
|
156
|
-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
157
|
-
# IBM's JDK on AIX uses strange locations for the executables
|
158
|
-
JAVACMD="$JAVA_HOME/jre/sh/java"
|
159
|
-
else
|
160
|
-
JAVACMD="$JAVA_HOME/bin/java"
|
161
|
-
fi
|
162
|
-
else
|
163
|
-
JAVACMD="`which java`"
|
164
|
-
fi
|
165
|
-
fi
|
166
|
-
|
167
|
-
if [ ! -x "$JAVACMD" ] ; then
|
168
|
-
echo "Error: JAVA_HOME is not defined correctly." >&2
|
169
|
-
echo " We cannot execute $JAVACMD" >&2
|
170
|
-
exit 1
|
171
|
-
fi
|
172
|
-
|
173
|
-
if [ -z "$JAVA_HOME" ] ; then
|
174
|
-
echo "Warning: JAVA_HOME environment variable is not set."
|
175
|
-
fi
|
176
|
-
|
177
|
-
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
178
|
-
|
179
|
-
# For Cygwin, switch paths to Windows format before running java
|
180
|
-
if $cygwin; then
|
181
|
-
[ -n "$M2_HOME" ] &&
|
182
|
-
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
183
|
-
[ -n "$JAVA_HOME" ] &&
|
184
|
-
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
185
|
-
[ -n "$CLASSPATH" ] &&
|
186
|
-
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
187
|
-
fi
|
188
|
-
|
189
|
-
# Provide a "standardized" way to retrieve the CLI args that will
|
190
|
-
# work with both Windows and non-Windows executions.
|
191
|
-
MAVEN_CMD_LINE_ARGS="$@"
|
192
|
-
export MAVEN_CMD_LINE_ARGS
|
32
|
+
echo Preparing to execute Maven in debug mode
|
193
33
|
|
194
|
-
|
195
|
-
$MAVEN_OPTS \
|
196
|
-
$MAVEN_DEBUG_OPTS \
|
197
|
-
-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
|
198
|
-
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
|
199
|
-
"-Dmaven.home=${M2_HOME}" \
|
200
|
-
${CLASSWORLDS_LAUNCHER} "$@"
|
34
|
+
env MAVEN_OPTS="$MAVEN_OPTS" MAVEN_DEBUG_OPTS="$MAVEN_DEBUG_OPTS" "`dirname "$0"`/mvn" "$@"
|
@@ -0,0 +1,33 @@
|
|
1
|
+
@REM Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
@REM or more contributor license agreements. See the NOTICE file
|
3
|
+
@REM distributed with this work for additional information
|
4
|
+
@REM regarding copyright ownership. The ASF licenses this file
|
5
|
+
@REM to you under the Apache License, Version 2.0 (the
|
6
|
+
@REM "License"); you may not use this file except in compliance
|
7
|
+
@REM with the License. You may obtain a copy of the License at
|
8
|
+
@REM
|
9
|
+
@REM http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
@REM
|
11
|
+
@REM Unless required by applicable law or agreed to in writing,
|
12
|
+
@REM software distributed under the License is distributed on an
|
13
|
+
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
@REM KIND, either express or implied. See the License for the
|
15
|
+
@REM specific language governing permissions and limitations
|
16
|
+
@REM under the License.
|
17
|
+
|
18
|
+
@REM -----------------------------------------------------------------------------
|
19
|
+
@REM Apache Maven Debug Script
|
20
|
+
@REM
|
21
|
+
@REM Environment Variable Prerequisites
|
22
|
+
@REM
|
23
|
+
@REM JAVA_HOME Must point at your Java Development Kit installation.
|
24
|
+
@REM MAVEN_BATCH_ECHO (Optional) Set to 'on' to enable the echoing of the batch commands.
|
25
|
+
@REM MAVEN_BATCH_PAUSE (Optional) set to 'on' to wait for a key stroke before ending.
|
26
|
+
@REM MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
|
27
|
+
@REM MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
|
28
|
+
@REM -----------------------------------------------------------------------------
|
29
|
+
|
30
|
+
@setlocal
|
31
|
+
@set MAVEN_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
32
|
+
|
33
|
+
@call "%~dp0"mvn.cmd %*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
|
2
|
+
|
3
3
|
# Licensed to the Apache Software Foundation (ASF) under one
|
4
4
|
# or more contributor license agreements. See the NOTICE file
|
5
5
|
# distributed with this work for additional information
|
@@ -16,192 +16,20 @@
|
|
16
16
|
# KIND, either express or implied. See the License for the
|
17
17
|
# specific language governing permissions and limitations
|
18
18
|
# under the License.
|
19
|
-
# ----------------------------------------------------------------------------
|
20
19
|
|
21
|
-
#
|
22
|
-
#
|
20
|
+
# -----------------------------------------------------------------------------
|
21
|
+
# Apache Maven YourKit Profiler Startup Script
|
23
22
|
#
|
24
|
-
#
|
25
|
-
# ------------------
|
26
|
-
# JAVA_HOME - location of a JDK home dir
|
23
|
+
# Environment Variable Prerequisites
|
27
24
|
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# e.g. to debug Maven itself, use
|
33
|
-
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
34
|
-
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
35
|
-
# ----------------------------------------------------------------------------
|
36
|
-
|
37
|
-
QUOTED_ARGS=""
|
38
|
-
while [ "$1" != "" ] ; do
|
39
|
-
|
40
|
-
QUOTED_ARGS="$QUOTED_ARGS \"$1\""
|
41
|
-
shift
|
42
|
-
|
43
|
-
done
|
44
|
-
|
45
|
-
if [ -z "$MAVEN_SKIP_RC" ] ; then
|
46
|
-
|
47
|
-
if [ -f /etc/mavenrc ] ; then
|
48
|
-
. /etc/mavenrc
|
49
|
-
fi
|
50
|
-
|
51
|
-
if [ -f "$HOME/.mavenrc" ] ; then
|
52
|
-
. "$HOME/.mavenrc"
|
53
|
-
fi
|
54
|
-
|
55
|
-
fi
|
56
|
-
|
57
|
-
# OS specific support. $var _must_ be set to either true or false.
|
58
|
-
cygwin=false;
|
59
|
-
darwin=false;
|
60
|
-
mingw=false
|
61
|
-
case "`uname`" in
|
62
|
-
CYGWIN*) cygwin=true ;;
|
63
|
-
MINGW*) mingw=true;;
|
64
|
-
Darwin*) darwin=true
|
65
|
-
#
|
66
|
-
# Look for the Apple JDKs first to preserve the existing behaviour, and then look
|
67
|
-
# for the new JDKs provided by Oracle.
|
68
|
-
#
|
69
|
-
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then
|
70
|
-
#
|
71
|
-
# Apple JDKs
|
72
|
-
#
|
73
|
-
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
|
74
|
-
fi
|
75
|
-
|
76
|
-
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then
|
77
|
-
#
|
78
|
-
# Apple JDKs
|
79
|
-
#
|
80
|
-
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
|
81
|
-
fi
|
82
|
-
|
83
|
-
if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then
|
84
|
-
#
|
85
|
-
# Oracle JDKs
|
86
|
-
#
|
87
|
-
export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
|
88
|
-
fi
|
89
|
-
;;
|
90
|
-
esac
|
91
|
-
|
92
|
-
if [ -z "$JAVA_HOME" ] ; then
|
93
|
-
if [ -r /etc/gentoo-release ] ; then
|
94
|
-
JAVA_HOME=`java-config --jre-home`
|
95
|
-
fi
|
96
|
-
fi
|
97
|
-
|
98
|
-
if [ -z "$M2_HOME" ] ; then
|
99
|
-
## resolve links - $0 may be a link to maven's home
|
100
|
-
PRG="$0"
|
101
|
-
|
102
|
-
# need this for relative symlinks
|
103
|
-
while [ -h "$PRG" ] ; do
|
104
|
-
ls=`ls -ld "$PRG"`
|
105
|
-
link=`expr "$ls" : '.*-> \(.*\)$'`
|
106
|
-
if expr "$link" : '/.*' > /dev/null; then
|
107
|
-
PRG="$link"
|
108
|
-
else
|
109
|
-
PRG="`dirname "$PRG"`/$link"
|
110
|
-
fi
|
111
|
-
done
|
112
|
-
|
113
|
-
saveddir=`pwd`
|
114
|
-
|
115
|
-
M2_HOME=`dirname "$PRG"`/..
|
116
|
-
|
117
|
-
# make it fully qualified
|
118
|
-
M2_HOME=`cd "$M2_HOME" && pwd`
|
119
|
-
|
120
|
-
cd "$saveddir"
|
121
|
-
# echo Using m2 at $M2_HOME
|
122
|
-
fi
|
123
|
-
|
124
|
-
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
125
|
-
if $cygwin ; then
|
126
|
-
[ -n "$M2_HOME" ] &&
|
127
|
-
M2_HOME=`cygpath --unix "$M2_HOME"`
|
128
|
-
[ -n "$JAVA_HOME" ] &&
|
129
|
-
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
130
|
-
[ -n "$CLASSPATH" ] &&
|
131
|
-
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
132
|
-
fi
|
133
|
-
|
134
|
-
# For Migwn, ensure paths are in UNIX format before anything is touched
|
135
|
-
if $mingw ; then
|
136
|
-
[ -n "$M2_HOME" ] &&
|
137
|
-
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
138
|
-
[ -n "$JAVA_HOME" ] &&
|
139
|
-
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
140
|
-
# TODO classpath?
|
141
|
-
fi
|
142
|
-
|
143
|
-
if [ -z "$JAVA_HOME" ]; then
|
144
|
-
javaExecutable="`which javac`"
|
145
|
-
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
|
146
|
-
# readlink(1) is not available as standard on Solaris 10.
|
147
|
-
readLink=`which readlink`
|
148
|
-
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
|
149
|
-
javaExecutable="`readlink -f \"$javaExecutable\"`"
|
150
|
-
javaHome="`dirname \"$javaExecutable\"`"
|
151
|
-
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
|
152
|
-
JAVA_HOME="$javaHome"
|
153
|
-
export JAVA_HOME
|
154
|
-
fi
|
155
|
-
fi
|
156
|
-
fi
|
157
|
-
|
158
|
-
if [ -z "$JAVACMD" ] ; then
|
159
|
-
if [ -n "$JAVA_HOME" ] ; then
|
160
|
-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
161
|
-
# IBM's JDK on AIX uses strange locations for the executables
|
162
|
-
JAVACMD="$JAVA_HOME/jre/sh/java"
|
163
|
-
else
|
164
|
-
JAVACMD="$JAVA_HOME/bin/java"
|
165
|
-
fi
|
166
|
-
else
|
167
|
-
JAVACMD="`which java`"
|
168
|
-
fi
|
169
|
-
fi
|
170
|
-
|
171
|
-
if [ ! -x "$JAVACMD" ] ; then
|
172
|
-
echo "Error: JAVA_HOME is not defined correctly." >&2
|
173
|
-
echo " We cannot execute $JAVACMD" >&2
|
174
|
-
exit 1
|
175
|
-
fi
|
176
|
-
|
177
|
-
if [ -z "$JAVA_HOME" ] ; then
|
178
|
-
echo "Warning: JAVA_HOME environment variable is not set."
|
179
|
-
fi
|
180
|
-
|
181
|
-
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
182
|
-
|
183
|
-
# For Cygwin, switch paths to Windows format before running java
|
184
|
-
if $cygwin; then
|
185
|
-
[ -n "$M2_HOME" ] &&
|
186
|
-
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
187
|
-
[ -n "$JAVA_HOME" ] &&
|
188
|
-
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
189
|
-
[ -n "$CLASSPATH" ] &&
|
190
|
-
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
191
|
-
fi
|
25
|
+
# JAVA_HOME Must point at your Java Development Kit installation.
|
26
|
+
# MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
|
27
|
+
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
|
28
|
+
# -----------------------------------------------------------------------------
|
192
29
|
|
193
30
|
if [ ! -f "$YJPLIB" ]; then
|
194
31
|
echo "Error: Unable to autodetect the YJP library location. Please set YJPLIB variable" >&2
|
195
32
|
exit 1
|
196
33
|
fi
|
197
34
|
|
198
|
-
MAVEN_OPTS="-agentpath:$YJPLIB=onexit=snapshot,onexit=memory,tracing,onlylocal $MAVEN_OPTS"
|
199
|
-
|
200
|
-
exec "$JAVACMD" \
|
201
|
-
$MAVEN_OPTS \
|
202
|
-
-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
|
203
|
-
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
|
204
|
-
"-Dmaven.home=${M2_HOME}" \
|
205
|
-
${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS
|
206
|
-
|
207
|
-
|
35
|
+
env MAVEN_OPTS="-agentpath:$YJPLIB=onexit=snapshot,onexit=memory,tracing,onlylocal $MAVEN_OPTS" "`dirname "$0"`/mvn" "$@"
|