Package org.apache.felix.scrplugin

Examples of org.apache.felix.scrplugin.Result


            generator.setOptions(options);
            generator.setProject(project);

            this.removePossiblyStaleFiles(scanner.getSources(), options);

            final Result result = generator.execute();
            this.setServiceComponentHeader(options);

            if ( !this.updateProjectResources() ) {
                this.setIncludeResourceHeader(options);
            }
            this.cleanUpDeletedSources(scanner.getDeletedSources(), options);

            this.refreshMessages(result.getProcessedSourceFiles());
            this.updateBuildContext(result);

        } catch (final SCRDescriptorException sde) {
            throw new MojoExecutionException(sde.getSourceLocation() + " : " + sde.getMessage(), sde);
        } catch (final SCRDescriptorFailureException sdfe) {
View Full Code Here


      // setup from plugin configuration
      generator.setOptions(options);
      generator.setProject(project);

      Result r = generator.execute();

      // Embed scr descriptors in target jar
      List<String> scrFiles = r.getScrFiles();
      if (scrFiles != null) {
        StringBuilder sb = new StringBuilder();
        for (String scrFile : scrFiles) {
          log.info("SCR descriptor result file: " + scrFile);
          sb.append(scrFile);
          sb.append(",");
          putResource(analyzer, scrFile);
        }
        sb.setLength(sb.length() - 1);
        addServiceComponentHeader(analyzer, sb.toString());
      }

      // Embed metatype descriptors in target jar
      List<String> metaTypeFiles = r.getMetatypeFiles();
      if (metaTypeFiles != null) {
        for (String metaTypeFile : metaTypeFiles) {
          log.info("Meta Type result file: " + metaTypeFile);
          putResource(analyzer, metaTypeFile);
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.scrplugin.Result

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.