Package aQute.bnd.build.model

Examples of aQute.bnd.build.model.BndEditModel.loadFrom()


                projectDocument = new Document(new String(bytes, projectFile.getCharset()));
            } else {
                projectDocument = new Document("");
            }
            projectModel = new BndEditModel();
            projectModel.loadFrom(projectDocument);
        } catch (IOException e) {
            throw new CoreException(new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, e.getMessage(), e));
        }

        // Check if we need to enable sub-bundles on the project file
View Full Code Here


        if (editor instanceof BndEditor) {
            editModel = ((BndEditor) editor).getEditModel();
        } else {
            editModel = new BndEditModel();
            doc = FileUtils.readFully(bndFile);
            editModel.loadFrom(new IDocumentWrapper(doc));
        }

        String blueprintrelativePath = blueprintFile.getProjectRelativePath().toString();

        updateBundleBlueprintIfNecessary(editModel, blueprintrelativePath);
View Full Code Here

            } else {
                document = new Document(""); //$NON-NLS-1$
            }

            final BndEditModel model = new BndEditModel();
            model.loadFrom(document);

            String currentVersion = model.getBundleVersionString();
            String templateVersion = updateTemplateVersion(currentVersion, bundleVersion);
            model.setBundleVersion(templateVersion);
            properties.setProperty(Constants.BUNDLE_VERSION, templateVersion);
View Full Code Here

      } else {
        document = new Document(""); //$NON-NLS-1$
      }

      final BndEditModel model = new BndEditModel();
      model.loadFrom(document);

      String currentVersion = model.getBundleVersionString();
      String templateVersion = updateTemplateVersion(currentVersion, bundleVersion);
      model.setBundleVersion(templateVersion);
      properties.setProperty(Constants.BUNDLE_VERSION, templateVersion);
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.