Skip to content

Commit 9c20726

Browse files
committed
Allow spaces in the project path (fixes #6)
1 parent 81459fb commit 9c20726

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/CSharp/Antlr4BuildTasks/Antlr4ClassGenerationTaskInternal.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ public bool Execute()
243243

244244
List<string> arguments = new List<string>();
245245
arguments.Add("-cp");
246-
arguments.Add(ToolPath);
246+
arguments.Add('"' + ToolPath + '"');
247247
arguments.Add("org.antlr.v4.CSharpTool");
248248

249249
arguments.Add("-o");
250-
arguments.Add(OutputPath);
250+
arguments.Add('"' + OutputPath + '"');
251251

252252
if (GenerateListener)
253253
arguments.Add("-listener");

0 commit comments

Comments
 (0)