Skip to content

Commit d82fe0d

Browse files
committed
Revert "Rewrites buildpack entrypoints to install Ruby before executing"
This reverts commit 5c0a32d.
1 parent 6cd50d3 commit d82fe0d

File tree

8 files changed

+121
-183
lines changed

8 files changed

+121
-183
lines changed

bin/compile

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/compile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Cloud Foundry Java Buildpack
5+
# Copyright 2013-2020 the original author or authors.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
$stdout.sync = true
20+
$stderr.sync = true
21+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
22+
23+
require 'java_buildpack/buildpack'
24+
25+
app_dir = ARGV[0]
26+
27+
JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Compile failed with exception %s', &:compile)

bin/detect

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/detect

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Cloud Foundry Java Buildpack
5+
# Copyright 2013-2020 the original author or authors.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
$stdout.sync = true
20+
$stderr.sync = true
21+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
22+
23+
require 'java_buildpack/buildpack'
24+
25+
app_dir = ARGV[0]
26+
27+
components = JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Detect failed with exception %s',
28+
&:detect).compact
29+
30+
if components.empty?
31+
abort
32+
else
33+
str = components.join(' ')
34+
puts str.length > 255 ? str.slice(0..251) + '...' : str
35+
end

bin/finalize

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/finalize

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Cloud Foundry Java Buildpack
5+
# Copyright 2013-2020 the original author or authors.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
$stdout.sync = true
20+
$stderr.sync = true
21+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
22+
23+
require 'java_buildpack/buildpack'
24+
25+
app_dir = ARGV[0]
26+
deps_dir = ARGV[2]
27+
index = ARGV[3]
28+
29+
JavaBuildpack::Buildpack.with_buildpack(app_dir, deps_dir, index, 'Finalize failed with exception %s', &:compile)

bin/release

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/release

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Cloud Foundry Java Buildpack
5+
# Copyright 2013-2020 the original author or authors.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
$stdout.sync = true
20+
$stderr.sync = true
21+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
22+
23+
require 'java_buildpack/buildpack'
24+
25+
app_dir = ARGV[0]
26+
27+
output = JavaBuildpack::Buildpack.with_buildpack(app_dir, nil, nil, 'Release failed with exception %s', &:release)
28+
29+
puts output

bin/ruby-run

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

bin/run

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

0 commit comments

Comments
 (0)