Fix [2845178] - PackIn data failing if ran second time and first failed

https://sourceforge.net/tracker/?func=detail&aid=2845178&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2009-08-26 21:11:46 +00:00
parent 9441393a77
commit f9a8309e2f
2 changed files with 8 additions and 0 deletions

View File

@ -398,4 +398,9 @@ public class IDFinder {
return id;
}
public static void clearIDCache() {
idCache.clear();
}
}

View File

@ -156,6 +156,9 @@ public class PackIn extends SvrProcess {
X_AD_Package_Imp_Proc adPackageImp = new X_AD_Package_Imp_Proc(getCtx(),
p_PackIn_ID, null);
// clear cache of previous runs
IDFinder.clearIDCache();
// Create Target directory if required
String packageDirectory = adPackageImp.getAD_Package_Dir();
if (packageDirectory == null || packageDirectory.trim().length() == 0) {