-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from ckrailo/issue_62
Build should skip compilation if config.source.java doesn't exist.
- Loading branch information
Showing
6 changed files
with
56 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# encoding: utf-8 | ||
|
||
Doubleshot.new do |config| | ||
|
||
config.project = "call_java" | ||
config.version = "0.1.0" | ||
|
||
config.jar "com.fasterxml.jackson.core:jackson-core:2.0.6" | ||
|
||
config.gemspec do |spec| | ||
spec.summary = "An example using Ruby to call a Java library." | ||
spec.description = <<-DESCRIPTION | ||
This example shows that you can use Doubleshot for managing | ||
your Java dependencies, even if you don't have any Java code | ||
of your own to compile. | ||
DESCRIPTION | ||
|
||
spec.homepage = "https://github.com/sam/doubleshot/blob/master/examples/call_java" | ||
spec.author = "Sam Smoot" | ||
spec.email = "ssmoot@gmail.com" | ||
spec.license = "MIT-LICENSE" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
JARS: | ||
- com.fasterxml.jackson.core:jackson-core:jar:2.0.6 | ||
GEMS: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env jruby | ||
|
||
require "doubleshot/setup" | ||
|
||
java_import com.fasterxml.jackson.core.JsonFactory | ||
|
||
puts com.fasterxml.jackson.core.JsonFactory.new.inspect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters