(argv)
| 79 | ]; |
| 80 | |
| 81 | function parseArgs(argv) { |
| 82 | if (argv.length === 0) { |
| 83 | return DEFAULT_BUNDLES; |
| 84 | } |
| 85 | return argv.map((arg, idx) => ({ |
| 86 | name: path.basename(arg).replace(/\.(zip|war|jar)$/i, '') || `bundle-${idx}`, |
| 87 | bundle: path.resolve(arg) |
| 88 | })); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Materialise a bundle into a freshly-created directory so the harness |