[jira] [Commented] (LUCENE-10327) gradle emits an empty sourcepath for forked javac and breaks compilation

2021-12-19 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-10327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462148#comment-17462148
 ] 

ASF subversion and git services commented on LUCENE-10327:
--

Commit 70b4239fbd99db6c42c269100610f3b9a5acde63 in lucene's branch 
refs/heads/branch_9x from Dawid Weiss
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=70b4239 ]

LUCENE-10327: workaround for gradle emitting empty sourcepath.


> gradle emits an empty sourcepath for forked javac and breaks compilation
> 
>
> Key: LUCENE-10327
> URL: https://issues.apache.org/jira/browse/LUCENE-10327
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Dawid Weiss
>Priority: Blocker
>
> {code}
> gradlew -p lucene/core compileJava -Pruntime.java.home=...
> cat lucene/core/build/tmp/compileJava/java-compiler-args.txt 
> ...
> -sourcepath
> ""
> ...
> {code}
> We have to get rid of sourcepath here. I don't know how. Looks like a gradle 
> bug - it would work with gradle's "module support" enabled because I see 
> switches in the code that set the sourcepath correctly but doesn't work 
> otherwise.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-10327) gradle emits an empty sourcepath for forked javac and breaks compilation

2021-12-18 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-10327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462096#comment-17462096
 ] 

ASF subversion and git services commented on LUCENE-10327:
--

Commit 5512786dd9679fd3322850fcda63795be8f2c21d in lucene's branch 
refs/heads/main from Dawid Weiss
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=5512786 ]

LUCENE-10327: workaround for gradle emitting empty sourcepath.


> gradle emits an empty sourcepath for forked javac and breaks compilation
> 
>
> Key: LUCENE-10327
> URL: https://issues.apache.org/jira/browse/LUCENE-10327
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Dawid Weiss
>Priority: Blocker
>
> {code}
> gradlew -p lucene/core compileJava -Pruntime.java.home=...
> cat lucene/core/build/tmp/compileJava/java-compiler-args.txt 
> ...
> -sourcepath
> ""
> ...
> {code}
> We have to get rid of sourcepath here. I don't know how. Looks like a gradle 
> bug - it would work with gradle's "module support" enabled because I see 
> switches in the code that set the sourcepath correctly but doesn't work 
> otherwise.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-10327) gradle emits an empty sourcepath for forked javac and breaks compilation

2021-12-18 Thread Dawid Weiss (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-10327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462025#comment-17462025
 ] 

Dawid Weiss commented on LUCENE-10327:
--

It's this thing:
https://github.com/gradle/gradle/blob/master/subprojects/language-java/src/main/java/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilder.java#L239-L245

I think it may be possible to just provide javac with a valid source path 
pointing at the top of the sourceset. Or with a fake module path so that gradle 
doesn't add its own. I'll retry tomorrow.

> gradle emits an empty sourcepath for forked javac and breaks compilation
> 
>
> Key: LUCENE-10327
> URL: https://issues.apache.org/jira/browse/LUCENE-10327
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Dawid Weiss
>Priority: Blocker
>
> {code}
> gradlew -p lucene/core compileJava -Pruntime.java.home=...
> cat lucene/core/build/tmp/compileJava/java-compiler-args.txt 
> ...
> -sourcepath
> ""
> ...
> {code}
> We have to get rid of sourcepath here. I don't know how. Looks like a gradle 
> bug - it would work with gradle's "module support" enabled because I see 
> switches in the code that set the sourcepath correctly but doesn't work 
> otherwise.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org