当前位置: 首页>>代码示例>>Java>>正文


Java NodeManager.installIfNotInstalled方法代码示例

本文整理汇总了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;
}
 
开发者ID:wisdom-framework,项目名称:wisdom-typescript,代码行数:20,代码来源:TypeScriptMojoTest.java

示例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";
}
 
开发者ID:wisdom-framework,项目名称:wisdom-myth,代码行数:14,代码来源:MythMojoTest.java

示例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();
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:15,代码来源:CoffeeScriptCompilerMojoTest.java

示例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();
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:30,代码来源:CSSMinifierMojoTest.java

示例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();
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:16,代码来源:TypeScriptCompilerMojoTest.java

示例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();
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:15,代码来源:LessCompilerMojoTest.java


注:本文中的org.wisdom.maven.node.NodeManager.installIfNotInstalled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。