File | Line |
---|
org/apache/maven/archiva/consumers/core/AutoRemoveConsumer.java | 77 |
org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java | 78 |
public String getId()
{
return this.id;
}
public String getDescription()
{
return this.description;
}
public boolean isPermanent()
{
return false;
}
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered )
throws ConsumerException
{
this.repositoryDir = new File( repository.getLocation() );
}
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered, boolean executeOnEntireRepo )
throws ConsumerException
{
beginScan( repository, whenGathered );
}
public void completeScan()
{
/* do nothing */
}
public void completeScan( boolean executeOnEntireRepo )
{
completeScan();
}
public List<String> getExcludes()
{
return null;
}
public List<String> getIncludes()
{
return includes;
}
public void processFile( String path )
throws ConsumerException
{
File file = new File( this.repositoryDir, path );
if ( file.exists() )
{ |
File | Line |
---|
org/apache/maven/archiva/consumers/core/AutoRemoveConsumer.java | 73 |
org/apache/maven/archiva/consumers/core/ValidateChecksumConsumer.java | 80 |
private File repositoryDir;
private List<String> includes = new ArrayList<String>();
public String getId()
{
return this.id;
}
public String getDescription()
{
return this.description;
}
public boolean isPermanent()
{
return false;
}
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered )
throws ConsumerException
{
this.repositoryDir = new File( repository.getLocation() );
}
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered, boolean executeOnEntireRepo )
throws ConsumerException
{
beginScan( repository, whenGathered );
}
public void completeScan()
{
/* nothing to do */
}
public void completeScan( boolean executeOnEntireRepo )
{
completeScan();
}
public List<String> getExcludes()
{
return null;
}
public List<String> getIncludes()
{
return this.includes; |
File | Line |
---|
org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java | 78 |
org/apache/maven/archiva/consumers/core/ValidateChecksumConsumer.java | 84 |
public String getId()
{
return this.id;
}
public String getDescription()
{
return this.description;
}
public boolean isPermanent()
{
return false;
}
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered )
throws ConsumerException
{
this.repositoryDir = new File( repository.getLocation() );
}
public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered, boolean executeOnEntireRepo )
throws ConsumerException
{
beginScan( repository, whenGathered );
}
public void completeScan()
{
/* nothing to do */
}
public void completeScan( boolean executeOnEntireRepo )
{
completeScan();
}
public List<String> getExcludes()
{
return null;
}
public List<String> getIncludes()
{
return this.includes; |
File | Line |
---|
org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java | 84 |
org/apache/maven/archiva/consumers/core/repository/RetentionCountRepositoryPurge.java | 69 |
VersionedReference reference = new VersionedReference();
reference.setGroupId( artifact.getGroupId() );
reference.setArtifactId( artifact.getArtifactId() );
reference.setVersion( artifact.getVersion() );
List<String> versions = new ArrayList<String>( repository.getVersions( reference ) );
Collections.sort( versions, VersionComparator.getInstance() );
if ( retentionCount > versions.size() )
{
// Done. nothing to do here. skip it.
return;
}
int countToPurge = versions.size() - retentionCount;
for ( String version : versions )
{
if ( countToPurge-- <= 0 )
{
break;
} |