fix:file delete
This commit is contained in:
parent
227a7d1975
commit
3ed1af0b33
|
@ -5095,10 +5095,6 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
||||||
ftpUtil.saveFile(baselinePathName, baselineFileName, in);
|
ftpUtil.saveFile(baselinePathName, baselineFileName, in);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
|
||||||
if (Objects.nonNull(baselineFile)) {
|
|
||||||
baselineFile.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -5110,10 +5106,6 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
||||||
ftpUtil.saveFile(lcPathName, lcFileName, in);
|
ftpUtil.saveFile(lcPathName, lcFileName, in);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
|
||||||
if (Objects.nonNull(lcFile)) {
|
|
||||||
lcFile.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -5125,10 +5117,6 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
||||||
ftpUtil.saveFile(scacPathName, scacFileName, in);
|
ftpUtil.saveFile(scacPathName, scacFileName, in);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
|
||||||
if (Objects.nonNull(scacFile)) {
|
|
||||||
scacFile.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -5141,10 +5129,6 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
||||||
ftpUtil.saveFile(logPathName, logFileName, in);
|
ftpUtil.saveFile(logPathName, logFileName, in);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
|
||||||
if (Objects.nonNull(logFile)) {
|
|
||||||
logFile.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -5157,10 +5141,6 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
||||||
ftpUtil.saveFile(rptPathName, rptFileName, in);
|
ftpUtil.saveFile(rptPathName, rptFileName, in);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
|
||||||
if (Objects.nonNull(rptFile)) {
|
|
||||||
rptFile.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<String> paths = new LinkedList<>();
|
List<String> paths = new LinkedList<>();
|
||||||
|
|
|
@ -4071,10 +4071,6 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
ftpUtil.saveFile(rptPathName, rptFileName, in);
|
ftpUtil.saveFile(rptPathName, rptFileName, in);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
|
||||||
if (Objects.nonNull(rptFile)) {
|
|
||||||
rptFile.delete();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user