summaryrefslogtreecommitdiff
path: root/lib/rake/javaextensiontask.rb
Commit message (Collapse)AuthorAgeFilesLines
* Don't use --release flag on Java 8 (#213)Pavel Rosický2023-03-301-1/+7
| | | | | | | | | | | | | | | | | this allows using ``` Rake::JavaExtensionTask.new("name", gemspec) do |ext| ext.release = '8' end ``` on Java 8 (for building the gem), because the flag is available since Java 9, see https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html this flag is for backward compatibility, so it's safe to just skip it if we can't use it. relates to https://github.com/puma/puma/pull/3109 https://github.com/socketry/nio4r/pull/292
* Support --release option to build JRuby extension for older platforms (#201)Satoshi Tagomori2022-01-221-2/+13
|
* Reduce duplicated binary(platf)Sutou Kouhei2022-01-041-5/+7
|
* Fix binary paths for staging and clobber (#197)konsolebox2022-01-041-6/+12
|
* Avoid warning: assigned but unused variable - e (#185)Olle Jonsson2021-01-291-1/+1
|
* Default to 1.7-level bytecode in Java build (#172)Charles Oliver Nutter2020-07-091-2/+2
|
* Fix typosSutou Kouhei2019-12-251-2/+2
| | | | | | | | GitHub: fix #163 TODO: We should add an example for command line. Reported by Kai Kuchenbecker. Thanks!!!
* java: use command line array style instead of stringSutou Kouhei2019-10-211-22/+37
|
* Make lint options customizable (#158)Stephen George2019-10-211-1/+16
| | | | | | | | | | | | | | | | | | * Make customizable compiler Xlint option for JRuby native extension * [CS] restructure and fix indentation of (defaults) spec * Add specs for lint_option * [DOC] CHANGELOG: stub changelog entry for the next release * [DOC] CHANGELOG: Make customizable compiler Xlint option for JRuby native extension * Use "-Xlint" option for JRuby native extension by default. `javac -help -X` > -Xlint Enable recommended warnings
* Use the same order as definitionsSutou Kouhei2019-09-201-2/+2
|
* Add the -encoding option optionally to java compiler (#157)Tiago Dias2019-09-201-1/+11
|
* Add missing parenthesisKouhei Sutou2019-01-041-3/+3
|
* Fix caseKouhei Sutou2019-01-041-1/+1
|
* Raise error with proper messagePrashant Vithani2019-01-031-9/+17
| | | | Add comments explaining each condition.
* Fix cross-platform compilation for Java extensionsPrashant Vithani2019-01-021-1/+14
| | | | | | | | | | Using `libdir` provided by `RbConfig` to compile java extension from MRI breaks as it can't find `jruby.jar` under `lib` directory. Added a check on file existence if the path is taken from RbConfig and if it doesn't exist, check for the path which is set in environment JRUBY_HOME to find correct `jruby.jar`. Raise the error to abort compilation if `jruby.jar` is not found.
* Use require at top levelKouhei Sutou2018-08-291-1/+2
|
* Merge pull request #147 from prashantvithani/fix-classpathKouhei Sutou2018-08-291-4/+6
|\ | | | | | | | | Use 'libdir' of rbconfig to get jruby classpath Patch by Prashant Vithani. Thanks!!!
| * Remove redundant check as it is always presentPrashant Vithani2018-08-281-2/+1
| |
| * Use 'libdir' of rbconfig to get jruby classpathPrashant Vithani2018-08-281-4/+7
| |
* | Update source & target version defaults to 6Prashant Vithani2018-08-281-2/+2
|/ | | | Source & Target version 5 are no longer supported for java8 and later. refer https://github.com/ruby-concurrency/concurrent-ruby/issues/747#issuecomment-416230078
* Remove needless shebangsKouhei Sutou2015-03-161-2/+0
|
* Emit JRuby cross-compile warnings only when actually doing cross-compiles.John Firebaugh2011-08-061-9/+9
|
* Use Gem::PackageTask consistently also on JavaExtensionTaskv0.7.9Luis Lavena2011-06-081-3/+4
|
* Use FileUtils#install instead of cp. Closes GH-33Luis Lavena2011-04-221-1/+1
|
* Fix handling of jar command line argumentsAlex Coles2009-12-071-1/+12
| | | | | | | | | | | | | * Pass explicit list of .class files, not wildcard. * Because jar output directory is same as directory containing .class files, it appeared that the jar command line tool was trying to recursively jar itself. * Handle case where $ in .class file names (seen with use of inner classes, etc.) was being expanded out on *NIX systems. * Change feature to test for the above. * Thanks to Luis for helping work through this and ensuring compatibility with both *NIX and Windows systems. Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
* Allow source and target versions to be specifiedAlex Coles2009-12-071-1/+9
| | | | | | | * Many additional options can be specified for javac, but this won't be implemented for this version of rake-compiler. Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
* Code cleanup, provide accessor for debugAlex Coles2009-12-071-11/+5
| | | | Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
* Make Java class path work on non-JRuby.Luis Lavena2009-12-071-1/+3
|
* Warn only once.Luis Lavena2009-12-061-1/+1
| | | | | Reduce to only one the display of warnings about usage of ExtensionTask or JavaExtensionTask in mixed environments.
* Minor corrections to require definitionsLuis Lavena2009-12-061-2/+2
| | | | | File.expand_path is not recommended on 1.9, stick to plain require should work.
* Manual integration of JRuby support, by Alex ColesAlex Coles2009-12-061-0/+210
JRuby support created by Alex Coles. Merge done manually to avoid excesive cherry-picking