Package org.kie.builder

Examples of org.kie.builder.GAV


               
                kModules.add( kModuleModel );
                urls.put( kModuleModel,
                          fixedURL );

                GAV gav = kModule.getGAV();
                kJars.put( gav,
                           kModule );

                log.debug( "Discovered classpath module " + gav.toExternalForm() );
               
                kr.addKieModule(kModule);

            } catch ( Exception exc ) {
                log.error( "Unable to build index of kmodule.xml url=" + url.toExternalForm() + "\n" + exc.getMessage() );
View Full Code Here


    public static InternalKieModule fetchKModule(URL url, String fixedURL) {
        KieModuleModel kieProject = KieModuleModelImpl.fromXML( url );

        String pomProperties = getPomProperties( fixedURL );
       
        GAV gav = GAVImpl.fromPropertiesString( pomProperties );

        String rootPath = fixedURL;
        if ( rootPath.lastIndexOf( ':' ) > 0 ) {
            rootPath = fixedURL.substring( rootPath.lastIndexOf( ':' ) + 1 );
        }
View Full Code Here

        return "META-INF/maven/" + groupId + "/" + artifactId + "/pom.properties";
    }   
   
    public static GAV fromPropertiesString(String string) {
        Properties props = new Properties();
        GAV gav = null;
        try {
            props.load( new StringReader( string ) );
            String groupId = props.getProperty( "groupId" );
            String artifactId = props.getProperty( "artifactId" );
            String version = props.getProperty( "version" );           
View Full Code Here

TOP

Related Classes of org.kie.builder.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.