-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common JDKs don't support params files #3069
Comments
@chaoren : What platform did you try on? |
OS X at least
…On Mon, 29 May 2017 at 11:37 László Csomor ***@***.***> wrote:
@chaoren <https://github.com/chaoren> : What platform did you try on?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3069 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF6AHl58A-bgFeZnr5LdD-OfNIy3Kks5r-oPKgaJpZM4Nor6d>
.
|
I managed to repro this. Apparently neither OpenJDK for MacOS nor Zulu JRE (that we bundle Bazel 0.5.0 with) support parameter file syntax (i.e. Repro:
Then this works:
But this doesn't:
Here's my Java:
|
-classpath @<(echo $CLASSPATH)
doesn't actually work.
This only affects users with very long classpaths (>120K) so I'm prioritizing it as P2. |
Just to clarify: process substitution (the |
Do you know if oracle jdk works?
…On Mon, 29 May 2017 at 16:00 László Csomor ***@***.***> wrote:
Just to clarify: process substitution (the @<(echo $CLASSPATH)) works
fine on MacOS (it creates a named pipe as /dev/fd/63).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3069 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF_o0TM0DmgUs5SnsHPR42smxRzmCks5r-sFfgaJpZM4Nor6d>
.
|
@ittaiz : It doesn't, I just tried. |
Unfortunately Bazel doesn't pick up the fixed java_stub_template from the workspace. The template is compiled into Bazel instead. So to see the effects of the bugfix, you must rebuild Bazel from head and use that binary, or wait for the next release. |
Won't this line cause a problem outside of cygwin? bazel/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt Line 303 in 102ce6d
Can we please have a test for this? |
Oops, you're right, good catch! I forgot to remove that line. Yes, this needs a test, I'll add one. |
Remove the cygpath call on non-Windows platforms, that was recently added by 102ce6d Also add a test for Bazel's Java launcher. Also update the testenv.sh:cleanup method to wait for Bazel to shut down, don't give up immediately if it could not clean up the inner Bazel's temp dir. Fixes #3092 See #3069 Change-Id: I82b1026a60056f340caa53a59b6f2ec8a1397ef3 PiperOrigin-RevId: 158139846
Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.
Description of the problem / feature request / question:
If asking a question or requesting a feature, also tell us about the underlying problem you're trying to solve.
The scala rules is borrowing the java_stub_template from the java rules, and it seems like this line doesn't actually work.
If possible, provide a minimal example to reproduce the problem:
The text was updated successfully, but these errors were encountered: