Examples of Archetype


Examples of org.apache.maven.archetype.catalog.Archetype

  {
    final IteratorSearchResponse infos = listArchetypes(request, ctx);

    try {
      final ArchetypeCatalog catalog = new ArchetypeCatalog();
      Archetype archetype = null;
      // fill it in
      for (ArtifactInfo info : infos) {
        archetype = new Archetype();
        archetype.setGroupId(info.groupId);
        archetype.setArtifactId(info.artifactId);
        archetype.setVersion(info.version);
        archetype.setDescription(info.description);

        if (StringUtils.isNotEmpty(request.getRepositoryUrl())) {
          archetype.setRepository(request.getRepositoryUrl());
        }
        catalog.addArchetype(archetype);
      }
      return catalog;
    }
View Full Code Here

Examples of org.apache.maven.archetype.catalog.Archetype

                ArtifactInfo.VERSION_COMPARATOR, //
                new TermQuery( new Term( ArtifactInfo.PACKAGING, "maven-archetype" ) ) );

            for ( ArtifactInfo info : artifacts )
            {
                Archetype archetype = new Archetype();
                archetype.setGroupId( info.groupId );
                archetype.setArtifactId( info.artifactId );
                archetype.setVersion( info.version );
                archetype.setDescription( info.description );
                archetype.setRepository( repositories.get( info.repository ) );

                catalog.addArchetype( archetype );
            }
        }
        catch ( Exception ex )
View Full Code Here

Examples of org.openehr.am.archetype.Archetype

        path = "../archetypes/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl";
        //path = "../archetypes/openEHR-EHR-OBSERVATION.body_weight.v1.adl";
        //path = "../archetypes/openEHR-EHR-OBSERVATION.body_mass_index.v1.adl";

        File file = new File(path);
        Archetype archetype = null;

        try {
            ADLParser adlParser = new ADLParser(file);
//            try {
//                List attr_vals;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.