Package org.apache.commons.weaver

Examples of org.apache.commons.weaver.CleanProcessor.clean()


        final Properties config = new Properties();
        config.put("configKey", "configValue");

        final CleanProcessor cp = new CleanProcessor(getClassPathEntries(), getTargetFolder(), config);
        cp.clean();

        Assert.assertFalse(new File(getTargetFolder(), TestBeanWithMethodAnnotation.class.getName().replace('.',
            File.separatorChar)
            + ".class").exists());
        Assert.assertFalse(new File(getTargetFolder(), TestBeanWithClassAnnotation.class.getName().replace('.',
View Full Code Here


        getLog().debug(String.format("classpath=%s%ntarget=%s%nconfig=%s", classpath, target, config));

        try {
            final CleanProcessor cleanProcessor = new CleanProcessor(classpath, target, config);
            cleanProcessor.clean();
        } catch (Exception e) {
            throw new MojoExecutionException("cleaning failed due to " + e.getMessage(), e);
        } finally {
            logRedirector.deactivate();
        }
View Full Code Here

    public void execute() {
        try {
            final WeaverSettings settings = Validate.notNull(getSettings(), "settings");
            final CleanProcessor cleanProcessor =
                new CleanProcessor(settings.getClasspathEntries(), settings.getTarget(), settings.getProperties());
            cleanProcessor.clean();
        } catch (final Exception e) {
            throw new BuildException(e);
        }
    }
}
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.