File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
installer/src/main/java/ca/weblite/jdeploy/installer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -280,8 +280,9 @@ public static void main(String[] args) {
280
280
EventQueue .invokeLater (new Main ());
281
281
}
282
282
283
-
283
+ private File cachedInstallFilesDir ;
284
284
private File findInstallFilesDir () {
285
+ if (cachedInstallFilesDir != null && cachedInstallFilesDir .exists ()) return cachedInstallFilesDir ;
285
286
System .out .println ("findInstallFilesDir():" );
286
287
if (System .getProperty ("client4j.launcher.path" ) != null ) {
287
288
System .out .println ("Found client4.launcher.path property: " +System .getProperty ("client4j.launcher.path" ));
@@ -290,7 +291,8 @@ private File findInstallFilesDir() {
290
291
System .out .println ("client4j.launcher.path is not set" );
291
292
}
292
293
System .out .println ("User dir: " +new File (System .getProperty ("user.dir" )).getAbsolutePath ());
293
- return findInstallFilesDir (new File (System .getProperty ("user.dir" )));
294
+ cachedInstallFilesDir = findInstallFilesDir (new File (System .getProperty ("user.dir" )));
295
+ return cachedInstallFilesDir ;
294
296
}
295
297
296
298
private File findAppBundle () {
You can’t perform that action at this time.
0 commit comments