本文整理了Java中org.apache.tools.ant.taskdefs.Java.createClasspath()
方法的一些代码示例,展示了Java.createClasspath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Java.createClasspath()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Java
类名称:Java
方法名:createClasspath
[英]Add a path to the classpath.
[中]将路径添加到类路径。
代码示例来源:origin: org.apache.ant/ant
/**
* Set the classpath to use by reference.
*
* @param r a reference to an existing classpath.
*/
public void setClasspathRef(Reference r) {
createClasspath().setRefid(r);
}
代码示例来源:origin: org.apache.ant/ant
/**
* Set the classpath to be used when running the Java class.
*
* @param s an Ant Path object containing the classpath.
*/
public void setClasspath(Path s) {
createClasspath().append(s);
}
代码示例来源:origin: andrena/macker
public Path createClasspath() {
return classPath = getJvm().createClasspath();
}
代码示例来源:origin: net.sourceforge.cobertura/cobertura
public Path createClasspath() {
return getJava().createClasspath().createPath();
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc}
*/
@Override
public void addClasspathEntries(String... paths)
{
if (paths != null)
{
Path cp = this.java.createClasspath();
for (String path : paths)
{
cp.createPathElement().setPath(path);
}
}
}
代码示例来源:origin: christ66/cobertura
public Path createClasspath() {
return getJava().createClasspath().createPath();
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc}
*/
@Override
public void addClasspathEntries(File... paths)
{
if (paths != null)
{
Path cp = this.java.createClasspath();
for (File path : paths)
{
cp.createPathElement().setLocation(path);
}
}
}
代码示例来源:origin: org.codehaus.groovy/groovy-ant
private void createClasspathParts() {
Path path;
if (classpath != null) {
path = super.createClasspath();
path.setPath(classpath.toString());
path = super.createClasspath();
path.setPath(System.getProperty("java.class.path"));
path = super.createClasspath();
path.setLocation(file);
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
private void createClasspathParts() {
Path path;
if (classpath != null) {
path = super.createClasspath();
path.setPath(classpath.toString());
path = super.createClasspath();
path.setPath(System.getProperty("java.class.path"));
path = super.createClasspath();
path.setLocation(file);
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
private void createClasspathParts() {
Path path;
if (classpath != null) {
path = super.createClasspath();
path.setPath(classpath.toString());
path = super.createClasspath();
path.setPath(System.getProperty("java.class.path"));
path = super.createClasspath();
path.setLocation(file);
代码示例来源:origin: org.kohsuke.droovy/groovy
private void createClasspathParts() {
Path path;
if (classpath != null) {
path = super.createClasspath();
path.setPath(classpath.toString());
path = super.createClasspath();
path.setPath(System.getProperty("java.class.path"));
path = super.createClasspath();
path.setLocation(file);
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
private void createClasspathParts() {
Path path;
if (classpath != null) {
path = super.createClasspath();
path.setPath(classpath.toString());
path = super.createClasspath();
path.setPath(System.getProperty("java.class.path"));
path = super.createClasspath();
path.setLocation(file);
代码示例来源:origin: martinpaljak/ant-javacard
private void addKitClasses(Java j) {
Project project = getProject();
// classpath to jckit bits
Path cp = j.createClasspath();
for (File jar : jckit.getToolJars()) {
cp.append(new Path(project, jar.getPath()));
}
j.setClasspath(cp);
}
代码示例来源:origin: net.sf.antenna/antenna
java.createClasspath().setPath(
home != null ? new File(home + "/lib", "proguard.jar").getAbsolutePath() : getWtkRelative("bin/proguard.jar"));
java.createClasspath().setPath(System.getProperty("java.class.path"));
代码示例来源:origin: org.apache.geronimo.genesis.plugins/plugin-support
setClassPath(java.createClasspath());
代码示例来源:origin: net.sf.antenna/antenna
java.setProject(getProject());
java.setTaskName(this.getTaskName());
java.createClasspath().setPath(converter);
java.setClassname("com.sun.midp.palm.database.MakeMIDPApp");
java.setFork(true);
代码示例来源:origin: wvengen/proguard-maven-plugin
java.createClasspath().setLocation(proguardJar);
代码示例来源:origin: com.atlassian.maven.plugins/amps-maven-plugin
private AntJavaExecutorThread execFishEyeCmd(String bootCommand, final Product ctx, boolean useDebugArgs) throws MojoExecutionException
{
final Map<String, String> properties = mergeSystemProperties(ctx);
Java java = javaTaskFactory.newJavaTask(
output(ctx.getOutput()).
systemProperties(properties).
jvmArgs(ctx.getJvmArgs() + (useDebugArgs ? ctx.getDebugArgs() : "")));
addOverridesToJavaTask(ctx, java);
Path classpath = java.createClasspath();
classpath.createPathElement().setLocation(new File(getAppDirectory(ctx), "fisheyeboot.jar"));
java.setClassname("com.cenqua.fisheye.FishEyeCtl");
java.createArg().setValue(bootCommand);
AntJavaExecutorThread javaThread = new AntJavaExecutorThread(java);
javaThread.start();
return javaThread;
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
private AntJavaExecutorThread execFishEyeCmd(String bootCommand, final Product ctx, boolean useDebugArgs) throws MojoExecutionException
{
final Map<String, String> properties = mergeSystemProperties(ctx);
Java java = javaTaskFactory.newJavaTask(
output(ctx.getOutput()).
systemProperties(properties).
jvmArgs(ctx.getJvmArgs() + (useDebugArgs ? ctx.getDebugArgs() : "")));
addOverridesToJavaTask(ctx, java);
Path classpath = java.createClasspath();
classpath.createPathElement().setLocation(new File(getAppDirectory(ctx), "fisheyeboot.jar"));
java.setClassname("com.cenqua.fisheye.FishEyeCtl");
java.createArg().setValue(bootCommand);
AntJavaExecutorThread javaThread = new AntJavaExecutorThread(java);
javaThread.start();
return javaThread;
}
代码示例来源:origin: com.atlassian.maven.plugins/amps-maven-plugin
java.createClasspath().createPathElement().setLocation(app);
内容来源于网络,如有侵权,请联系作者删除!