return configuration;
}
+ @SuppressWarnings("unchecked")
private Configuration load()
{
// TODO: should this be the same as section? make sure unnamed sections still work (eg, sys properties)
return registry.getSubset( KEY );
}
+ @SuppressWarnings("unchecked")
public synchronized void save( Configuration configuration )
throws RegistryException, IndeterminateConfigurationException
{
String url = getMandatoryProperty( props, "repo." + key + ".url" );
String proxyKey = repoProps.getProperty( "proxy" );
- int cachePeriod = Integer.parseInt( repoProps.getProperty( "cache.period", "60" ) );
+// int cachePeriod = Integer.parseInt( repoProps.getProperty( "cache.period", "60" ) );
RemoteRepositoryConfiguration repository = new RemoteRepositoryConfiguration();
repository.setId( key );
Configuration configuration = archivaConfiguration.getConfiguration();
- ManagedRepositoryConfiguration repository =
- (ManagedRepositoryConfiguration) configuration.getManagedRepositories().get( 0 );
-
assertEquals( "check cron expression", "0 0,15 0 * * ?",
configuration.getDatabaseScanning().getCronExpression() );
}