Skip to content

Commit

Permalink
FORGE-2298: Added version.forge in addon-install-from-git command
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 27, 2015
1 parent 5c23eae commit 9f7e0fb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.jboss.forge.furnace.manager.request.RemoveRequest;
import org.jboss.forge.furnace.util.Addons;
import org.jboss.forge.furnace.util.OperatingSystemUtils;
import org.jboss.forge.furnace.versions.Versions;

/**
* Installs the addon via Git (needs the git addon installed)
Expand Down Expand Up @@ -119,8 +120,10 @@ public Result execute(UIExecutionContext context) throws Exception
Coordinate buildCoordinate = project.getFacet(MetadataFacet.class).getOutputDependency().getCoordinate();
try
{
project.getFacet(PackagingFacet.class).createBuilder()
.addArguments("clean", "install", "-Dversion.furnace=" + furnace.getVersion())
project.getFacet(PackagingFacet.class)
.createBuilder()
.addArguments("clean", "install", "-Dversion.furnace=" + furnace.getVersion(),
"-Dversion.forge=" + Versions.getImplementationVersionFor(getClass()))
.runTests(false)
.build(output.out(), output.err());
}
Expand Down

0 comments on commit 9f7e0fb

Please sign in to comment.