-
Notifications
You must be signed in to change notification settings - Fork 109
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
Support for UNC paths #143
Comments
Some testing is proving insightful:
results in a
But when you try to use
results in a broken UNC
|
Digging into
That's when I found the bug: JDK-4723726: URI.normalize() ruins URI built from UNC File and in the discussion it's mentioned that They're not going to fix the Instead, can we not just change the path of the URI to include what we would otherwise |
Sounds good. Will you make a PR for the change? |
Thanks for all your time in reviewing and merging. When can we expect the new artifact and what version will it be? |
Version 1.0.21 was just released now :) |
I'm still having issues getting UNC to work and noticed that the fxlauncher-gradle-plugin is still on version 1.0.20, would this affect things? https://search.maven.org/artifact/no.tornado/fxlauncher-gradle-plugin/1.0.20/jar Any help appreciated. |
I'm having such a hard time. I have a build file that looks like it matches all the requirements. I seem to be running fxlauncher version 1.0.21, and yet I get the same exact error as is listed above. |
I think I found it and made a pull request in the fxlauncher-gradle-plugin project. |
Thanks! I will do a new release tonight. |
Hi! Thanks so much for creating this lovely way to deploy an application.
I've successfully gotten FXLauncher to pull from a regular old
file://C:/some/lovely/path
.What I want to do is get FXLauncher to pull from a Windows UNC path (ex.
//server/share/
).Java seems to handle UNC paths a little differently than I expected.
First I tried configuring the
applicationUrl
with\\myServer\myShare\
, butURI.create()
doesn't like that one bit and says that the\
character is not allowed.I did a little searching and found that you can use the forward slash in combination with the file protocol when working with UNC paths; something like
file:////myServer/myShare/
.So I tried that and it got further, but still no cigar. At some point along the way the
path
of theURI
is losing a slash going from//myServer/myShare/
to/myServer/myShare
. I'm betting this is happening duringgetFXAppURI()
or sometime before whenuri.resolve()
is called.Here's the output when I try to run the natively installed app from the command line:
and here's my
fxlauncher.log
:I'm using the gradle plugin, version 1.0.20.
Here's the relevant configuration:
The text was updated successfully, but these errors were encountered: