File tree 2 files changed +17
-3
lines changed
lib/java_buildpack/framework
spec/java_buildpack/framework
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ def release
62
62
63
63
if @droplet . java_home . java_9_or_later?
64
64
@droplet . root_libraries << luna_provider_jar
65
+
66
+ @droplet . environment_variables . add_environment_variable (
67
+ 'LD_LIBRARY_PATH' , "$LD_LIBRARY_PATH:#{ ld_lib_path } "
68
+ )
65
69
else
66
70
@droplet . extension_directories << ext_dir
67
71
end
@@ -128,6 +132,10 @@ def lib_cklog
128
132
@droplet . sandbox + 'libs/64/libcklog2.so'
129
133
end
130
134
135
+ def ld_lib_path
136
+ qualify_path ( @droplet . sandbox , @droplet . root ) + '/jsp/64/'
137
+ end
138
+
131
139
def setup_ext_dir
132
140
FileUtils . mkdir ext_dir
133
141
[ luna_provider_jar , luna_api_so ] . each do |file |
Original file line number Diff line number Diff line change 219
219
delegate
220
220
end
221
221
222
- it 'adds JAR to classpath during compile in Java 9' ,
222
+ it 'adds JAR to classpath during compile in Java 9+ ' ,
223
223
cache_fixture : 'stub-luna-security-provider.tar' do
224
224
225
225
component . compile
226
226
227
227
expect ( root_libraries ) . to include ( droplet . sandbox + 'jsp/LunaProvider.jar' )
228
228
end
229
229
230
- it 'adds JAR to classpath during release in Java 9' do
230
+ it 'adds JAR to classpath during release in Java 9+ ' do
231
231
component . release
232
232
233
233
expect ( root_libraries ) . to include ( droplet . sandbox + 'jsp/LunaProvider.jar' )
234
234
end
235
235
236
- it 'adds does not add extension directory in Java 9' do
236
+ it 'does not add extension directory in Java 9+ ' do
237
237
component . release
238
238
239
239
expect ( extension_directories ) . not_to include ( droplet . sandbox + 'ext' )
240
240
end
241
241
242
+ it 'updates environment variables for Java 9+' do
243
+ component . release
244
+ expect ( environment_variables ) . to include (
245
+ 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/.java-buildpack/luna_security_provider/jsp/64/'
246
+ )
247
+ end
242
248
end
243
249
244
250
context do
You can’t perform that action at this time.
0 commit comments