class Producer {

    public void produceProject(String config) throws Exception {
        codes = Config.yamlInit(config);
        String projectPath = codes.getProject().getBaseDir() + File.separator + codes.getProject().getName();
        String createProjectResponse = GradleUtil.executeGradleCmd(projectPath, "init");
        System.out.println(createProjectResponse);
        configGradle();
        copyConfig();
    }

}

class ProducerTest {

    @Test
    public void productProject() throws IOException, InterruptedException {

        Producer producer = new Producer();
        producer.produceProject();
    }

}