|
272 | 272 | cd $working_dir
|
273 | 273 |
|
274 | 274 |
|
275 |
| -# Use Bazel's singlejar to re-jar it which normalizes timestamps as Jan 1 2010 |
276 |
| -# note that it does not use the manifest from the jar file, which is a bummer |
277 |
| -# so we have to respecify the manifest data |
278 |
| -# TODO we should rewrite write_manfiest.sh to produce inputs compatible for singlejar (Issue #27) |
279 |
| -singlejar_options="--normalize --dont_change_compression" # add in --verbose for more details from command |
280 |
| -singlejar_mainclass="--main_class org.springframework.boot.loader.JarLauncher" |
281 |
| -$singlejar_cmd $singlejar_options $singlejar_mainclass \ |
282 |
| - --deploy_manifest_lines "Start-Class: $mainclass" \ |
283 |
| - --sources $raw_output_jar \ |
284 |
| - --output $ruledir/$outputjar 2>&1 | tee -a $debugfile |
| 275 | +( |
| 276 | + # Use Bazel's singlejar to re-jar it which normalizes timestamps as Jan 1 2010 |
| 277 | + # note that it does not use the manifest from the jar file, which is a bummer |
| 278 | + # so we have to respecify the manifest data |
| 279 | + # TODO we should rewrite write_manfiest.sh to produce inputs compatible for singlejar (Issue #27) |
| 280 | + singlejar_options="--normalize --dont_change_compression" # add in --verbose for more details from command |
| 281 | + singlejar_mainclass="--main_class org.springframework.boot.loader.JarLauncher" |
| 282 | + # #205: Execute the singlejar command from the original ruledir, so the build-data.properties file |
| 283 | + # contains a deterministic, relative path for 'build.target'. |
| 284 | + cd "$ruledir" |
| 285 | + $singlejar_cmd $singlejar_options $singlejar_mainclass \ |
| 286 | + --deploy_manifest_lines "Start-Class: $mainclass" \ |
| 287 | + --sources $raw_output_jar \ |
| 288 | + --output "$outputjar" 2>&1 | tee -a $debugfile |
| 289 | +) |
285 | 290 |
|
286 | 291 | if [ $? -ne 0 ]; then
|
287 | 292 | echo "ERROR: Failed creating the JAR file $working_dir." | tee -a $debugfile
|
|
0 commit comments