We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c7e9b commit b14da97Copy full SHA for b14da97
lib/grammars.coffee
@@ -344,12 +344,13 @@ module.exports =
344
args: (context) ->
345
className = GrammarUtils.Java.getClassName context
346
classPackages = GrammarUtils.Java.getClassPackage context
347
+ sourcePath = GrammarUtils.Java.getProjectPath context
348
349
args = []
350
if GrammarUtils.OperatingSystem.isWindows()
351
args = ["/c javac -Xlint #{context.filename} && java #{className}"]
352
else
- args = ['-c', "javac -d /tmp '#{context.filepath}' && java -cp /tmp #{classPackages}#{className}"]
353
+ args = ['-c', "javac -sourcepath #{sourcePath} -d /tmp '#{context.filepath}' && java -cp /tmp #{classPackages}#{className}"]
354
355
return args
356
0 commit comments