File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compile/src/main/java/org/seasar/doma/gradle/compile Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,13 @@ void configure(SourceSet sourceSet) {
2525 }
2626
2727 private void configureJavaCompile (SourceSet sourceSet , JavaCompile javaCompile ) {
28+ var resourceDirs = project .files (sourceSet .getResources ().getSrcDirs ());
2829 javaCompile .doFirst (
2930 __ -> {
30- var resourceDirs = sourceSet .getResources ().getSrcDirs ();
3131 var options = javaCompile .getOptions ();
32- var newSourcepath = project .files (resourceDirs );
3332 var currentSourcepath = options .getSourcepath ();
3433 var sourcepath =
35- currentSourcepath == null ? newSourcepath : currentSourcepath .plus (newSourcepath );
34+ currentSourcepath == null ? resourceDirs : currentSourcepath .plus (resourceDirs );
3635 options .setSourcepath (sourcepath );
3736 options .getCompilerArgs ().add (PARAMETERS_COMPILER_ARG );
3837 });
You can’t perform that action at this time.
0 commit comments