Commit 326ade4
committed
Empty classpath improvements
Previously, when there were no additional libraries, the classpath
would render as '-cp '. This was a problem when that argument was
followed by something else. Applications would end up with something
like '-cp app.groovy' which was incorrect. This change updates the
as_classpath() method to return nil if there is are no additional
libraries ensuring that the '-cp' argument is never added to the
command.1 parent 0eeaace commit 326ade4
File tree
2 files changed
+6
-1
lines changed- lib/java_buildpack/component
- spec/java_buildpack/component
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
0 commit comments