Skip to content

Commit

Permalink
Removed directory existence check for Report directories and zipped R…
Browse files Browse the repository at this point in the history
…eport directories

Use FileUtil instead of StringUtil
  • Loading branch information
Mstoegerer committed Jun 12, 2017
1 parent e9c620f commit a2aca74
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,6 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
if (!StringUtil.isNullOrSpace(rxReportDirectory))
{
usedRxReportDirectory = FileUtil.getAbsoluteReportDirectory(WorkSpace, rxReportDirectory);
if (!StringUtil.isValidDirectory(usedRxReportDirectory))
{
listener.getLogger().println("'" + usedRxReportDirectory + "' is not a valid directory or does not exist");
return false;
}
}
else
{
Expand All @@ -207,7 +202,7 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
//ReportFilename
if (!StringUtil.isNullOrSpace(rxReportFile))
{
if (!StringUtil.isAbsolutePath(rxReportFile))
if (!FileUtil.isAbsolutePath(rxReportFile))
{
usedRxReportFile = rxReportFile;
}
Expand Down Expand Up @@ -237,11 +232,6 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
if (!StringUtil.isNullOrSpace(rxZippedReportDirectory))
{
usedRxZippedReportDirectory = FileUtil.getAbsoluteReportDirectory(WorkSpace, rxZippedReportDirectory);
if (!StringUtil.isValidDirectory(usedRxZippedReportDirectory))
{
listener.getLogger().println("'" + usedRxZippedReportDirectory + "' is not a valid directory or does not exist");
return false;
}
}
else
{
Expand All @@ -252,7 +242,7 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
//Zipped Report File Name
if (!StringUtil.isNullOrSpace(rxZippedReportFile))
{
if (!StringUtil.isAbsolutePath(rxZippedReportFile))
if (!FileUtil.isAbsolutePath(rxZippedReportFile))
{
usedRxZippedReportFile = rxZippedReportFile;
}
Expand Down

0 comments on commit a2aca74

Please sign in to comment.