Package org.apache.maven.plugin.logging

Examples of org.apache.maven.plugin.logging.Log.debug()


        Artifact ext = getArtifact("org.apache.tuscany.sca", aid);
        try {
            URL url = ext.getFile().toURI().toURL();
            if (!jarFiles.contains(url)) {
                if (log.isDebugEnabled()) {
                    log.debug("Adding: " + ext);
                }
                jarFiles.add(url);
            }
        } catch (MalformedURLException e) {
            getLog().error(e);
View Full Code Here


        List<File> jarFiles = new ArrayList<File>();
        for (Object o : project.getArtifacts()) {
            Artifact a = (Artifact)o;
            if (!(Artifact.SCOPE_COMPILE.equals(a.getScope()) || Artifact.SCOPE_RUNTIME.equals(a.getScope()))) {
                if (log.isDebugEnabled()) {
                    log.debug("Skipping artifact: " + a);
                }
                continue;
            }
            if (log.isDebugEnabled()) {
                log.debug("Artifact: " + a);
View Full Code Here

                    log.debug("Skipping artifact: " + a);
                }
                continue;
            }
            if (log.isDebugEnabled()) {
                log.debug("Artifact: " + a);
            }
            String bundleName = null;
            try {
                bundleName = LibraryBundleUtil.getBundleName(a.getFile());
            } catch (IOException e) {
View Full Code Here

            } catch (IOException e) {
                throw new MojoExecutionException(e.getMessage(), e);
            }
            if (bundleName == null) {
                if (log.isDebugEnabled()) {
                    log.debug("Adding non-OSGi jar: " + a);
                }
                jarFiles.add(a.getFile());
            }
        }
View Full Code Here

            Manifest mf = LibraryBundleUtil.libraryManifest(jarFiles, project.getName(), version, copyJars);
            File file = new File(project.getBasedir(), "META-INF");
            file.mkdir();
            file= new File(file, "MANIFEST.MF");
            if (log.isDebugEnabled()) {
                log.debug("Generating " + file);
            }

            FileOutputStream fos = new FileOutputStream(file);
            mf.write(fos);
            fos.close();
View Full Code Here

                lib.mkdir();
                byte[] buf = new byte[4096];
                for (File jar : jarFiles) {
                    File jarFile = new File(lib, jar.getName());
                    if (log.isDebugEnabled()) {
                        log.debug("Copying " + jar + " to " + jarFile);
                    }
                    FileInputStream in = new FileInputStream(jar);
                    FileOutputStream out = new FileOutputStream(jarFile);
                    int len = 0;
                    while (len > 0) {
View Full Code Here

    protected boolean shouldExecute ( EnforcerRule rule )
    {
        if ( rule.isCacheable() )
        {
            Log log = this.getLog();
            log.debug( "Rule " + rule.getClass().getName() + " is cacheable." );
            String key = rule.getClass().getName() + " " + rule.getCacheId();
            if ( EnforceMojo.cache.containsKey( key ) )
            {
                log.debug( "Key " + key + " was found in the cache" );
                if ( rule.isResultValid( (EnforcerRule) cache.get( key ) ) )
View Full Code Here

            Log log = this.getLog();
            log.debug( "Rule " + rule.getClass().getName() + " is cacheable." );
            String key = rule.getClass().getName() + " " + rule.getCacheId();
            if ( EnforceMojo.cache.containsKey( key ) )
            {
                log.debug( "Key " + key + " was found in the cache" );
                if ( rule.isResultValid( (EnforcerRule) cache.get( key ) ) )
                {
                    log.debug( "The cached results are still valid. Skipping the rule: " + rule.getClass().getName() );
                    return false;
                }
View Full Code Here

            if ( EnforceMojo.cache.containsKey( key ) )
            {
                log.debug( "Key " + key + " was found in the cache" );
                if ( rule.isResultValid( (EnforcerRule) cache.get( key ) ) )
                {
                    log.debug( "The cached results are still valid. Skipping the rule: " + rule.getClass().getName() );
                    return false;
                }
            }
           
            //add it to the cache of executed rules
View Full Code Here

                    if ( rule != null )
                    {
                        // store the current rule for
                        // logging purposes
                        currentRule = rule.getClass().getName();
                        log.debug( "Executing rule: " + currentRule );
                        try
                        {
                            if ( ignoreCache || shouldExecute( rule ) )
                            {
                                // execute the rule
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.