Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Sep 15, 2012
1 parent 9ad47cd commit bc8a59c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java
Expand Up @@ -3,7 +3,7 @@
import hudson.model.AbstractBuild;
import hudson.model.Action;
import org.apache.commons.collections.map.UnmodifiableMap;
import org.jenkinsci.lib.envinject.service.EnvInjectSaveable;
import org.jenkinsci.lib.envinject.service.EnvInjectSavable;
import org.kohsuke.stapler.StaplerProxy;

import java.io.File;
Expand Down Expand Up @@ -56,19 +56,19 @@ public String getUrlName() {
@SuppressWarnings("unused")
private Object writeReplace() throws ObjectStreamException {
try {
EnvInjectSaveable dao = new EnvInjectSaveable();
EnvInjectSavable dao = new EnvInjectSavable();

if (rootDir == null) {
dao.saveEnvironment(build.getRootDir(), envMap);
return this;
}

dao.saveEnvironment(rootDir, envMap);
return this;
} catch (EnvInjectException e) {
throw new ObjectStreamException(e.getMessage()) {
};
} catch (Throwable e) {
e.printStackTrace();
}

return this;
}

@SuppressWarnings("unused")
Expand All @@ -79,7 +79,7 @@ private Object readResolve() throws ObjectStreamException {
return this;
}

EnvInjectSaveable dao = new EnvInjectSaveable();
EnvInjectSavable dao = new EnvInjectSavable();
Map<String, String> resultMap = null;
try {
if (build != null) {
Expand Down
Expand Up @@ -11,7 +11,7 @@
/**
* @author Gregory Boissinot
*/
public class EnvInjectSaveable {
public class EnvInjectSavable {

private static final String ENVINJECT_TXT_FILENAME = "injectedEnvVars.txt";
private static final String TOKEN = "=";
Expand Down

0 comments on commit bc8a59c

Please sign in to comment.