@Test public void testGenerateSchemaVgrPicsara2melior() throws IOException { String grp = "se.vgregion.pilot"; String name = "picsara2melior-sas-003"; SystemUtil.delDirs(TEST_OUT_FOLDER + "/" + name + "-schemas"); assertEquals(0, SystemUtil.countFiles(TEST_OUT_FOLDER + "/" + name + "-schemas")); new SchemaComponentGenerator(System.out, grp, name, "1.0-SNAPSHOT", name, null, TEST_OUT_FOLDER, null).startGenerator(); assertEquals( "Missmatch in expected number of created files and folders", 9, SystemUtil.countFiles(TEST_OUT_FOLDER + "/" + name + "-schemas")); SystemUtil.executeCommand(BUILD_COMMAND, TEST_OUT_FOLDER + "/" + name + "-schemas"); }
public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } SchemaComponentGenerator(PrintStream ps, String groupId,
			String artifactId, String version, String schemaName,
			List<String> operations, String outputFolder, String sourceFolder); }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } SchemaComponentGenerator(PrintStream ps, String groupId,
			String artifactId, String version, String schemaName,
			List<String> operations, String outputFolder, String sourceFolder); void startGenerator(); }
SchemaComponentGenerator implements Generator { public void startGenerator() { if (sourceFile == null) { gu.logInfo("Generating WSDL + XML schema."); gu.copyContentAndCreateFile("src/main/resources/schemas/sample.xsd.gt"); gu.logInfo("Created file: " + "sample.xsd."); gu.copyContentAndCreateFile("src/main/resources/schemas/sampleService.wsdl.gt"); gu.logInfo("Created file: " + "sampleService.wsdl."); } else { FileUtil.copyFiles(sourceFile, targetFile); } initServiceDescriptorModel(); gu.generateContentAndCreateFile("pom.xml.gt"); gu.generateContentAndCreateFile("wcf.bat.gt"); } SchemaComponentGenerator(PrintStream ps, String groupId,
			String artifactId, String version, String schemaName,
			List<String> operations, String outputFolder, String sourceFolder); void startGenerator();  }