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

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


    @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, null);
    }
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

        } 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

    @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

        } catch (DependencyResolutionRequiredException e) {
            throw new MojoFailureException(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

    }

    protected void execute(final Callback callback) throws MalformedURLException {
        Map<String, String> props = mergeProperties();

        final Header h = new Header(header.toURI().toURL(), props, headerSections);
        logger.debug("Header {}:\n{}", h.getLocation(), h);

        if (this.validHeaders == null)
            this.validHeaders = new ArrayList<File>();
        final List<Header> validHeaders = new ArrayList<Header>(this.validHeaders.size());
        for (File validHeader : this.validHeaders) {
            validHeaders.add(new Header(validHeader.toURI().toURL(), props, headerSections));
        }

        final DocumentFactory documentFactory = new DocumentFactory(rootDir, buildMapping(), buildHeaderDefinitions(),
                        encoding, keywords);
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.