mirror of https://github.com/apache/archiva.git
fix the test cases - we should be synchronizing on the current class, not the configuration object itself
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568618 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ca6b3fe22
commit
b525d2423a
|
@ -186,8 +186,8 @@ public class DefaultArchivaConfiguration
|
||||||
|
|
||||||
if ( configuration.getDatabaseScanning() != null )
|
if ( configuration.getDatabaseScanning() != null )
|
||||||
{
|
{
|
||||||
configuration.getDatabaseScanning().setCronExpression( escapeCronExpression(
|
configuration.getDatabaseScanning().setCronExpression(
|
||||||
configuration.getDatabaseScanning().getCronExpression() ) );
|
escapeCronExpression( configuration.getDatabaseScanning().getCronExpression() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
new ConfigurationRegistryWriter().write( configuration, section );
|
new ConfigurationRegistryWriter().write( configuration, section );
|
||||||
|
@ -262,12 +262,9 @@ public class DefaultArchivaConfiguration
|
||||||
// nothing to do here
|
// nothing to do here
|
||||||
}
|
}
|
||||||
|
|
||||||
public void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue )
|
public synchronized void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue )
|
||||||
{
|
{
|
||||||
synchronized( configuration )
|
configuration = null;
|
||||||
{
|
|
||||||
configuration = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String removeExpressions( String directory )
|
private String removeExpressions( String directory )
|
||||||
|
|
Loading…
Reference in New Issue