Package aQute.bnd.differ

Examples of aQute.bnd.differ.DiffPluginImpl


        String generationDate = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm'Z'" ).format( new Date() );
        Reporter reporter = new Processor();

        try
        {
            Set<Info> infoSet = new Baseline( reporter, new DiffPluginImpl() )
                                .baseline( currentBundle, previousBundle, packageFilters );

            startBaseline( generationDate, project.getArtifactId(), project.getVersion(), comparisonVersion );

            final Info[] infos = infoSet.toArray( new Info[infoSet.size()] );
View Full Code Here


        Jar currentJar = ((ProjectBuilder) builder).getLastRevision();
        if (currentJar == null) {
            currentJar = new Jar("."); //$NON-NLS-1$
        }

        DiffPluginImpl differ = new DiffPluginImpl();
            String diffignore = builder.getProperty(Constants.DIFFIGNORE);
            if (diffignore != null)
                differ.setIgnore(diffignore);

        Baseline baseline = new Baseline(builder, differ);

        baseline.baseline(jar, currentJar, null);
        return baseline;
View Full Code Here

     * @return <code>true</code> if there is a difference, otherwise <code>false</code>
     * @throws Exception
     *             On failure
     */
    public static boolean jarsDiffer(File first, File second) throws Exception {
        Differ di = new DiffPluginImpl();
        Tree n = di.tree(new Jar(second));
        Tree o = di.tree(new Jar(first));
        Diff diff = n.diff(o);
        for (Diff child : diff.getChildren()) {
            for (Diff childc : child.getChildren()) {
                if (childc.getDelta() == Delta.UNCHANGED || childc.getDelta() == Delta.IGNORED) {
                    continue;
View Full Code Here

TOP

Related Classes of aQute.bnd.differ.DiffPluginImpl

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.