You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2018/01/01 20:14:47 UTC
[incubator-netbeans] branch master updated (2db42df -> 4d81a4d)
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git.
from 2db42df Use case insensitive compare when running on Windows
new dc00702 Skipping the test if not running on filesystem without 8.3 name encoding.
new 4d81a4d Use case insensitive regexp when running on Windows
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../unit/src/org/netbeans/modules/masterfs/URLMapperTest.java | 4 +++-
nbjunit/src/org/netbeans/junit/internal/NbModuleLogHandler.java | 9 ++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
--
To stop receiving notification emails like this one, please contact
['"commits@netbeans.apache.org" <co...@netbeans.apache.org>'].
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[incubator-netbeans] 02/02: Use case insensitive regexp when
running on Windows
Posted by jt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
commit 4d81a4d88e7af4cfd6f39542d50028a4b9ef192d
Author: Jaroslav Tulach <ja...@oracle.com>
AuthorDate: Mon Jan 1 21:14:26 2018 +0100
Use case insensitive regexp when running on Windows
---
nbjunit/src/org/netbeans/junit/internal/NbModuleLogHandler.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/nbjunit/src/org/netbeans/junit/internal/NbModuleLogHandler.java b/nbjunit/src/org/netbeans/junit/internal/NbModuleLogHandler.java
index fb4f10e..afc788f 100644
--- a/nbjunit/src/org/netbeans/junit/internal/NbModuleLogHandler.java
+++ b/nbjunit/src/org/netbeans/junit/internal/NbModuleLogHandler.java
@@ -110,10 +110,17 @@ public final class NbModuleLogHandler extends Handler {
sb.append('\n');
return sb;
}
+
+ private static boolean isLikelyCaseInsensitive() {
+ String osName = System.getProperty("os.name");
+ return osName != null && osName.startsWith("Win");
+ }
private static final List<String> hexes = new ArrayList<String>();
private static final String integerToHexString = "[0-9a-fA-F]{5,8}";
- private static final Pattern hex = Pattern.compile("(?<=@(?:" + integerToHexString + ":)?)" + integerToHexString);
+ private static final Pattern hex = Pattern.compile("(?<=@(?:" + integerToHexString + ":)?)" + integerToHexString,
+ isLikelyCaseInsensitive() ? Pattern.CASE_INSENSITIVE : 0
+ );
public static synchronized String normalize(StringBuffer txt, String workDirPath) {
Matcher m = hex.matcher(txt.toString().replace(workDirPath, "WORKDIR"));
@SuppressWarnings("StringBufferMayBeStringBuilder")
--
To stop receiving notification emails like this one, please contact
"commits@netbeans.apache.org" <co...@netbeans.apache.org>.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[incubator-netbeans] 01/02: Skipping the test if not running on
filesystem without 8.3 name encoding.
Posted by jt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
commit dc0070251455b9f4217e7825d2d13814ce21199b
Author: Jaroslav Tulach <ja...@oracle.com>
AuthorDate: Mon Jan 1 21:14:00 2018 +0100
Skipping the test if not running on filesystem without 8.3 name encoding.
---
.../test/unit/src/org/netbeans/modules/masterfs/URLMapperTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/masterfs/test/unit/src/org/netbeans/modules/masterfs/URLMapperTest.java b/masterfs/test/unit/src/org/netbeans/modules/masterfs/URLMapperTest.java
index b8eefef..462c5db 100644
--- a/masterfs/test/unit/src/org/netbeans/modules/masterfs/URLMapperTest.java
+++ b/masterfs/test/unit/src/org/netbeans/modules/masterfs/URLMapperTest.java
@@ -21,6 +21,8 @@ package org.netbeans.modules.masterfs;
import java.io.File;
import java.net.URL;
+import org.junit.Assume;
+import static org.junit.Assume.assumeTrue;
import org.netbeans.junit.NbTestCase;
import org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem;
import org.openide.filesystems.FileObject;
@@ -59,7 +61,7 @@ public class URLMapperTest extends NbTestCase {
f.mkdirs();
File shrtF = new File(getWorkDir(), "MYNEWT~1");
- assertTrue("Short name exists", shrtF.isDirectory());
+ assumeTrue("Short name exists", shrtF.isDirectory());
final URL u = shrtF.toURI().toURL();
final FileObject fo = URLMapper.findFileObject(u);
--
To stop receiving notification emails like this one, please contact
"commits@netbeans.apache.org" <co...@netbeans.apache.org>.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists