Skip to content
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

Escape backslash in Gradle tooling jar path on Windows #3831

Merged

Conversation

lkishalmi
Copy link
Contributor

This is a fix for #3801. Moved two constants from public to private as they shall be not used elsewhere and were not part of the public API.

@lkishalmi lkishalmi added this to the NB14 milestone Mar 21, 2022
@lkishalmi lkishalmi requested a review from sdedic March 21, 2022 22:08
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

public static final String PROP_TOOLING_JAR = "NETBEANS_TOOLING_JAR";
public static final String TOOLING_JAR = InstalledFileLocator.getDefault().locate(TOOLING_JAR_NAME, NbGradleProject.CODENAME_BASE, false).getAbsolutePath();
private static final String PROP_TOOLING_JAR = "NETBEANS_TOOLING_JAR";
private static final String TOOLING_JAR = InstalledFileLocator.getDefault().locate(TOOLING_JAR_NAME, NbGradleProject.CODENAME_BASE, false).getAbsolutePath().replace("\\", "\\\\");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for using the right replace method :)

@mbien mbien linked an issue Mar 22, 2022 that may be closed by this pull request
@mbien mbien added kind:bug Bug report or fix Gradle [ci] enable "build tools" tests labels Mar 22, 2022
@lkishalmi lkishalmi merged commit fa54106 into apache:master Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests kind:bug Bug report or fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gradle Project opens with problem and it cannot be resolved
2 participants