Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 8a77a9c

Browse files
Merge pull request #51 from alubbe/empty-jar-path
Do not add --jar if JAR_PATH is empty
2 parents e240743 + 54b03e6 commit 8a77a9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/node/closure-compiler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ var contribPath = path.dirname(compilerPath) + '/contrib';
3636
function Compiler(args, extraCommandArgs) {
3737
this.commandArguments = (extraCommandArgs || []).slice();
3838

39-
this.commandArguments.push('-jar', Compiler.JAR_PATH);
39+
if (Compiler.JAR_PATH) {
40+
this.commandArguments.push('-jar', Compiler.JAR_PATH);
41+
}
4042

4143
if (Array.isArray(args)) {
4244
this.commandArguments = this.commandArguments.concat(args.slice());

0 commit comments

Comments
 (0)