protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); this.append = true; // Always append, otherwise we will end up with nothing if (arg.equalsIgnoreCase("-categoryQualifier")) // $NON-NLS-1$ categoryQualifier = parameter; if (arg.equalsIgnoreCase("-categoryDefinition")) // $NON-NLS-1$ categoryDefinition = URIUtil.fromString(parameter); }
protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); if (arg.equalsIgnoreCase("-features")) // $NON-NLS-1$ features = createFiles(parameter); if (arg.equalsIgnoreCase("-bundles")) // $NON-NLS-1$ bundles = createFiles(parameter); if (arg.equalsIgnoreCase("-iu")) // $NON-NLS-1$ rootIU = parameter; if (arg.equalsIgnoreCase("-version")) // $NON-NLS-1$ rootVersion = parameter; }
/* * Check to see if an existing repository already has the "compressed" flag set */ protected void initializeRepositories(PublisherInfo publisherInfo) throws ProvisionException { try { if (metadataLocation != null) { // Try to load the metadata repository. If it loads, check the "compressed" flag, and cache // it. // If there are any errors loading it (i.e. it doesn't exist), just skip this step // If there are serious problems with the repository, the superclass initializeRepositories // method // will handle it. IMetadataRepository result = Publisher.loadMetadataRepository(agent, metadataLocation, true, true); if (result != null) { Object property = result.getProperties().get(IRepository.PROP_COMPRESSED); if (property != null) { boolean compressProperty = Boolean.valueOf((String) property); this.compress = compressProperty || compress; } } } } catch (ProvisionException e) { // do nothing } super.initializeRepositories(publisherInfo); }