You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/03/22 00:46:16 UTC
[GitHub] [netbeans] mbien commented on a change in pull request #3831: Escape backslash in Gradle tooling jar path on Windows
mbien commented on a change in pull request #3831:
URL: https://github.com/apache/netbeans/pull/3831#discussion_r831670852
##########
File path: extide/gradle/src/org/netbeans/modules/gradle/loaders/GradleDaemon.java
##########
@@ -53,8 +53,8 @@
static final String INIT_SCRIPT_NAME = "modules/gradle/nb-tooling.gradle"; //NOI18N
static final String TOOLING_JAR_NAME = "modules/gradle/netbeans-gradle-tooling.jar"; //NOI18N
- 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("\\", "\\\\");
Review comment:
thanks for using the right replace method :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists