Permalink
Browse files

clean returns boolean, install deps after clean

  • Loading branch information...
1 parent 875e7e2 commit 3c96055a310c7e43c7e95b16eb5b5b53eb00d2bf @JPMoresmau committed Feb 18, 2013
@@ -980,7 +980,7 @@ public void clean(boolean everything){
LinkedList<String> command=new LinkedList<String>();
command.add("clean");
command.add("--everything="+everything);
- run(command,ARRAY);
+ run(command,BOOL);
}
private boolean parseNotes(JSONArray notes){
@@ -1386,6 +1386,12 @@ public String fromJSON(String json)throws JSONException {
};
+ private static JSONFactory<Boolean> BOOL=new JSONFactory<Boolean>() {
+ public Boolean fromJSON(String json)throws JSONException {
+ return Boolean.valueOf(json);
+ }
+ };
+
public IProject getProject() {
return project;
}
@@ -1414,6 +1420,13 @@ public void clean(IProgressMonitor mon) throws CoreException{
BuildWrapperPlugin.deleteAllProblems(project);
cabalFileChanged();
outlines.clear();
+ if (SandboxHelper.isSandboxed(this)){
+ try {
+ SandboxHelper.installDeps(this);
+ } catch (CoreException ce){
+ BuildWrapperPlugin.logError(BWText.error_sandbox,ce);
+ }
+ }
synchronize(false);
}
}

0 comments on commit 3c96055

Please sign in to comment.