Skip to content

Commit

Permalink
Refresh and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-wyluda committed Feb 19, 2014
1 parent 5cbe04c commit 8d8b551
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,10 @@ private void loadModel()
manager.runGradleBuild(getFaceted().getRootDirectory().getFullyQualifiedName(),
GradleSourceUtil.FORGE_OUTPUT_TASK, "");

FileResource<?> forgeOutputfile = (FileResource<?>) getFaceted().getRootDirectory().getChild(
FileResource<?> forgeOutputFile = (FileResource<?>) getFaceted().getRootDirectory().getChild(
GradleSourceUtil.FORGE_OUTPUT_XML);
String forgeOutput = null;
try (InputStream stream = forgeOutputfile.getResourceInputStream())
{
forgeOutput = Streams.toString(stream);
}
catch (IOException e)
{
throw new RuntimeException(e);
}

forgeOutputfile.delete();
String forgeOutput = forgeOutputFile.getContents();
forgeOutputFile.delete();

GradleModel loadedModel = GradleModelLoadUtil.load(script, profileScripts, forgeOutput);

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-tooling-api</artifactId>
<version>1.10</version>
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
Expand Down
1 change: 0 additions & 1 deletion tests/src/main/resources/test/resource.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/src/test/resources/test/resource.txt

This file was deleted.

0 comments on commit 8d8b551

Please sign in to comment.