import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
catch ( DigesterException de )
{
throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
- "Error occurred while generating checksum files." + de.getMessage()
- );
+ "Error occurred while generating checksum files."
+ + de.getMessage() );
}
}
}
response.setHeader( "Cache-Control", "no-cache" );
response.setDateHeader( "Last-Modified", new Date().getTime() );
}
+ else
+ {
+ // We need to specify this so connecting wagons can work correctly
+ response.setDateHeader( "Last-Modified", resource.getModificationTime() );
+ }
// TODO: [MRM-524] determine http caching options for other types of files (artifacts, sha1, md5, snapshots)
}
|| repositoryGroupConfiguration.getRepositories().isEmpty() )
{
File file =
- new File( System.getProperty( "appserver.base"), "groups/" + repositoryGroupConfiguration.getId() );
+ new File( System.getProperty( "appserver.base" ), "groups/" + repositoryGroupConfiguration.getId() );
- return new ArchivaDavResource( file.getPath(), "groups/" + repositoryGroupConfiguration.getId(),
- null,request.getDavSession(), locator, this,
- mimeTypes, auditListeners,
- scheduler, fileLockManager );
+ return new ArchivaDavResource( file.getPath(), "groups/" + repositoryGroupConfiguration.getId(), null,
+ request.getDavSession(), locator, this, mimeTypes, auditListeners, scheduler,
+ fileLockManager );
}
List<File> mergedRepositoryContents = new ArrayList<File>();
// multiple repo types so we guess they are all the same type
<redback.spring-utils.version>2.1</redback.spring-utils.version>
<redback.taskqueue.version>2.1</redback.taskqueue.version>
<slf4j.version>1.7.5</slf4j.version>
- <log4j.version>2.0-beta9</log4j.version>
+ <log4j.version>2.0-rc1</log4j.version>
<spring.version>4.0.1.RELEASE</spring.version>