Skip to content

Commit cdee85b

Browse files
committed
Integrated buildpack
Previously, the buildpack was split across multiple repositories. As this was a premature optimization, the code has been combined into a single repository for now. This change also adds a default behavior of executing a Java application based on the Main-Class value in its manifest. This is not intended to be the behavior long-term and is only there to facilitate current testing. [#49321577]
1 parent eadd0bb commit cdee85b

28 files changed

Lines changed: 505 additions & 261 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.yardoc
2-
Gemfile.lock
32
coverage
43
doc
54
pkg

Gemfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
source 'https://rubygems.org'
22

3-
gemspec
3+
group :development do
4+
gem 'rake'
5+
gem 'redcarpet'
6+
gem 'yard'
7+
end
8+
9+
group :development, :test do
10+
gem 'rspec'
11+
gem 'simplecov'
12+
end

Gemfile.lock

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
diff-lcs (1.2.4)
5+
multi_json (1.7.3)
6+
rake (10.0.4)
7+
redcarpet (2.2.2)
8+
rspec (2.13.0)
9+
rspec-core (~> 2.13.0)
10+
rspec-expectations (~> 2.13.0)
11+
rspec-mocks (~> 2.13.0)
12+
rspec-core (2.13.1)
13+
rspec-expectations (2.13.0)
14+
diff-lcs (>= 1.1.3, < 2.0)
15+
rspec-mocks (2.13.1)
16+
simplecov (0.7.1)
17+
multi_json (~> 1.0)
18+
simplecov-html (~> 0.7.1)
19+
simplecov-html (0.7.1)
20+
yard (0.8.6.1)
21+
22+
PLATFORMS
23+
ruby
24+
25+
DEPENDENCIES
26+
rake
27+
redcarpet
28+
rspec
29+
simplecov
30+
yard

Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
require 'bundler/gem_tasks'
17-
1816
require 'rspec/core/rake_task'
1917
RSpec::Core::RakeTask.new
2018

bin/compile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
$stdout.sync = true
1818
$:.unshift File.expand_path("../../lib", __FILE__)
1919

20-
require 'java_buildpack'
20+
require 'java_buildpack/compile'
2121

2222
build_dir = ARGV[0]
2323
cache_dir = ARGV[1]
2424

2525
begin
2626
JavaBuildpack::Compile.new(build_dir, cache_dir).run
27-
rescue => e
28-
abort e.message
27+
# rescue => e
28+
# abort e.message
2929
end
3030

bin/detect

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
$stdout.sync = true
1818
$:.unshift File.expand_path("../../lib", __FILE__)
1919

20-
require 'java_buildpack'
20+
require 'java_buildpack/detect'
2121

2222
build_dir = ARGV[0]
2323

@@ -28,7 +28,7 @@ begin
2828
else
2929
abort
3030
end
31-
rescue => e
32-
abort e.message
31+
# rescue => e
32+
# abort e.message
3333
end
3434

bin/release

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
$stdout.sync = true
1818
$:.unshift File.expand_path("../../lib", __FILE__)
1919

20-
require 'java_buildpack'
20+
require 'java_buildpack/release'
2121

2222
build_dir = ARGV[0]
2323

2424
begin
2525
puts JavaBuildpack::Release.new(build_dir).run
26-
rescue => e
27-
abort e.message
26+
# rescue => e
27+
# abort e.message
2828
end
2929

java-buildpack.gemspec

Lines changed: 0 additions & 41 deletions
This file was deleted.

lib/java-buildpack/compile.rb

Lines changed: 0 additions & 36 deletions
This file was deleted.

lib/java-buildpack/release.rb

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)