Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
tryign to fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kerwin committed Apr 22, 2016
1 parent 6257ba0 commit 316ec4f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*******************************************************************************/
package com.blackducksoftware.integration.hub.teamcity.mocks;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

Expand All @@ -41,15 +40,15 @@ public static String getConfigDirectory(final String parentDir, final String con
throws UnsupportedEncodingException {
String confDir = URLDecoder
.decode(MockServerPaths.class.getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8");
confDir = confDir.substring(0, confDir.indexOf(File.separator + "target"));
confDir = confDir + File.separator + "test-workspace";
confDir = confDir.substring(0, confDir.indexOf("/target"));
confDir = confDir + "/test-workspace";

if (StringUtils.isNotBlank(parentDir)) {
confDir = confDir + File.separator + parentDir;
confDir = confDir + "/" + parentDir;
}

if (StringUtils.isNotBlank(configDir)) {
confDir = confDir + File.separator + configDir;
confDir = confDir + "/" + configDir;
}
return confDir;
}
Expand Down

0 comments on commit 316ec4f

Please sign in to comment.