Skip to content

Commit 44a76f6

Browse files
tlinkowskipaulbakker
authored andcommitted
fixed a regression in TaskOption (spaces should be allowed in compile/jvm arg values)
1 parent 4014f02 commit 44a76f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/javamodularity/moduleplugin/internal/TaskOption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private void validate() {
2828
if (!flag.startsWith("--")) {
2929
throw new IllegalArgumentException("Invalid flag: " + flag);
3030
}
31-
if (value.isBlank() || value.contains(" ")) {
31+
if (value.isBlank()) {
3232
throw new IllegalArgumentException("Invalid value: " + value);
3333
}
3434
}

src/test/java/org/javamodularity/moduleplugin/tasks/CompileJavaTaskMutatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void modularizeJavaCompileTask() {
2323
project.getPlugins().apply("java");
2424
JavaCompile compileJava = (JavaCompile) project.getTasks().getByName(JavaPlugin.COMPILE_JAVA_TASK_NAME);
2525

26-
FileCollection classpath = project.files("greeter.api/src/main/java"); // we need anything on classpath
26+
FileCollection classpath = project.files("dummy dir"); // we need anything on classpath
2727
compileJava.setClasspath(classpath);
2828

2929
CompileModuleOptions moduleOptions = compileJava.getExtensions()

0 commit comments

Comments
 (0)