@@ -86,11 +86,12 @@ public final class VirtualFileSystem implements FileSystem, AutoCloseable {
86
86
87
87
private static final Logger LOGGER = Logger .getLogger (VirtualFileSystem .class .getName ());
88
88
static {
89
+ LOGGER .setUseParentHandlers (false );
89
90
ConsoleHandler consoleHandler = new ConsoleHandler ();
90
91
consoleHandler .setFormatter (new SimpleFormatter () {
91
92
@ Override
92
93
public synchronized String format (LogRecord lr ) {
93
- return String .format ("%s: %s % n" , lr .getLevel ().getName (), lr .getMessage ());
94
+ return String .format ("%s: %s\ n " , lr .getLevel ().getName (), lr .getMessage ());
94
95
}
95
96
});
96
97
LOGGER .addHandler (consoleHandler );
@@ -103,7 +104,6 @@ public synchronized String format(LogRecord lr) {
103
104
104
105
static final String VFS_HOME = "home" ;
105
106
static final String VFS_VENV = "venv" ;
106
- static final String VFS_PROJ = "proj" ;
107
107
static final String VFS_SRC = "src" ;
108
108
109
109
/*
@@ -114,8 +114,7 @@ public synchronized String format(LogRecord lr) {
114
114
private static final String FILES_LIST_PATH = VFS_ROOT + "/fileslist.txt" ;
115
115
private static final String VENV_PREFIX = VFS_ROOT + "/" + VFS_VENV ;
116
116
private static final String HOME_PREFIX = VFS_ROOT + "/" + VFS_HOME ;
117
- // TODO see GR-54915, deprecated and should be removed after 24.2.0
118
- private static final String PROJ_PREFIX = VFS_ROOT + "/" + VFS_PROJ ;
117
+ private static final String PROJ_PREFIX = VFS_ROOT + "/proj" ;
119
118
private static final String SRC_PREFIX = VFS_ROOT + "/" + VFS_SRC ;
120
119
121
120
private boolean extractOnStartup = "true" .equals (System .getProperty ("graalpy.vfs.extractOnStartup" ));
@@ -414,10 +413,6 @@ String vfsHomePath() {
414
413
return resourcePathToPlatformPath (HOME_PREFIX );
415
414
}
416
415
417
- String vfsProjPath () {
418
- return resourcePathToPlatformPath (PROJ_PREFIX );
419
- }
420
-
421
416
String vfsSrcPath () {
422
417
return resourcePathToPlatformPath (SRC_PREFIX );
423
418
}
@@ -473,6 +468,8 @@ private String toCaseComparable(String file) {
473
468
return caseInsensitive ? file .toLowerCase (Locale .ROOT ) : file ;
474
469
}
475
470
471
+ private boolean projWarning = false ;
472
+
476
473
private void initEntries () throws IOException {
477
474
vfsEntries = new HashMap <>();
478
475
try (InputStream stream = this .resourceLoadingClass .getResourceAsStream (FILES_LIST_PATH )) {
@@ -484,6 +481,14 @@ private void initEntries() throws IOException {
484
481
String line ;
485
482
finest ("VFS entries:" );
486
483
while ((line = br .readLine ()) != null ) {
484
+
485
+ if (!projWarning && line .startsWith (PROJ_PREFIX )) {
486
+ projWarning = true ;
487
+ LOGGER .warning ("" );
488
+ LOGGER .warning (String .format ("%s source root was deprecated, use %s instead." , PROJ_PREFIX , SRC_PREFIX ));
489
+ LOGGER .warning ("" );
490
+ }
491
+
487
492
String platformPath = resourcePathToPlatformPath (line );
488
493
int i = 0 ;
489
494
DirEntry parent = null ;
0 commit comments