本文整理了Java中org.apache.tools.ant.Project.getCoreLoader()
方法的一些代码示例,展示了Project.getCoreLoader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getCoreLoader()
方法的具体详情如下:
包路径:org.apache.tools.ant.Project
类名称:Project
方法名:getCoreLoader
[英]Return the core classloader to use for this project. This may be null
, indicating that the parent classloader should be used.
[中]返回用于此项目的核心类加载器。这可能是null
,表示应该使用父类加载器。
代码示例来源:origin: org.apache.ant/ant
private ClassLoader getClassLoader(ClassLoader classLoader) {
String buildSysclasspath = project.getProperty(MagicNames.BUILD_SYSCLASSPATH);
if (project.getCoreLoader() != null
&& !(BUILD_SYSCLASSPATH_ONLY.equals(buildSysclasspath))) {
classLoader = project.getCoreLoader();
}
return classLoader;
}
代码示例来源:origin: org.apache.ant/ant
} else {
loader = project.createClassLoader(classpath);
loader.setParent(project.getCoreLoader());
loader.setParentFirst(false);
loader.addJavaLibraries();
代码示例来源:origin: org.apache.ant/ant
AntClassLoader.newAntClassLoader(getProject().getCoreLoader(),
getProject(),
classpath, false)) {
代码示例来源:origin: org.apache.ant/ant
} else {
cl = AntClassLoader.newAntClassLoader(getProject()
.getCoreLoader(),
getProject(),
p, false);
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Return the classloader to use.
*/
protected ClassLoader getClassLoader() {
if (_cl != null)
return _cl;
if (classpath != null)
_cl = new AntClassLoader(project, classpath, useParent);
else
_cl = new AntClassLoader(project.getCoreLoader(), project,
new Path(project), useParent);
_cl.setIsolated(isolate);
return _cl;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Return the classloader to use.
*/
protected ClassLoader getClassLoader() {
if (_cl != null)
return _cl;
if (classpath != null)
_cl = new AntClassLoader(getProject(), classpath, useParent);
else
_cl = new AntClassLoader(getProject().getCoreLoader(), getProject(),
new Path(getProject()), useParent);
_cl.setIsolated(isolate);
return _cl;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Return the classloader to use.
*/
protected ClassLoader getClassLoader() {
if (_cl != null)
return _cl;
if (classpath != null)
_cl = new AntClassLoader(getProject(), classpath, useParent);
else
_cl = new AntClassLoader(getProject().getCoreLoader(), getProject(),
new Path(getProject()), useParent);
_cl.setIsolated(isolate);
return _cl;
}
代码示例来源:origin: org.apache.openjpa/openjpa-lib
/**
* Return the classloader to use.
*/
protected ClassLoader getClassLoader() {
if (_cl != null)
return _cl;
if (classpath != null)
_cl = new AntClassLoader(getProject(), classpath, useParent);
else
_cl = new AntClassLoader(getProject().getCoreLoader(), getProject(),
new Path(getProject()), useParent);
_cl.setIsolated(isolate);
return _cl;
}
内容来源于网络,如有侵权,请联系作者删除!