本文整理了Java中org.apache.tools.ant.Project.setCoreLoader()
方法的一些代码示例,展示了Project.setCoreLoader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.setCoreLoader()
方法的具体详情如下:
包路径:org.apache.tools.ant.Project
类名称:Project
方法名:setCoreLoader
[英]Set the core classloader for the project. If a null
classloader is specified, the parent classloader should be used.
[中]为项目设置核心类加载器。如果指定了null
类加载器,则应使用父类加载器。
代码示例来源:origin: org.apache.ant/ant
project.setCoreLoader(coreLoader);
代码示例来源:origin: org.apache.ant/ant
getProject().setCoreLoader(acl);
代码示例来源:origin: org.openl/org.openl.conf.ant
public AntHelper(String antFile, String targetName, Properties props) {
project = new Project();
project.init();
project.addBuildListener(createLogger());
project.setCoreLoader(Thread.currentThread().getContextClassLoader());
if (props != null) {
for (Iterator<Map.Entry<Object, Object>> iter = props.entrySet().iterator(); iter.hasNext();) {
Map.Entry<Object, Object> element = iter.next();
project.setProperty((String) element.getKey(), (String) element.getValue());
}
}
ProjectHelper helper = ProjectHelper.getProjectHelper();
project.addReference("ant.projectHelper", helper);
helper.parse(project, new File(antFile));
project.executeTarget(targetName);
}
代码示例来源:origin: dita-ot/dita-ot
final File buildFile = new File(ditaDir, "build.xml");
final Project project = new Project();
project.setCoreLoader(this.getClass().getClassLoader());
代码示例来源:origin: dita-ot/dita-ot
project.setCoreLoader(coreLoader);
内容来源于网络,如有侵权,请联系作者删除!