Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
Revert "Fix #832 Failed to generated .resolved file"
Browse files Browse the repository at this point in the history
This reverts commit b097567.
  • Loading branch information
njbartlett committed May 9, 2014
1 parent 11b79ba commit 9630178
Showing 1 changed file with 2 additions and 12 deletions.
Expand Up @@ -24,7 +24,6 @@
import org.osgi.resource.Resource;

import aQute.bnd.build.Project;
import aQute.bnd.build.Workspace;
import aQute.bnd.build.model.BndEditModel;
import aQute.bnd.build.model.clauses.VersionedClause;
import aQute.bnd.header.Attrs;
Expand Down Expand Up @@ -78,17 +77,8 @@ public boolean performFinish() {
// Open stream for physical paths list in target dir
PrintStream pathsStream = null;
try {
File targetDir;

File projectDir = file.getProject().getLocation().toFile();
Project project = Central.getProject(projectDir);
if (project != null)
targetDir = project.getTarget();
else {
String targetName = Workspace.getDefaults().get("target", "generated");
targetDir = new File(projectDir, targetName);
}

Project project = Central.getProject(file.getProject().getLocation().toFile());
File targetDir = project.getTarget();
if (!targetDir.exists() && !targetDir.mkdirs()) {
throw new IOException("Could not create directory " + targetDir);
}
Expand Down

0 comments on commit 9630178

Please sign in to comment.