diff options
author | Olivier Lamy <olamy@apache.org> | 2012-07-30 14:39:31 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-07-30 14:39:31 +0000 |
commit | 3c805f8f2db934930f537496591c147c332c4708 (patch) | |
tree | e4a40d817dcf681221ea7e960fbc84d32755f977 /archiva-modules/archiva-base | |
parent | 6fa6750970d931eeb8de3fce301cf87938e1d8db (diff) | |
download | archiva-3c805f8f2db934930f537496591c147c332c4708.tar.gz archiva-3c805f8f2db934930f537496591c147c332c4708.zip |
[MRM-1645] mvn archetype:generate -DarchetypeCatalog (archetype-catalog.xml) failing with Not a valid artifact path.
Submitted by Charles Kim.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1367107 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/RepositoryRequest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/RepositoryRequest.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/RepositoryRequest.java index 93b6af4ee..dcf825031 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/RepositoryRequest.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/RepositoryRequest.java @@ -104,6 +104,17 @@ public class RepositoryRequest } /** + * + * @param requestedPath + * @return true if the requestedPath is likely an archetype catalog request. + */ + public boolean isArchetypeCatalog( String requestedPath ) + { + //TODO: Make it static final String + return requestedPath.endsWith( "/archetype-catalog.xml"); + } + + /** * <p> * Tests the path to see if it conforms to the expectations of a support file request. * </p> |