diff options
author | Brett Porter <brett@apache.org> | 2007-09-12 09:33:41 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2007-09-12 09:33:41 +0000 |
commit | 17f229020f24ab34c553ef619f11834ae6882b21 (patch) | |
tree | 1867c4e8f537fe2f7cb05c129aa75b728ae035e5 /archiva-database | |
parent | b8cca284caff8744badd9db482f6db163b6e0a18 (diff) | |
download | archiva-17f229020f24ab34c553ef619f11834ae6882b21.tar.gz archiva-17f229020f24ab34c553ef619f11834ae6882b21.zip |
[MRM-462] separate configuration of managed and remote repositories
Merged from branches/MRM-462
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@574859 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-database')
2 files changed, 25 insertions, 7 deletions
diff --git a/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/ArchivaRepositoryByUrlConstraint.java b/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/ArchivaRepositoryByUrlConstraint.java index 0e86a796b..57df0ecf8 100644 --- a/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/ArchivaRepositoryByUrlConstraint.java +++ b/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/ArchivaRepositoryByUrlConstraint.java @@ -1,9 +1,28 @@ package org.apache.maven.archiva.database.constraints; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import org.apache.maven.archiva.database.Constraint; /** - * ArchivaRepositoryByUrlConstraint + * ArchivaRepositoryByUrlConstraint * * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a> * @version $Id$ diff --git a/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/MostRecentRepositoryScanStatistics.java b/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/MostRecentRepositoryScanStatistics.java index 0e13e9281..fdc4ff2cc 100644 --- a/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/MostRecentRepositoryScanStatistics.java +++ b/archiva-database/src/main/java/org/apache/maven/archiva/database/constraints/MostRecentRepositoryScanStatistics.java @@ -22,7 +22,7 @@ package org.apache.maven.archiva.database.constraints; import org.apache.maven.archiva.model.RepositoryContentStatistics; /** - * MostRecentRepositoryScanStatistics + * MostRecentRepositoryScanStatistics * * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a> * @version $Id$ @@ -34,12 +34,11 @@ public class MostRecentRepositoryScanStatistics public MostRecentRepositoryScanStatistics( String repoId ) { - sql = "SELECT FROM " + RepositoryContentStatistics.class.getName() - + " WHERE repositoryId == repoId PARAMETERS String repoId" - + " ORDER BY whenGathered DESCENDING" - + " RANGE 1,1"; + sql = "SELECT FROM " + RepositoryContentStatistics.class.getName() + + " WHERE repositoryId == repoId PARAMETERS String repoId" + " ORDER BY whenGathered DESCENDING" + + " RANGE 0,1"; - super.params = new Object[] { repoId }; + super.params = new Object[]{repoId}; } public Class getResultClass() |