You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by an...@apache.org on 2013/01/31 17:01:06 UTC
svn commit: r1441031 -
/maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java
Author: andham
Date: Thu Jan 31 16:01:05 2013
New Revision: 1441031
URL: http://svn.apache.org/viewvc?rev=1441031&view=rev
Log:
Added missing addServer method (and deprecated incorrect one).
Modified:
maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java
Modified: maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java?rev=1441031&r1=1441030&r2=1441031&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java (original)
+++ maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java Thu Jan 31 16:01:05 2013
@@ -312,8 +312,17 @@ public class ArchetypeGenerationRequest
return mirrors;
}
+ /**
+ * @deprecated Use {@link #addServer(Server)} instead
+ */
+ @Deprecated
public ArchetypeGenerationRequest addMirror( Server server )
{
+ return addServer( server );
+ }
+
+ public ArchetypeGenerationRequest addServer( Server server )
+ {
servers.add( server );
return this;