org.eclipse.equinox.internal.frameworkadmin.utils.Utils.createParentDir()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(115)

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

Utils.createParentDir介绍

暂无

代码示例

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.simpleconfigurator.manipulator

public static void writeConfiguration(BundleInfo[] simpleInfos, File outputFile) throws IOException {
  if (!Utils.createParentDir(outputFile)) {
    throw new IllegalStateException(Messages.exception_failedToCreateDir);
  }
  IOException caughtException = null;
  OutputStream stream = null;
  try {
    stream = new FileOutputStream(outputFile);
    writeConfiguration(simpleInfos, stream);
  } catch (IOException e) {
    caughtException = e;
  } finally {
    try {
      if (stream != null)
        stream.close();
    } catch (IOException e) {
      // we want to avoid over-writing the original exception
      if (caughtException != null)
        caughtException = e;
    }
  }
  if (caughtException != null)
    throw caughtException;
}

代码示例来源:origin: org.eclipse.equinox.simpleconfigurator/manipulator

public static void writeConfiguration(BundleInfo[] simpleInfos, File outputFile) throws IOException {
  if (!Utils.createParentDir(outputFile)) {
    throw new IllegalStateException(Messages.exception_failedToCreateDir);
  }
  IOException caughtException = null;
  OutputStream stream = null;
  try {
    stream = new FileOutputStream(outputFile);
    writeConfiguration(simpleInfos, stream);
  } catch (IOException e) {
    caughtException = e;
  } finally {
    try {
      if (stream != null)
        stream.close();
    } catch (IOException e) {
      // we want to avoid over-writing the original exception
      if (caughtException != null)
        caughtException = e;
    }
  }
  if (caughtException != null)
    throw caughtException;
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.simpleconfigurator.manipulator

public static void writeConfiguration(BundleInfo[] simpleInfos, File outputFile) throws IOException {
  if (!Utils.createParentDir(outputFile)) {
    throw new IllegalStateException(Messages.exception_failedToCreateDir);
  }
  IOException caughtException = null;
  OutputStream stream = null;
  try {
    stream = new FileOutputStream(outputFile);
    writeConfiguration(simpleInfos, stream);
  } catch (IOException e) {
    caughtException = e;
  } finally {
    try {
      if (stream != null)
        stream.close();
    } catch (IOException e) {
      // we want to avoid over-writing the original exception
      if (caughtException != null)
        caughtException = e;
    }
  }
  if (caughtException != null)
    throw caughtException;
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.simpleconfigurator.manipulator

if (!Utils.createParentDir(targetFile))
  return null;
return targetFile;

代码示例来源:origin: org.eclipse.equinox.simpleconfigurator/manipulator

if (!Utils.createParentDir(targetFile))
  return null;
return targetFile;

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.simpleconfigurator.manipulator

if (!Utils.createParentDir(targetFile))
  return null;
return targetFile;

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.frameworkadmin.equinox

if (!Utils.createParentDir(launcherConfigFile)) {
  throw new IllegalStateException(Messages.exception_failedToCreateDir);

代码示例来源:origin: org.eclipse.equinox.frameworkadmin/equinox

if (!Utils.createParentDir(launcherConfigFile)) {
  throw new IllegalStateException(Messages.exception_failedToCreateDir);

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.frameworkadmin.equinox

return;
if (!Utils.createParentDir(outputFile)) {
  throw new IllegalStateException(NLS.bind(Messages.exception_failedToCreateDir, outputFile.getParent()));

代码示例来源:origin: org.eclipse.equinox.frameworkadmin/equinox

return;
if (!Utils.createParentDir(outputFile)) {
  throw new IllegalStateException(NLS.bind(Messages.exception_failedToCreateDir, outputFile.getParent()));

相关文章