Package uk.co.brunella.osgi.bdt.bundle

Examples of uk.co.brunella.osgi.bdt.bundle.Version


    File repositoryDirectory = new File(repositoryDir);
    if (!checkRepository(repositoryDirectory)) {
      return false;
    }
    Deployer deployer = new Deployer(repositoryDirectory);
    Version version = Version.parseVersion(bundleVersion);
    deployer.undeploy(bundleSymbolicName, version, true);
    System.out.println("Undeployed bundle " + bundleSymbolicName + " version " + version.toString() +
        " from repository " + repositoryDirectory);
    return true;
  }
View Full Code Here


  private void processExportedPackage(Set<File> classPaths, ExportPackage exportPackage, File packageDirectory)
      throws IOException {
    ExportClassFilter classFilter = new ExportClassFilter(exportPackage);
    String packageName = exportPackage.getName();
    Version packageVersion = exportPackage.getVersion();
    File directory = new File(packageDirectory, packageName + File.separator + packageVersion.toString());
    directory.mkdirs();
    String namePath = packageName.replace('.', File.separatorChar);
    for (File basePath : classPaths) {
      File packagePath = new File(basePath, namePath);
      File[] children = packagePath.listFiles();
View Full Code Here

    if (version.length() > 0 && range.length() > 0) {
      throw new BuildException("Only version or range can be set not both");
    }
    try {
      if (version.length() > 0) {
        Version bundleVersion = Version.parseVersion(version);
        deployer.undeploy(bundleName, bundleVersion, true);
      } else {
        VersionRange bundleVersionRange = VersionRange.parseVersionRange(range);
        deployer.undeploy(bundleName, bundleVersionRange, true);
      }
View Full Code Here

TOP

Related Classes of uk.co.brunella.osgi.bdt.bundle.Version

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.