diff --git a/build.number b/build.number index 2f506cc..7356711 100644 --- a/build.number +++ b/build.number @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Tue Aug 03 15:26:44 CEST 2021 -build.number=1225 +#Thu Oct 07 13:06:02 EEST 2021 +build.number=1226 diff --git a/proparse.assemblies.zip b/proparse.assemblies.zip index f4a6471..654e97a 100644 Binary files a/proparse.assemblies.zip and b/proparse.assemblies.zip differ diff --git a/proparse.jar b/proparse.jar index 287beae..1101668 100644 Binary files a/proparse.jar and b/proparse.jar differ diff --git a/proparse.java.zip b/proparse.java.zip index c8d336b..bbab51a 100644 Binary files a/proparse.java.zip and b/proparse.java.zip differ diff --git a/src/org/prorefactor/refactor/RefactorSession.java b/src/org/prorefactor/refactor/RefactorSession.java index 8a1b14a..efec54d 100644 --- a/src/org/prorefactor/refactor/RefactorSession.java +++ b/src/org/prorefactor/refactor/RefactorSession.java @@ -46,6 +46,7 @@ private RefactorSession() { private static RefactorSession theInstance; + private static String listingFile = null; @@ -127,9 +128,20 @@ public static RefactorSession getInstance() { /** Get the listing file name, makes sure the directory exists. */ public static String getListingFileName() { - String ret = getContextDirName() + "prorefactor/temp/listingfile.txt"; - (new File(ret)).getParentFile().mkdirs(); - return ret; + + if (listingFile!=null ) + return listingFile; + + StringBuilder bldr = new StringBuilder(); + bldr + .append(getContextDirName()) + .append("prorefactor/temp/listingfile.") + .append(System.currentTimeMillis()) + .append(".txt") + ; + listingFile = bldr.toString(); + (new File(listingFile)).getParentFile().mkdirs(); + return listingFile; } public static String getMessagesFileName() {