protected void initialize(PublisherInfo publisherInfo) throws ProvisionException { if (inplace) { File location = new File(source); if (metadataLocation == null) metadataLocation = location.toURI(); if (artifactLocation == null) artifactLocation = location.toURI(); publisherInfo.setArtifactOptions(publisherInfo.getArtifactOptions() | IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH); } initializeRepositories(publisherInfo); }
protected void initialize(PublisherInfo publisherInfo) throws ProvisionException { if (inplace) { File location = new File(source); if (metadataLocation == null) metadataLocation = location.toURI(); if (artifactLocation == null) artifactLocation = location.toURI(); publisherInfo.setArtifactOptions(publisherInfo.getArtifactOptions() | IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH); } initializeRepositories(publisherInfo); }
protected void initialize(PublisherInfo publisherInfo) throws ProvisionException { if (inplace) { File location = new File(source); if (metadataLocation == null) metadataLocation = location.toURI(); if (artifactLocation == null) artifactLocation = location.toURI(); publisherInfo.setArtifactOptions(publisherInfo.getArtifactOptions() | IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH); } initializeRepositories(publisherInfo); }
protected void initialize(PublisherInfo publisherInfo) throws ProvisionException { if (inplace) { File location = new File(source); if (metadataLocation == null) metadataLocation = location.toURI(); if (artifactLocation == null) artifactLocation = location.toURI(); publisherInfo.setArtifactOptions(publisherInfo.getArtifactOptions() | IPublisherInfo.A_INDEX | IPublisherInfo.A_PUBLISH); } initializeRepositories(publisherInfo); }
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); }