本文整理汇总了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;
}
示例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);
}
示例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";
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例8: getNodeManager
import org.wisdom.maven.node.NodeManager; //导入依赖的package包/类
/**
* @return the node manager.
*/
public NodeManager getNodeManager() {
return node;
}
示例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;
}