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


Java NodeManager类代码示例

本文整理汇总了Java中org.wisdom.maven.node.NodeManager的典型用法代码示例。如果您正苦于以下问题:Java NodeManager类的具体用法?Java NodeManager怎么用?Java NodeManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NodeManager类属于org.wisdom.maven.node包,在下文中一共展示了NodeManager类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
    AbstractWisdomMojo mojo = new AbstractWisdomMojo() {
        @Override
        public void execute() throws MojoExecutionException, MojoFailureException {
            // Do nothing.
        }
    };
    mojo.basedir = this.baseDir;
    manager = new NodeManager(log, nodeDirectory, mojo);

    File assets = new File(baseDir, "src/main/resources/assets");
    assets.mkdirs();

    FileUtils.copyDirectory(new File("src/test/resources"), assets);
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:20,代码来源:NpmRunnerMojoTest.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();
    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

示例4: 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

示例5: 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

示例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 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

示例7: 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

示例8: getNodeManager

import org.wisdom.maven.node.NodeManager; //导入依赖的package包/类
/**
 * @return the node manager.
 */
public NodeManager getNodeManager() {
    return node;
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:7,代码来源:AbstractWisdomMojo.java

示例9: setNodeManager

import org.wisdom.maven.node.NodeManager; //导入依赖的package包/类
/**
 * Sets the node manager. For testing purpose only.
 */
public void setNodeManager(NodeManager manager) {
    this.node = manager;
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:7,代码来源:AbstractWisdomMojo.java


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