hudson.model.AbstractProject.handleInvocationTargetException()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中hudson.model.AbstractProject.handleInvocationTargetException()方法的一些代码示例,展示了AbstractProject.handleInvocationTargetException()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractProject.handleInvocationTargetException()方法的具体详情如下:
包路径:hudson.model.AbstractProject
类名称:AbstractProject
方法名:handleInvocationTargetException

AbstractProject.handleInvocationTargetException介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Loads an existing build record from disk.
 */
protected R loadBuild(File dir) throws IOException {
  try {
    return getBuildClass().getConstructor(getClass(), File.class).newInstance(this, dir);
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Loads an existing build record from disk.
 */
protected R loadBuild(File dir) throws IOException {
  try {
    return getBuildClass().getConstructor(getClass(),File.class).newInstance(this,dir);
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Loads an existing build record from disk.
 */
protected R loadBuild(File dir) throws IOException {
  try {
    return getBuildClass().getConstructor(getClass(),File.class).newInstance(this,dir);
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Loads an existing build record from disk.
 */
protected R loadBuild(File dir) throws IOException {
  try {
    return getBuildClass().getConstructor(getClass(), File.class).newInstance(this, dir);
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Creates a new build of this project for immediate execution.
 */
protected synchronized R newBuild() throws IOException {
  // make sure we don't start two builds in the same second
  // so the build directories will be different too
  long timeSinceLast = System.currentTimeMillis() - lastBuildStartTime;
  if (timeSinceLast < 1000) {
    try {
      Thread.sleep(1000 - timeSinceLast);
    } catch (InterruptedException e) {
    }
  }
  lastBuildStartTime = System.currentTimeMillis();
  try {
    R lastBuild = getBuildClass().getConstructor(getClass()).newInstance(this);
    builds.put(lastBuild);
    return lastBuild;
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Creates a new build of this project for immediate execution.
 */
protected synchronized R newBuild() throws IOException {
  // make sure we don't start two builds in the same second
  // so the build directories will be different too
  long timeSinceLast = System.currentTimeMillis() - lastBuildStartTime;
  if (timeSinceLast < 1000) {
    try {
      Thread.sleep(1000 - timeSinceLast);
    } catch (InterruptedException e) {
    }
  }
  lastBuildStartTime = System.currentTimeMillis();
  try {
    R lastBuild = getBuildClass().getConstructor(getClass()).newInstance(this);
    builds.put(lastBuild);
    return lastBuild;
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Creates a new build of this project for immediate execution.
 */
protected synchronized R newBuild() throws IOException {
  // make sure we don't start two builds in the same second
  // so the build directories will be different too
  long timeSinceLast = System.currentTimeMillis() - lastBuildStartTime;
  if (timeSinceLast < 1000) {
    try {
      Thread.sleep(1000 - timeSinceLast);
    } catch (InterruptedException e) {
    }
  }
  lastBuildStartTime = System.currentTimeMillis();
  try {
    R lastBuild = getBuildClass().getConstructor(getClass()).newInstance(this);
    builds.put(lastBuild);
    return lastBuild;
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Creates a new build of this project for immediate execution.
 */
protected synchronized R newBuild() throws IOException {
  // make sure we don't start two builds in the same second
  // so the build directories will be different too
  long timeSinceLast = System.currentTimeMillis() - lastBuildStartTime;
  if (timeSinceLast < 1000) {
    try {
      Thread.sleep(1000 - timeSinceLast);
    } catch (InterruptedException e) {
    }
  }
  lastBuildStartTime = System.currentTimeMillis();
  try {
    R lastBuild = getBuildClass().getConstructor(getClass()).newInstance(this);
    builds.put(lastBuild);
    return lastBuild;
  } catch (InstantiationException e) {
    throw new Error(e);
  } catch (IllegalAccessException e) {
    throw new Error(e);
  } catch (InvocationTargetException e) {
    throw handleInvocationTargetException(e);
  } catch (NoSuchMethodException e) {
    throw new Error(e);
  }
}

相关文章

微信公众号

最新文章

更多

AbstractProject类方法