Package org.springframework.roo.project

Examples of org.springframework.roo.project.GAV


        final String coordinates = StringUtils.join(
                Arrays.asList(groupId, artifactId, version),
                MavenUtils.COORDINATE_SEPARATOR);

        // Invoke
        final GAV gav = converter.convertFromText(coordinates, GAV.class, null);

        // Check
        assertEquals(groupId, gav.getGroupId());
        assertEquals(artifactId, gav.getArtifactId());
        assertEquals(version, gav.getVersion());
    }
View Full Code Here


    }

    @Test
    public void testSupportsSubclassOfGAV() {
        // Set up
        final Class<? extends GAV> subclass = new GAV("a", "b", "c") {
        }.getClass();

        // Invoke and check
        assertTrue(converter.supports(subclass, null));
    }
View Full Code Here

        this.name = StringUtils.stripToEmpty(name);
        this.packaging = packaging;
        this.parent = parent;

        if(version == null && parent.getVersion() != null) {
          gav = new GAV(groupId, artifactId, parent.getVersion());
        }
        else {
          gav = new GAV(groupId, artifactId, version);
        }
      
        this.path = path;
        this.sourceDirectory = StringUtils.defaultIfEmpty(sourceDirectory,
                Path.SRC_MAIN_JAVA.getDefaultLocation());
View Full Code Here

TOP

Related Classes of org.springframework.roo.project.GAV

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.