-
Notifications
You must be signed in to change notification settings - Fork 458
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
[maven] using an url as file does not work on windows. #250
Comments
@lutovich I don't know whether you foresee any special treatment for Maven. For Gradle I currently depend on files to determine a signature (location, modification date) for incremental builds. @mikula-espirit |
@fvgh honestly, I have not thought about incremental builds or fast up-to-date checking. Maybe it is acceptable to download the file every time if it is identified by a URL. I think, right now I'll look into this issue. |
It is downloading it every time and this is 100% acceptable. But the temp file has the same name as the given url. This simply does not work on windows machines. If you trim the temp file name to the stuff following the last slash it should work fine. |
As stated before, I think an automatic download is problematic, since there are still a few people and companies out there who do not live in the cloud 😉 . Anyhow, I think the treatment should be similar for Maven and Gradle and located within or above the |
@fvgh attached PR fixes the described problem by simplifying the output file name selection. It does not address all your points but makes it possible to use URL file config on Windows. Would be great to get your review! I do not know any way to bind plugin to a specific phase or make it run a task during some phase. Thus I'm unsure how to implement the suggested Other maven plugins with similar configuration seem to be using the same file resolution approach. They resolve configs directly during execution. Checkstyle plugin does it here, findbugs does it here. |
If folks want offline support, they can put the config files in the repo. If they want to share config across projects at the cost of no offline support, they can use URLs. Caching URLs for offline use is definitely the ideal solution, but I don't wanna block "good enough" while we wait for "best". |
@lutovich The |
Fixed in |
So, i guess the problem is the colon ":" as well as the slashes "/" as they do not work on windows.
The text was updated successfully, but these errors were encountered: