本文整理了Java中org.apache.ivy.Ivy.execute()
方法的一些代码示例,展示了Ivy.execute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.execute()
方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称:Ivy
方法名:execute
[英]Executes the given callback in the context of this Ivy instance.
Alternatively you can use the #pushContext() and #popContext() methods, but this is not recommended:
Object result = null;
pushContext();
try {
result = callback.doInIvyContext(this, IvyContext.getContext());
} finally {
popContext();
}
doSomethingWithResult(result);
[中]
代码示例来源:origin: org.hudsonci.plugins/ivy
final File ivyFile = new File(ws, ivyFilePath);
ModuleDescriptor module = (ModuleDescriptor) ivy.execute(new IvyCallback() {
public Object doInIvyContext(Ivy ivy, IvyContext context) {
try {
代码示例来源:origin: org.jenkins-ci.plugins/ivy
final File ivyFile = new File(ws, ivyFilePath);
ModuleDescriptor module = (ModuleDescriptor) ivy.execute(new IvyCallback() {
public Object doInIvyContext(Ivy ivy, IvyContext context) {
try {
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
final File ivyFile = new File(ws, ivyFilePath);
ModuleDescriptor module = (ModuleDescriptor) ivy.execute(new IvyCallback() {
public Object doInIvyContext(Ivy ivy, IvyContext context) {
try {
代码示例来源:origin: org.jenkins-ci.plugins/ivy
return (ModuleDescriptor) ivy.execute(new IvyCallback(){
public Object doInIvyContext(Ivy ivy, IvyContext context) {
try {
代码示例来源:origin: org.hudsonci.plugins/ivy
setModuleDescriptor((ModuleDescriptor) ivy.execute(new IvyCallback(){
public Object doInIvyContext(Ivy ivy, IvyContext context) {
try {
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
setModuleDescriptor((ModuleDescriptor) ivy.execute(new IvyCallback(){
public Object doInIvyContext(Ivy ivy, IvyContext context) {
try {
内容来源于网络,如有侵权,请联系作者删除!