Navigation Menu

Skip to content

Commit

Permalink
o JENKINS-10994: finish env var expansion
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40136 71c3de6d-444a-0410-be80-ed276b4c234a
  • Loading branch information
msteinkogler committed Nov 22, 2011
1 parent 51a24a1 commit 86d899f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -112,7 +112,7 @@ public String getExpandedBackupPath() {
try {
expandedPath = Utils.expandEnvironmentVariables(backupPath);
} catch (final EnvironmentVariableNotDefinedException evnde) {
LOGGER.log(Level.SEVERE, "Error while expanding path. Using unexpanded path.", evnde);
LOGGER.log(Level.SEVERE, evnde.getMessage() + " Using unexpanded path.");
expandedPath = backupPath;
}

Expand Down
Expand Up @@ -397,7 +397,6 @@ protected static String internalExpandEnvironmentVariables(final String path,
.format(
"Environment variable '%s' was specified in path '%s', but it is not defined in the system's environment variables.",
envVar, path);
LOGGER.warning(message);
throw new EnvironmentVariableNotDefinedException(message);
}
newPath.append(tmpPath.substring(0, startIdx));
Expand Down

0 comments on commit 86d899f

Please sign in to comment.