Package com.google.code.mojo.license.header

Examples of com.google.code.mojo.license.header.Header


        }
        catch(Exception e)
        {
            throw new MojoExecutionException(e.getMessage(), e);
        }
        Header header = readFrom(location, mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for(Document document : selectedDocuments())
        {
            if(document.isNotSupported())
            {
                warn("Unknown file extension: %s", document.getFile());
View Full Code Here


        }
        catch(Exception e)
        {
            throw new MojoExecutionException(e.getMessage(), e);
        }
        Header header = readFrom(location, mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for(Document document : selectedDocuments())
        {
            if(document.isNotSupported())
            {
                warn("Unknown file extension: %s", document.getFile());
View Full Code Here

    protected MavenProject project;

    protected final void execute(Callback callback)
    {
        URL location = newResourceFactory(basedir).findResource(this.header);
        Header header = readFrom(location, mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for(Document document : selectedDocuments())
        {
            if(document.isNotSupported())
            {
                warn("Unknown file extension: %s", document.getFile());
View Full Code Here

    protected MavenProject project;

    protected final void execute(Callback callback)
    {
        URL location = newResourceFactory(basedir).findResource(this.header);
        Header header = readFrom(location, mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for(Document document : selectedDocuments())
        {
            if(document.isNotSupported())
            {
                warn("Unknown file extension: %s", document.getFile());
View Full Code Here

            } catch (DependencyResolutionRequiredException e) {
                throw new MojoExecutionException(e.getMessage(), e);
            }
            finder.setPluginClassPath(getClass().getClassLoader());

            final Header h = new Header(finder.findResource(this.header), mergeProperties());
            debug("Header %s:\n%s", h.getLocation(), h);

            if (this.validHeaders == null) this.validHeaders = new String[0];
            final List<Header> validHeaders = new ArrayList<Header>(this.validHeaders.length);
            for (String validHeader : this.validHeaders)
                validHeaders.add(new Header(finder.findResource(validHeader), mergeProperties()));

            final DocumentFactory documentFactory = new DocumentFactory(basedir, buildMapping(), buildHeaderDefinitions(), encoding, keywords);

            int nThreads = (int) (Runtime.getRuntime().availableProcessors() * concurrencyFactor);
            ExecutorService executorService = Executors.newFixedThreadPool(nThreads);
View Full Code Here

        } catch (DependencyResolutionRequiredException e) {
            throw new MojoExecutionException(e.getMessage(), e);
        }
        finder.setPluginClassPath(getClass().getClassLoader());

        Header header = new Header(finder.findResource(this.header), mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for (Document document : selectedDocuments()) {
            if (document.isNotSupported()) {
                warn("Unknown file extension: %s", document.getFile());
            } else if (document.is(header)) {
                debug("Skipping header file: %s", document.getFile());
View Full Code Here

        }
        catch(Exception e)
        {
            throw new MojoExecutionException(e.getMessage(), e);
        }
        Header header = readFrom(location, mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for(Document document : selectedDocuments())
        {
            if(document.isNotSupported())
            {
                warn("Unknown file extension: %s", document.getFile());
View Full Code Here

        }
        catch(Exception e)
        {
            throw new MojoExecutionException(e.getMessage(), e);
        }
        Header header = readFrom(location, mergeProperties());
        debug("Header %s:\n%s", header.getLocation(), header);
        for(Document document : selectedDocuments())
        {
            if(document.isNotSupported())
            {
                warn("Unknown file extension: %s", document.getFile());
View Full Code Here

            } catch (DependencyResolutionRequiredException e) {
                throw new MojoExecutionException(e.getMessage(), e);
            }
            finder.setPluginClassPath(getClass().getClassLoader());

            Header h = new Header(finder.findResource(this.header), mergeProperties());
            debug("Header %s:\n%s", h.getLocation(), h);
            for (Document document : selectedDocuments()) {
                if (document.isNotSupported()) {
                    warn("Unknown file extension: %s", document.getFile());
                } else if (document.is(h)) {
                    debug("Skipping header file: %s", document.getFile());
View Full Code Here

    @BeforeClass
    public void setup() throws MalformedURLException {
        Map<String, String> props = new HashMap<String, String>();
        props.put("year", "2008");
        header = new Header(new File("src/test/resources/test-header1.txt").toURI().toURL(), props);
    }
View Full Code Here

TOP

Related Classes of com.google.code.mojo.license.header.Header

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.