/** * Creates the output file * * @param packageName * @param fileName * @throws Exception */ private File createOutFile(String packageName, String fileName) throws Exception { return org.apache.axis2.util.FileWriter.createClassFile(this.rootDir, packageName, fileName, ".java"); }
/** * Creates the output file * * @param packageName * @param fileName * @throws Exception */ private File createOutFile(String packageName, String fileName) throws Exception { return org.apache.axis2.util.FileWriter.createClassFile(this.rootDir, packageName, fileName, ".java"); }
/** * Creates the output file * * @param fileName * @param extension * @throws Exception */ protected File createOutFile(String fileName, String extension, String prefix) throws Exception { return org.apache.axis2.util.FileWriter.createClassFile(this.rootDir, "", (prefix == null ? AXIS2_PREFIX : prefix) + fileName, extension); }
/** * Creates the output file * * @param fileName * @param extension * @throws Exception */ protected File createOutFile(String fileName, String extension, String prefix) throws Exception { return org.apache.axis2.util.FileWriter.createClassFile(this.rootDir, "", (prefix == null ? AXIS2_PREFIX : prefix) + fileName, extension); }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, packageName, "services", ".xml"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists || this.isOverride) { this.stream = new FileOutputStream(outputFile); } } }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", "build", ".xml"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", "build", ".sh"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } } }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", "services", ".xml"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } } }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", fileName, ".h"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } }
public void createOutFile(String packageName, String fileName) throws Exception { File outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, packageName, fileName, ".xml"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } } }
public void createOutFile(String packageName, String fileName) throws Exception { String outfilename = serviceName + (isServerSide ?"Service":"Client"); outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", outfilename, ".vcproj"); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } } }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", fileName, getFileExtensionForLanguage(language)); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } }
public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, "", fileName, getFileExtensionForLanguage(language)); //set the existing flag fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } }
public void writeWSDL(AxisService axisService) { try { if (axisService != null) { //create a output file File outputFile = FileWriter.createClassFile(baseFolder, null, axisService.getName(), ".wsdl"); FileOutputStream fos = new FileOutputStream(outputFile); axisService.printWSDL(fos); fos.flush(); fos.close(); } } catch (Exception e) { throw new RuntimeException("WSDL writing failed!", e); } }
public void writeWSDL(AxisService axisService) { try { if (axisService != null) { //create a output file File outputFile = FileWriter.createClassFile(baseFolder, null, axisService.getName(), ".wsdl"); FileOutputStream fos = new FileOutputStream(outputFile); axisService.printWSDL2(fos); fos.flush(); fos.close(); } } catch (Exception e) { throw new RuntimeException("WSDL writing failed!", e); } }
/** * Creates the output file. * * @param packageName * @param fileName * @throws Exception */ public void createOutFile(String packageName, String fileName) throws Exception { outputFile = org.apache.axis2.util.FileWriter.createClassFile(outputFileLocation, packageName, fileName, getFileExtensionForLanguage(language)); //set the existing flag if (this.isOverride) { this.stream = new FileOutputStream(outputFile); } else { fileExists = outputFile.exists(); if (!fileExists) { this.stream = new FileOutputStream(outputFile); } else { log.info(Messages.getMessage("fileExistsNoOverwrite", outputFile.toString())); } } }
public void writeSchema(XmlSchema schema, String schemaFileName) { try { if (schema != null) { //create a output file File outputFile = FileWriter.createClassFile(baseFolder, null, schemaFileName.substring(0, schemaFileName.lastIndexOf( ".")), ".xsd"); FileOutputStream fos = new FileOutputStream(outputFile); //set the options for the schemas schema.write(fos,getDefaultOptionMap()); fos.flush(); fos.close(); XMLPrettyPrinter.prettify(outputFile); } } catch (Exception e) { throw new RuntimeException("Schema writing failed!", e); } }
File outputFile = FileWriter.createClassFile(baseFolder, null, fileName, null); FileOutputStream out = new FileOutputStream(outputFile);