Package aQute.bnd.differ

Examples of aQute.bnd.differ.Baseline


        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


                List<Builder> builders = project.getBuilder(null).getSubBuilders();
                List<Baseline> jarDiffs = null;
                for (Builder b : builders) {
                    mon.subTask(String.format(Messages.processingProject, b.getBsn()));

                    Baseline jarDiff = DiffHelper.createBaseline(project, b.getBsn());
                    if (jarDiff != null) {
                        if (jarDiffs == null) {
                            jarDiffs = new ArrayList<Baseline>();
                        }
                        jarDiffs.add(jarDiff);
View Full Code Here

    @Override
        protected CellEditor getCellEditor(Object element) {

      Set<String> versions = new TreeSet<String>();
            if (element instanceof Baseline) {
                Baseline info = (Baseline) element;
                versions.add(getInitialSuggestedVersion(info).toString());
                if (getInitialSuggestedVersion(info).compareTo(Version.ONE) < 0) {
                    versions.add(Version.ONE.toString());
                }
            }
View Full Code Here

        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;
      }
    } catch (Exception e1) {
      e1.printStackTrace();
    }
View Full Code Here

    public static void updateProject(ReleaseContext context) throws Exception {

        Collection< ? extends Builder> builders = context.getProject().getBuilder(null).getSubBuilders();
        for (Builder builder : builders) {

            Baseline current = getBaselineForBuilder(builder, context);
            if (current == null) {
                continue;
            }
            for (Info info : current.getPackageInfos()) {
                context.getProject().setPackageInfo(info.packageName, info.suggestedVersion);
            }

            updateBundleVersion(context, current, builder);
        }
View Full Code Here

                run.run();
        }
    }

    private static Baseline getBaselineForBuilder(Builder builder, ReleaseContext context) {
        Baseline current = null;
        for (Baseline jd : context.getBaselines()) {
            if (jd.getBsn().equals(builder.getBsn())) {
                current = jd;
                break;
            }
View Full Code Here

    @Override
        protected CellEditor getCellEditor(Object element) {

      Set<String> versions = new TreeSet<String>();
            if (element instanceof Baseline) {
                Baseline info = (Baseline) element;
                versions.add(getInitialSuggestedVersion(info).toString());
                if (getInitialSuggestedVersion(info).compareTo(Version.ONE) < 0) {
                    versions.add(Version.ONE.toString());
                }
            }
View Full Code Here

            .getSubBuilders();
        List<Baseline> jarDiffs = null;
        for (Builder b : builders) {
          mon.subTask(String.format(Messages.processingProject, b.getBsn()));

          Baseline jarDiff = DiffHelper.createBaseline(project,
              b.getBsn());
          if (jarDiff != null) {
            if (jarDiffs == null) {
              jarDiffs = new ArrayList<Baseline>();
            }
View Full Code Here

  public static void updateProject(ReleaseContext context) throws Exception {

    Collection<? extends Builder> builders = context.getProject().getBuilder(null).getSubBuilders();
    for (Builder builder : builders) {

      Baseline current = getBaselineForBuilder(builder, context);
      if (current == null) {
        continue;
      }
      for (Info info : current.getPackageInfos()) {
          context.getProject().setPackageInfo(info.packageName, info.suggestedVersion);
      }

      updateBundleVersion(context, current, builder);
       }
View Full Code Here

              run.run();
    }
  }

  private static Baseline getBaselineForBuilder(Builder builder, ReleaseContext context) {
      Baseline current = null;
    for (Baseline jd : context.getBaselines()) {
      if (jd.getBsn().equals(builder.getBsn())) {
        current = jd;
        break;
      }
View Full Code Here

TOP

Related Classes of aQute.bnd.differ.Baseline

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.