Package pt.webdetails.cpf.packager.origin

Examples of pt.webdetails.cpf.packager.origin.PluginRepositoryOrigin


        if(!StringUtils.isEmpty(origin)) {
          if (StringUtils.equals(origin, "static")) {
            locations.add(new StaticSystemOrigin(path));
          }
          else if (StringUtils.equals(origin, "repo")) {
            locations.add(new PluginRepositoryOrigin(CdeEngine.getEnv().getPluginRepositoryDir(), path));
          }
        }
        else {
          logger.error("Must specify origin (static|repo), location '" + path + " 'ignored.");
        }
View Full Code Here


    logger.info( String.format( "Loading WIDGET components from: %s", WIDGETS_DIR ) );

    List<IBasicFile> filesList = CdeEnvironment.getPluginRepositoryReader( WIDGETS_DIR ).listFiles( null,
        new GenericBasicFileFilter( COMPONENT_FILENAME, DEFINITION_FILE_EXT ), IReadAccess.DEPTH_ALL, false, true );
    PathOrigin widgetsOrigin = new PluginRepositoryOrigin( CdeEngine.getEnv().getPluginRepositoryDir(), WIDGETS_DIR );

    if ( filesList != null ) {
      logger.debug( String.format( "%s widget components found", filesList.size() ) );
      IBasicFile[] filesArray = filesList.toArray( new IBasicFile[] { } );
      Arrays.sort( filesArray, getComponentFileComparator() );
View Full Code Here

TOP

Related Classes of pt.webdetails.cpf.packager.origin.PluginRepositoryOrigin

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.