Package org.jboss.forge.maven

Examples of org.jboss.forge.maven.ProjectImpl


      Resource<?> pom = dir.getChild("pom.xml");

      Project result = null;
      if (pom.exists())
      {
         result = new ProjectImpl(factory, dir);
         Facet facet = coreFacetInstance.get();
         facet.setProject(result);
         result.registerFacet(facet);
      }
      return result;
View Full Code Here


   public Project createProject(final DirectoryResource dir)
   {
      Project result = null;
      if ((dir != null) && dir.exists())
      {
         result = new ProjectImpl(factory, dir);
      }
      return result;
   }
View Full Code Here

      Resource<?> pom = dir.getChild("pom.xml");

      Project result = null;
      if (pom.exists())
      {
         result = new ProjectImpl(factory, dir);
         Facet facet = new MavenCoreFacetImpl(container, writer);
         facet.setProject(result);
         result.registerFacet(facet);
      }
      return result;
View Full Code Here

    }

    @Override
    public Project createProject(final DirectoryResource dir)
    {
        Project result = new ProjectImpl(factory, dir);
        MavenCoreFacet maven = coreFacetInstance.get();
        maven.setProject(result);
        if (!maven.isInstalled())
        {
            result.installFacet(maven);
        }
        else
            result.registerFacet(maven);
       
        if(!result.hasFacet(MavenCoreFacet.class))
        {
            throw new IllegalStateException("Could not create Maven project [MavenCoreFacet could not be installed.]");
        }

        return result;
View Full Code Here

    }

    @Override
    public Project createProject(final DirectoryResource dir)
    {
        Project result = new ProjectImpl(factory, dir);
        MavenCoreFacet maven = coreFacetInstance.get();
        maven.setProject(result);
        if (!maven.isInstalled())
        {
            result.installFacet(maven);
        }
        else
            result.registerFacet(maven);
       
        if(!result.hasFacet(MavenCoreFacet.class))
        {
            throw new IllegalStateException("Could not create Maven project [MavenCoreFacet could not be installed.]");
        }

        return result;
View Full Code Here

    public Project createProject(final DirectoryResource dir)
    {
        Project result = null;
        if ((dir != null) && dir.exists())
        {
            result = new ProjectImpl(factory, dir);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.jboss.forge.maven.ProjectImpl

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.