aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-indexer/src
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2006-09-15 11:03:30 +0000
committerBrett Porter <brett@apache.org>2006-09-15 11:03:30 +0000
commitd221e70b911db4fd4f2dec2c9796eb3c367811ea (patch)
tree57f4ee47e1d2e512a4c8f3f8aa1cb95d635e08ac /archiva-indexer/src
parent352a0e03a54d9478fc8216abdaf6c61d6b9fb953 (diff)
downloadarchiva-d221e70b911db4fd4f2dec2c9796eb3c367811ea.tar.gz
archiva-d221e70b911db4fd4f2dec2c9796eb3c367811ea.zip
set correct line endings
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@446573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-indexer/src')
-rw-r--r--archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/query/RangeQuery.java300
-rw-r--r--archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/2.0.1/maven-metadata.xml10
-rw-r--r--archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/maven-metadata.xml24
-rw-r--r--archiva-indexer/src/test/repository/test/maven-metadata.xml18
4 files changed, 176 insertions, 176 deletions
diff --git a/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/query/RangeQuery.java b/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/query/RangeQuery.java
index 82e0a7a2e..520602a51 100644
--- a/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/query/RangeQuery.java
+++ b/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/query/RangeQuery.java
@@ -1,150 +1,150 @@
-package org.apache.maven.archiva.indexer.query;
-
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * Query object that handles range queries (presently used for dates).
- *
- * @author Maria Odea Ching
- * @author Brett Porter
- */
-public class RangeQuery
- implements Query
-{
- /**
- * Whether values equal to the boundaries are included in the query results.
- */
- private final boolean inclusive;
-
- /**
- * The lower bound.
- */
- private final QueryTerm begin;
-
- /**
- * The upper bound.
- */
- private final QueryTerm end;
-
- /**
- * Constructor.
- *
- * @param begin the lower bound
- * @param end the upper bound
- * @param inclusive whether to include the boundaries in the query
- */
- private RangeQuery( QueryTerm begin, QueryTerm end, boolean inclusive )
- {
- this.begin = begin;
- this.end = end;
- this.inclusive = inclusive;
- }
-
- /**
- * Create an open range, including all results.
- *
- * @return the query object
- */
- public static RangeQuery createOpenRange()
- {
- return new RangeQuery( null, null, false );
- }
-
- /**
- * Create a bounded range, excluding the endpoints.
- *
- * @param begin the lower bound value to compare to
- * @param end the upper bound value to compare to
- * @return the query object
- */
- public static RangeQuery createExclusiveRange( QueryTerm begin, QueryTerm end )
- {
- return new RangeQuery( begin, end, false );
- }
-
- /**
- * Create a bounded range, including the endpoints.
- *
- * @param begin the lower bound value to compare to
- * @param end the upper bound value to compare to
- * @return the query object
- */
- public static RangeQuery createInclusiveRange( QueryTerm begin, QueryTerm end )
- {
- return new RangeQuery( begin, end, true );
- }
-
- /**
- * Create a range that is greater than or equal to a given term.
- *
- * @param begin the value to compare to
- * @return the query object
- */
- public static RangeQuery createGreaterThanOrEqualToRange( QueryTerm begin )
- {
- return new RangeQuery( begin, null, true );
- }
-
- /**
- * Create a range that is greater than a given term.
- *
- * @param begin the value to compare to
- * @return the query object
- */
- public static RangeQuery createGreaterThanRange( QueryTerm begin )
- {
- return new RangeQuery( begin, null, false );
- }
-
- /**
- * Create a range that is less than or equal to a given term.
- *
- * @param end the value to compare to
- * @return the query object
- */
- public static RangeQuery createLessThanOrEqualToRange( QueryTerm end )
- {
- return new RangeQuery( null, end, true );
- }
-
- /**
- * Create a range that is less than a given term.
- *
- * @param end the value to compare to
- * @return the query object
- */
- public static RangeQuery createLessThanRange( QueryTerm end )
- {
- return new RangeQuery( null, end, false );
- }
-
- public QueryTerm getBegin()
- {
- return begin;
- }
-
- public QueryTerm getEnd()
- {
- return end;
- }
-
- public boolean isInclusive()
- {
- return inclusive;
- }
-
-}
+package org.apache.maven.archiva.indexer.query;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+
+/**
+ * Query object that handles range queries (presently used for dates).
+ *
+ * @author Maria Odea Ching
+ * @author Brett Porter
+ */
+public class RangeQuery
+ implements Query
+{
+ /**
+ * Whether values equal to the boundaries are included in the query results.
+ */
+ private final boolean inclusive;
+
+ /**
+ * The lower bound.
+ */
+ private final QueryTerm begin;
+
+ /**
+ * The upper bound.
+ */
+ private final QueryTerm end;
+
+ /**
+ * Constructor.
+ *
+ * @param begin the lower bound
+ * @param end the upper bound
+ * @param inclusive whether to include the boundaries in the query
+ */
+ private RangeQuery( QueryTerm begin, QueryTerm end, boolean inclusive )
+ {
+ this.begin = begin;
+ this.end = end;
+ this.inclusive = inclusive;
+ }
+
+ /**
+ * Create an open range, including all results.
+ *
+ * @return the query object
+ */
+ public static RangeQuery createOpenRange()
+ {
+ return new RangeQuery( null, null, false );
+ }
+
+ /**
+ * Create a bounded range, excluding the endpoints.
+ *
+ * @param begin the lower bound value to compare to
+ * @param end the upper bound value to compare to
+ * @return the query object
+ */
+ public static RangeQuery createExclusiveRange( QueryTerm begin, QueryTerm end )
+ {
+ return new RangeQuery( begin, end, false );
+ }
+
+ /**
+ * Create a bounded range, including the endpoints.
+ *
+ * @param begin the lower bound value to compare to
+ * @param end the upper bound value to compare to
+ * @return the query object
+ */
+ public static RangeQuery createInclusiveRange( QueryTerm begin, QueryTerm end )
+ {
+ return new RangeQuery( begin, end, true );
+ }
+
+ /**
+ * Create a range that is greater than or equal to a given term.
+ *
+ * @param begin the value to compare to
+ * @return the query object
+ */
+ public static RangeQuery createGreaterThanOrEqualToRange( QueryTerm begin )
+ {
+ return new RangeQuery( begin, null, true );
+ }
+
+ /**
+ * Create a range that is greater than a given term.
+ *
+ * @param begin the value to compare to
+ * @return the query object
+ */
+ public static RangeQuery createGreaterThanRange( QueryTerm begin )
+ {
+ return new RangeQuery( begin, null, false );
+ }
+
+ /**
+ * Create a range that is less than or equal to a given term.
+ *
+ * @param end the value to compare to
+ * @return the query object
+ */
+ public static RangeQuery createLessThanOrEqualToRange( QueryTerm end )
+ {
+ return new RangeQuery( null, end, true );
+ }
+
+ /**
+ * Create a range that is less than a given term.
+ *
+ * @param end the value to compare to
+ * @return the query object
+ */
+ public static RangeQuery createLessThanRange( QueryTerm end )
+ {
+ return new RangeQuery( null, end, false );
+ }
+
+ public QueryTerm getBegin()
+ {
+ return begin;
+ }
+
+ public QueryTerm getEnd()
+ {
+ return end;
+ }
+
+ public boolean isInclusive()
+ {
+ return inclusive;
+ }
+
+}
diff --git a/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/2.0.1/maven-metadata.xml b/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/2.0.1/maven-metadata.xml
index f9f9abc99..4f48f07cd 100644
--- a/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/2.0.1/maven-metadata.xml
+++ b/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/2.0.1/maven-metadata.xml
@@ -1,5 +1,5 @@
-<metadata>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>2.0.1</version>
-</metadata>
+<metadata>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>2.0.1</version>
+</metadata>
diff --git a/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/maven-metadata.xml b/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/maven-metadata.xml
index d4b28f93e..f4c4eb8b3 100644
--- a/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/maven-metadata.xml
+++ b/archiva-indexer/src/test/repository/org/apache/maven/maven-artifact/maven-metadata.xml
@@ -1,12 +1,12 @@
-<metadata>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>2.0.1</version>
- <versioning>
- <release>2.0.1</release>
- <versions>
- <version>2.0.1</version>
- </versions>
- <lastUpdated>20051212044643</lastUpdated>
- </versioning>
-</metadata>
+<metadata>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>2.0.1</version>
+ <versioning>
+ <release>2.0.1</release>
+ <versions>
+ <version>2.0.1</version>
+ </versions>
+ <lastUpdated>20051212044643</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/archiva-indexer/src/test/repository/test/maven-metadata.xml b/archiva-indexer/src/test/repository/test/maven-metadata.xml
index e1f2008ef..7d6ae9f04 100644
--- a/archiva-indexer/src/test/repository/test/maven-metadata.xml
+++ b/archiva-indexer/src/test/repository/test/maven-metadata.xml
@@ -1,9 +1,9 @@
-<metadata>
- <groupId>test</groupId>
- <plugins>
- <plugin>
- <prefix></prefix>
- <artifactId>test-test-plugin</artifactId>
- </plugin>
- </plugins>
-</metadata>
+<metadata>
+ <groupId>test</groupId>
+ <plugins>
+ <plugin>
+ <prefix></prefix>
+ <artifactId>test-test-plugin</artifactId>
+ </plugin>
+ </plugins>
+</metadata>