本文整理汇总了Java中org.wisdom.maven.node.NodeManager.installIfNotInstalled方法的典型用法代码示例。如果您正苦于以下问题:Java NodeManager.installIfNotInstalled方法的具体用法?Java NodeManager.installIfNotInstalled怎么用?Java NodeManager.installIfNotInstalled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.wisdom.maven.node.NodeManager
的用法示例。
在下文中一共展示了NodeManager.installIfNotInstalled方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.wisdom.maven.node.NodeManager; //导入方法依赖的package包/类
@Before
public void setUp() throws IOException {
nodeDirectory = new File("target/test/node");
nodeDirectory.mkdirs();
Log log = new SystemStreamLog();
NodeManager manager = new NodeManager(log, nodeDirectory, mojo);
manager.installIfNotInstalled();
mojo = new TypeScriptMojo();
mojo.basedir = new File(FAKE_PROJECT);
mojo.buildDirectory = new File(FAKE_PROJECT_TARGET);
mojo.buildDirectory.mkdirs();
mojo.version = "1.4.1";
mojo.removeComments = false;
mojo.declaration = true;
mojo.module = "commonjs";
mojo.sourcemap = true;
mojo.noImplicitAny = false;
}
示例2: setUp
import org.wisdom.maven.node.NodeManager; //导入方法依赖的package包/类
@Before
public void setUp() throws IOException {
nodeDirectory = new File("target/test/node");
nodeDirectory.mkdirs();
Log log = new SystemStreamLog();
NodeManager manager = new NodeManager(log, nodeDirectory);
manager.installIfNotInstalled();
mojo = new MythMojo();
mojo.basedir = new File(FAKE_PROJECT);
mojo.buildDirectory = new File(FAKE_PROJECT_TARGET);
mojo.buildDirectory.mkdirs();
mojo.version = "0.3.4";
}
示例3: setUp
import org.wisdom.maven.node.NodeManager; //导入方法依赖的package包/类
@Before
public void setUp() throws IOException {
nodeDirectory = new File("target/test/node");
nodeDirectory.mkdirs();
Log log = new SystemStreamLog();
mojo = new CoffeeScriptCompilerMojo();
NodeManager manager = new NodeManager(log, nodeDirectory, mojo);
manager.installIfNotInstalled();
mojo.basedir = new File(FAKE_PROJECT);
mojo.buildDirectory = new File(FAKE_PROJECT_TARGET);
mojo.buildDirectory.mkdirs();
mojo.coffeeScriptVersion = CoffeeScriptCompilerMojo.COFFEESCRIPT_VERSION;
cleanup();
}
示例4: setUp
import org.wisdom.maven.node.NodeManager; //导入方法依赖的package包/类
@Before
public void setUp() throws IOException {
MavenProject project = new MavenProject();
project.setArtifactId("test-artifact");
nodeDirectory = new File("target/test/node");
nodeDirectory.mkdirs();
Log log = new SystemStreamLog();
mojo = new CSSMinifierMojo();
mojo.project = project;
NodeManager manager = new NodeManager(log, nodeDirectory, mojo);
manager.installIfNotInstalled();
mojo.basedir = new File(FAKE_PROJECT);
mojo.buildDirectory = new File(FAKE_PROJECT_TARGET);
mojo.buildDirectory.mkdirs();
mojo.cleanCssVersion = CSSMinifierMojo.CLEANCSS_NPM_VERSION;
mojo.cssMinifierSuffix = "-min";
// Less stuff
less = new LessCompilerMojo();
NodeManager manager2 = new NodeManager(log, nodeDirectory, less);
manager2.installIfNotInstalled();
less.project = project;
less.basedir = new File(FAKE_PROJECT);
less.buildDirectory = new File(FAKE_PROJECT_TARGET);
less.lessVersion = LessCompilerMojo.LESS_VERSION;
cleanup();
}
示例5: setUp
import org.wisdom.maven.node.NodeManager; //导入方法依赖的package包/类
@Before
public void setUp() throws IOException {
nodeDirectory = new File("target/test/node");
nodeDirectory.mkdirs();
Log log = new SystemStreamLog();
mojo = new TypeScriptCompilerMojo();
mojo.basedir = new File(FAKE_PROJECT);
mojo.buildDirectory = new File(FAKE_PROJECT_TARGET);
mojo.buildDirectory.mkdirs();
mojo.typescript = new TypeScript();
NodeManager manager = new NodeManager(log, nodeDirectory, mojo);
manager.installIfNotInstalled();
}
示例6: setUp
import org.wisdom.maven.node.NodeManager; //导入方法依赖的package包/类
@Before
public void setUp() throws IOException {
nodeDirectory = new File("target/test/node");
nodeDirectory.mkdirs();
Log log = new SystemStreamLog();
mojo = new LessCompilerMojo();
NodeManager manager = new NodeManager(log, nodeDirectory, mojo);
manager.installIfNotInstalled();
mojo.basedir = new File(FAKE_PROJECT);
mojo.buildDirectory = new File(FAKE_PROJECT_TARGET);
mojo.buildDirectory.mkdirs();
mojo.lessVersion = LessCompilerMojo.LESS_VERSION;
cleanup();
}