Package org.jboss.forge.projects

Examples of org.jboss.forge.projects.ProjectType


      // Add Project types
      List<ProjectType> projectTypes = new ArrayList<ProjectType>();
      for (ExportedInstance<ProjectType> instance : registry.getExportedInstances(ProjectType.class))
      {
         ProjectType projectType = instance.get();
         projectTypes.add(projectType);
         type.setDefaultValue(projectType);
      }
      type.setValueChoices(projectTypes);
      builder.add(named).add(topLevelPackage).add(targetLocation).add(overwrite).add(type);
View Full Code Here


      DirectoryResource directory = targetLocation.getValue();
      DirectoryResource targetDir = directory.getChildDirectory(named.getValue());

      if (targetDir.mkdirs() || overwrite.getValue())
      {
         ProjectType value = type.getValue();

         Project project = null;
         if (value != null)
         {
            project = projectFactory.createProject(targetDir, value.getRequiredFacets());
         }
         else
         {
            project = projectFactory.createProject(targetDir);
         }
View Full Code Here

      // Add Project types
      List<ProjectType> projectTypes = new ArrayList<ProjectType>();
      for (ExportedInstance<ProjectType> instance : registry.getExportedInstances(ProjectType.class))
      {
         ProjectType projectType = instance.get();
         projectTypes.add(projectType);
         type.setDefaultValue(projectType);
      }
      type.setValueChoices(projectTypes);
      builder.add(named).add(topLevelPackage).add(targetLocation).add(overwrite).add(type);
View Full Code Here

TOP

Related Classes of org.jboss.forge.projects.ProjectType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.