protected void generate() throws Exception {
    String domain = "org.aries";
    String name = "common";
    String namespace = "http://www.aries.org/common";
    String version = "0.0.1-SNAPSHOT";

    // String inputPath = RUNTIME_LOCATION + "/" + FILE_NAME;
    ProjectBuilder builder = createProjectBuilder(FILE_NAME);
    Project project = builder.buildProject(domain, name, namespace, version);
    builder.buildInformationModel(project);
    // engine.generateModelLayer(inputPath);
    builder.generateProject(project);
  }
Ejemplo n.º 2
0
 protected ProjectBuilder createProjectBuilder(String fileName) throws Exception {
   ProjectBuilder builder = new ProjectBuilder(createContext());
   builder.initialize(fileName);
   return builder;
 }
Ejemplo n.º 3
0
 protected void generate() throws Exception {
   ProjectBuilder builder = createProjectBuilder(FILE_NAME);
   List<Project> projects = builder.buildProjects();
   builder.generateProjects(projects);
 }