Package org.apache.felix.scrplugin

Examples of org.apache.felix.scrplugin.SCRDescriptorGenerator


            throw new MojoExecutionException("Unknown spec version specified: " + specVersion);
        }

        try {

            final SCRDescriptorGenerator generator = new SCRDescriptorGenerator(
                    scrLog);

            // setup from plugin configuration
            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);
            }
View Full Code Here


            options.setSpecVersion(SpecVersion.fromName(specVersion));
            if ( specVersion != null && options.getSpecVersion() == null ) {
                throw new BuildException("Unknown spec version specified: " + specVersion);
            }

            final SCRDescriptorGenerator generator = new SCRDescriptorGenerator( scrLog );

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

            generator.execute();
        } catch ( final SCRDescriptorException sde ) {
            if ( sde.getSourceLocation() != null )  {
                final Location loc = new Location( sde.getSourceLocation(), -1, 0 );
                throw new BuildException( sde.getMessage(), sde.getCause(), loc );
            }
View Full Code Here

      options.setGenerateAccessors(generateAccessor);
      options.setStrictMode(strictMode);
      options.setProperties(new HashMap<String, String>());
      options.setSpecVersion(specVersion);

      final SCRDescriptorGenerator generator = new SCRDescriptorGenerator(
          log);

      // 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();
View Full Code Here

TOP

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

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.