Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#57 Use unique name for listing file to allow running of several proc… #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.number
Original file line number Diff line number Diff line change
@@ -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
Binary file modified proparse.assemblies.zip
Binary file not shown.
Binary file modified proparse.jar
Binary file not shown.
Binary file modified proparse.java.zip
Binary file not shown.
18 changes: 15 additions & 3 deletions src/org/prorefactor/refactor/RefactorSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private RefactorSession() {

private static RefactorSession theInstance;

private static String listingFile = null;



Expand Down Expand Up @@ -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() {
Expand Down