org.apache.cxf.helpers.FileUtils.mkDir()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(117)

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

FileUtils.mkDir介绍

暂无

代码示例

代码示例来源:origin: apache/cxf

protected String getLocation(String wsdlFile) throws Exception {
    File output = new File(getClass().getResource(".").toURI());
    output = new File(output, "resources");

    if (!output.exists()) {
      FileUtils.mkDir(output);
    }

    return new File(output, wsdlFile).toString();
  }
}

代码示例来源:origin: org.apache.cxf/cxf-tools-common

protected String getLocation(String wsdlFile) throws Exception {
    File output = new File(getClass().getResource(".").toURI());
    output = new File(output, "resources");

    if (!output.exists()) {
      FileUtils.mkDir(output);
    }

    return new File(output, wsdlFile).toString();
  }
}

代码示例来源:origin: apache/cxf

FileUtils.mkDir(new File(outputFile).getParentFile());

代码示例来源:origin: jboss-fuse/fabric8

FileUtils.mkDir(new File(outputFile).getParentFile());
writer = new BufferedWriter(new FileWriter(outputFile));
writer.write(swagger);

代码示例来源:origin: org.apache.cxf/cxf-java2wadl-plugin

FileUtils.mkDir(new File(outputFile).getParentFile());

代码示例来源:origin: apache/cxf

FileUtils.mkDir(new File(outputFile).getParentFile());
writer = new BufferedWriter(new FileWriter(outputFile));
if ("json".equals(this.payload)) {

代码示例来源:origin: apache/cxf

public File parseOutputName(String packageName, String filename, String ext) throws ToolException {
  FileUtils.mkDir(new File(this.baseDir));
  FileWriterUtil fw = new FileWriterUtil(this.baseDir, null);
  try {
    return fw.getFileToWrite(packageName, filename + ext);
  } catch (IOException ioe) {
    Message msg = new Message("FAIL_TO_WRITE_FILE", LOG, packageName + "." + filename + ext);
    throw new ToolException(msg, ioe);
  }
}

代码示例来源:origin: org.kuali.maven.impex/torque-generator

protected void serialize() throws BuildException {
  Writer out = null;
  try {
    FileUtils.mkDir(new File(FilenameUtils.getFullPath(getSchemaXMLFile().getCanonicalPath())));
    out = new PrintWriter(new FileOutputStream(getSchemaXMLFile()));
    OutputFormat format = new OutputFormat(Method.XML, getEncoding(), true);
    XMLSerializer xmlSerializer = new XMLSerializer(out, format);
    xmlSerializer.serialize(doc);
  } catch (Exception e) {
    throw new BuildException("Error serializing", e);
  } finally {
    IOUtils.closeQuietly(out);
  }
}

代码示例来源:origin: apache/cxf

FileUtils.mkDir(new File(outputFile).getParentFile());
args.add("-o");
args.add(outputFile);

代码示例来源:origin: org.apache.cxf/cxf-tools-common

public File parseOutputName(String packageName, String filename, String ext) throws ToolException {
  FileUtils.mkDir(new File(this.baseDir));
  FileWriterUtil fw = new FileWriterUtil(this.baseDir, null);
  try {
    return fw.getFileToWrite(packageName, filename + ext);
  } catch (IOException ioe) {
    Message msg = new Message("FAIL_TO_WRITE_FILE", LOG, packageName + "." + filename + ext);
    throw new ToolException(msg, ioe);
  }
}

代码示例来源:origin: org.apache.cxf/cxf-java2ws-plugin

FileUtils.mkDir(new File(outputFile).getParentFile());
args.add("-o");
args.add(outputFile);

代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-client

} else {
  sourceTempDir = new File(outputDir, "tmp" + Math.round(Math.random() * 10000000));
  FileUtils.mkDir(sourceTempDir);
  args.add("-d");
  args.add(sourceTempDir.getAbsolutePath());

相关文章