]>
git.argeo.org Git - gpl/argeo-slc.git/blob - maven/maven-argeo-qooxdoo-plugin/src/main/java/org/argeo/slc/maven/plugins/qooxdoo/EnvironmentMojo.java
1 package org
.argeo
.slc
.maven
.plugins
.qooxdoo
;
3 import org
.apache
.maven
.artifact
.Artifact
;
4 import org
.apache
.maven
.plugin
.MojoExecutionException
;
5 import org
.apache
.maven
.plugin
.MojoFailureException
;
8 * Prepares Qooxdoo environment
12 public class EnvironmentMojo
extends AbstractQooxdooMojo
{
14 public void execute() throws MojoExecutionException
, MojoFailureException
{
15 Artifact qxSdkArtifact
= depManager
.getResolvedArtifact(remoteRepos
,
16 local
, sdkGroupId
, sdkArtifactId
, sdkVersion
, sdkType
,
17 sdkClassifier
, Artifact
.SCOPE_COMPILE
);
18 if (!getSdkDir().exists())
19 depManager
.unpackArtifact(qxSdkArtifact
, srcBase
);
21 getLog().warn("Qooxdoo SDK already unpacked, skip unpacking...");
22 getLog().info("Qooxdoo environment prepared");