Browse Source

revert changes made (MRM-1246)

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@825431 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-1.3
Jevica Arianne B. Zurbano 14 years ago
parent
commit
7ecf7e1e88

+ 2
- 14
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/functors/ConsumerWantsFilePredicate.java View File

@@ -19,7 +19,6 @@ package org.apache.maven.archiva.repository.scanner.functors;
* under the License.
*/

import java.io.File;
import java.util.List;

import org.apache.commons.collections.Predicate;
@@ -63,19 +62,8 @@ public class ConsumerWantsFilePredicate
// Timestamp finished points to the last successful scan, not this current one.
if ( basefile.lastModified() < changesSince )
{
// MRM-1246
// compares the lastModified of the version-level (basefile) and the project-level (parent) metadata
File parent = basefile.getParentFile().getParentFile();
if ( parent.lastModified() > basefile.lastModified() )
{
satisfies = true;
}
else
{
// Skip file as no change has occurred.
satisfies = false;
}
// Skip file as no change has occurred.
satisfies = false;
}
}
}

+ 1
- 1
archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/scanner/RepositoryScannerTest.java View File

@@ -140,7 +140,7 @@ public class RepositoryScannerTest
assertNotNull( "Stats should not be null.", stats );
assertEquals( "Stats.totalFileCount", 4, stats.getTotalFileCount() );
assertEquals( "Stats.newFileCount", 3, stats.getNewFileCount() );
assertEquals( "Processed Count", 3, consumer.getProcessCount() );
assertEquals( "Processed Count", 2, consumer.getProcessCount() );
assertEquals( "Processed Count (of invalid items)", 1, badconsumer.getProcessCount() );
}


Loading…
Cancel
Save