-
Notifications
You must be signed in to change notification settings - Fork 21
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
focus.settings.gradle for Windows #34
Comments
Example: |
Does Gradle work with those generated files? I thought that Gradle
translated path separators automatically, but if not we can check how
they're being generated and fix it.
…On Thu, May 18, 2023, 07:59 Эдуард Абдульманов ***@***.***> wrote:
Example:
Generated - project(":analytics").projectDir = new
File('C:\Users\Eduard\StudioProjects...\sources\base\analytics')
Necessary - project(":analytics").projectDir = new
File('C:/Users/Eduard/StudioProjects/.../sources/base/analytics')
—
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ4S3XRO7PSOAAOLQQCEJLXGYMLNANCNFSM6AAAAAAYGNWFQY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Gradle doens't work with such generated files. If you fix the path separators by hand and start synch, then it will be successful |
A simple solution would be to update this code focus/focus-gradle-plugin/src/main/kotlin/com/dropbox/focus/CreateFocusSettingsTask.kt Line 45 in 1fbc249
And replace any backslash with double backslashes: -writer.appendLine("project(\"${dep.path}\").projectDir = new File($literalQuoteChar${dep.projectDir}$literalQuoteChar)")
+writer.appendLine("project(\"${dep.path}\").projectDir = new File($literalQuoteChar${dep.projectDir.path.replace("\\", "\\\\")}$literalQuoteChar)") I can draft a PR with new tests if this is something that you would want to include. |
That would be appreciated, thanks! |
After calling the "focus" task, a file is generated focus.settings.gradle in which the paths on the module are specified using such a slash - , but Windows only accepts such a slash - /. Please let me know if this is a bug and someone is working on a fix.
The text was updated successfully, but these errors were encountered: