maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vmas...@apache.org
Subject cvs commit: maven/src/java/org/apache/maven/project ArtifactType.java
Date Sun, 21 Sep 2003 21:22:52 GMT
vmassol     2003/09/21 14:22:52

  Modified:    src/java/org/apache/maven/project ArtifactType.java
  Log:
  Added new artifact type: "aspect". This represents a reusable aspectj library
  
  Revision  Changes    Path
  1.5       +12 -3     maven/src/java/org/apache/maven/project/ArtifactType.java
  
  Index: ArtifactType.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/project/ArtifactType.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ArtifactType.java	11 Sep 2003 13:03:56 -0000	1.4
  +++ ArtifactType.java	21 Sep 2003 21:22:52 -0000	1.5
  @@ -74,6 +74,11 @@
        * Plugin artifact mapping.
        */
       public static final ArtifactType PLUGIN = new ArtifactType("plugin", "jar");
  +
  +    /**
  +     * Reusable AspectJ aspect mapping.
  +     */
  +    public static final ArtifactType ASPECT = new ArtifactType("aspect", "jar");
       
       /**
        * Artifact type.
  @@ -127,11 +132,15 @@
           }
           else if (type.equalsIgnoreCase("ejb"))
           {
  -            result = EJB;    
  +            result = EJB;
           }
           else if (type.equalsIgnoreCase("plugin"))
           {
  -            result = PLUGIN;   
  +            result = PLUGIN;
  +        }
  +        else if (type.equalsIgnoreCase("aspect"))
  +        {
  +            result = ASPECT;
           }
           else
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message