Skip to content

Commit

Permalink
Add getRepositoryConfig to Packager
Browse files Browse the repository at this point in the history
  • Loading branch information
tsande16 committed Jan 9, 2024
1 parent 1ad3b52 commit 39874de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.eclipse.pass.deposit.assembler.PackageOptions;
import org.eclipse.pass.deposit.config.repository.AssemblerOptions;
import org.eclipse.pass.deposit.config.repository.RepositoryConfig;
import org.eclipse.pass.deposit.config.repository.RepositoryDepositConfig;
import org.eclipse.pass.deposit.service.DepositTask;
import org.eclipse.pass.deposit.status.DepositStatusProcessor;
import org.eclipse.pass.deposit.transport.Transport;
Expand Down Expand Up @@ -133,6 +134,10 @@ public Map<String, String> getConfiguration() {
return repositoryConfig.getTransportConfig().getProtocolBinding().asPropertiesMap();
}

public RepositoryDepositConfig getRepositoryConfig() {
return repositoryConfig.getRepositoryDepositConfig();
}

/**
* The {@link DepositStatusProcessor}, may be {@code null}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,15 @@ static Function<Deposit, TransportResponse> performDeposit(DepositWorkerContext

try {
packager = dc.packager();


packageStream = packager.getAssembler().assemble(
dc.depositSubmission(), packager.getAssemblerOptions());
//TODO add options for the packager.getRepoConfig
/*
packageStream = packager.getAssembler().assemble(
dc.depositSubmission(), packager.getAssemblerOptions(), packager.getRepositoryOptions());
*/
packagerConfig = packager.getConfiguration();
} catch (Exception e) {
throw new RuntimeException("Error resolving a Packager or Packager configuration for " +
Expand Down

0 comments on commit 39874de

Please sign in to comment.