incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r564001 - in /incubator/nmaven/trunk/components: dotnet-core/src/main/java/org/apache/maven/dotnet/impl/ dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ dotnet...
Date Wed, 08 Aug 2007 19:29:05 GMT
Author: sisbell
Date: Wed Aug  8 12:29:00 2007
New Revision: 564001

URL: http://svn.apache.org/viewvc?view=rev&rev=564001
Log:
Updated javadocs and log ids.

Added:
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/package.html
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/package.html
Modified:
    incubator/nmaven/trunk/components/dotnet-core/src/main/java/org/apache/maven/dotnet/impl/NMavenRepositoryRegistryImpl.java
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Project.java
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectDependency.java
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectFactory.java
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectUri.java
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Requirement.java
    incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java
    incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/ExecutableContext.java
    incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/NetExecutableFactory.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/ConnectionsRepository.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObject.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObjectRegistry.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/DataAccessObjectRegistryImpl.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/RepositoryRegistryImpl.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRegistryLoader.java
    incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRepositoryLoader.java
    incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/RepositoryConverter.java
    incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java

Modified: incubator/nmaven/trunk/components/dotnet-core/src/main/java/org/apache/maven/dotnet/impl/NMavenRepositoryRegistryImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/java/org/apache/maven/dotnet/impl/NMavenRepositoryRegistryImpl.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/java/org/apache/maven/dotnet/impl/NMavenRepositoryRegistryImpl.java (original)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/java/org/apache/maven/dotnet/impl/NMavenRepositoryRegistryImpl.java Wed Aug  8 12:29:00 2007
@@ -23,13 +23,22 @@
 
 import java.io.IOException;
 
-public class NMavenRepositoryRegistryImpl
+/**
+ * Implementation of NMavenRepositoryRegistry
+ */
+public final class NMavenRepositoryRegistryImpl
     implements NMavenRepositoryRegistry
 {
 
     private RepositoryRegistry repositoryRegistry;
 
-    public RepositoryRegistry createRepositoryRegistry()
+    /**
+     * Returns an instance of the repository registry.
+     *
+     * @return an instance of the repository registry
+     * @throws IOException
+     */
+    public synchronized RepositoryRegistry createRepositoryRegistry()
         throws IOException
     {
         if ( repositoryRegistry.isEmpty() )

Modified: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Project.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Project.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Project.java (original)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Project.java Wed Aug  8 12:29:00 2007
@@ -47,7 +47,7 @@
     private String publicKeyTokenId;
 
     /**
-     * Have the project artifacts been resolved
+     * Has the project artifact been resolved
      */
     private boolean isResolved = false;
 
@@ -104,7 +104,7 @@
     /**
      * Returns the set of requirements for the project.
      *
-     * @return he set of requirements for the project
+     * @return the set of requirements for the project
      */
     public Set<Requirement> getRequirements()
     {
@@ -121,81 +121,168 @@
         this.requirements = requirements;
     }
 
+    /**
+     * Returns the public key token id (classifier) of the project. This is the id from creating a strong name for an
+     * assembly.
+     *
+     * @return the public key token id (classifier) of the project
+     */
     public String getPublicKeyTokenId()
     {
         return publicKeyTokenId;
     }
 
+    /**
+     * Sets the public key token id (classifier) of the project.
+     *
+     * @param publicKeyTokenId the public key token id (classifier) of the project
+     */
     public void setPublicKeyTokenId( String publicKeyTokenId )
     {
         this.publicKeyTokenId = publicKeyTokenId;
     }
 
+    /**
+     * Returns true is the project artifact been resolved, otherwise false. An artifact is considered resolved if the
+     * assembly exists either within the user assembly cache or the global assembly cache and if the meta-data for
+     * the assembly has been persisted.
+     *
+     * @return true is the project artifact been resolved, otherwise false
+     */
     public boolean isResolved()
     {
         return isResolved;
     }
 
+    /**
+     * Set if the artifact has been resolved.
+     *
+     * @param resolved has the artifact been resolved
+     */
     public void setResolved( boolean resolved )
     {
         isResolved = resolved;
     }
 
+    /**
+     * Returns the type of artifact: library, exe, winexe, netmodule.
+     *
+     * @return the type of artifact: library, exe, winexe, netmodule
+     */
     public String getArtifactType()
     {
         return artifactType;
     }
 
+    /**
+     * Sets the type of artifact: library, exe, winexe, netmodule.
+     *
+     * @param artifactType the type of artifact: library, exe, winexe, netmodule
+     */
     public void setArtifactType( String artifactType )
     {
         this.artifactType = artifactType;
     }
 
+    /**
+     * Returns the set of project dependencies for this project.
+     *
+     * @return the set of project dependencies for this project
+     */
     public Set<ProjectDependency> getProjectDependencies()
     {
         return projectDependencies;
     }
 
+    /**
+     * Adds a project dependency for this project.
+     *
+     * @param projectDependency a project dependency for this project
+     */
     public void addProjectDependency( ProjectDependency projectDependency )
     {
         projectDependencies.add( projectDependency );
     }
 
+    /**
+     * Sets the set of project dependencies for this project. This will override any dependencies added through
+     * Project#addProjectDependency.
+     *
+     * @param projectDependencies the set of project dependencies for this project
+     */
     public void setProjectDependencies( Set<ProjectDependency> projectDependencies )
     {
         this.projectDependencies = projectDependencies;
     }
 
+    /**
+     * Returns the group id of the project.
+     *
+     * @return the group id of the project
+     */
     public String getGroupId()
     {
         return groupId;
     }
 
+    /**
+     * Sets the group id of the project.
+     *
+     * @param groupId the group id of the project
+     */
     public void setGroupId( String groupId )
     {
         this.groupId = groupId;
     }
 
+    /**
+     * Returns the artifact id of the project.
+     *
+     * @return the artifact id of the project
+     */
     public String getArtifactId()
     {
         return artifactId;
     }
 
+    /**
+     * Sets the artifact id of the project.
+     *
+     * @param artifactId the artifact id of the project
+     */
     public void setArtifactId( String artifactId )
     {
         this.artifactId = artifactId;
     }
 
+    /**
+     * Returns the version of the project.
+     *
+     * @return the version of the project
+     */
     public String getVersion()
     {
         return version;
     }
 
+    /**
+     * Sets the version of the project.
+     *
+     * @param version the version of the project
+     */
     public void setVersion( String version )
     {
         this.version = version;
     }
 
+    /**
+     * Returns true if the artifact id, artifact type, group id, version and public key token (optional) match, otherwise
+     * returns false.
+     *
+     * @param o object to compare
+     * @return true if the artifact id, artifact type, group id, version and public key token (optional) match, otherwise
+     *         returns false.
+     */
     public boolean equals( Object o )
     {
         if ( this == o )
@@ -213,10 +300,19 @@
         {
             return false;
         }
+        if ( !artifactType.equals( project.artifactType ) )
+        {
+            return false;
+        }
         if ( !groupId.equals( project.groupId ) )
         {
             return false;
         }
+        if ( publicKeyTokenId != null ? !publicKeyTokenId.equals( project.publicKeyTokenId )
+            : project.publicKeyTokenId != null )
+        {
+            return false;
+        }
         if ( !version.equals( project.version ) )
         {
             return false;
@@ -231,6 +327,8 @@
         result = groupId.hashCode();
         result = 29 * result + artifactId.hashCode();
         result = 29 * result + version.hashCode();
+        result = 29 * result + ( publicKeyTokenId != null ? publicKeyTokenId.hashCode() : 0 );
+        result = 29 * result + artifactType.hashCode();
         return result;
     }
 }

Modified: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectDependency.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectDependency.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectDependency.java (original)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectDependency.java Wed Aug  8 12:29:00 2007
@@ -18,15 +18,32 @@
  */
 package org.apache.maven.dotnet.dao;
 
-public class ProjectDependency extends Project
+/**
+ * Class for accessing information about project dependencies.
+ */
+public class ProjectDependency
+    extends Project
 {
+    /**
+     * The scope: runtime, compile, test
+     */
     private String scope;
 
+    /**
+     * Returns the scope:  runtime, compile, test
+     *
+     * @return the scope:  runtime, compile, test
+     */
     public String getScope()
     {
         return scope;
     }
 
+    /**
+     * Sets the scope:  runtime, compile, test
+     *
+     * @param scope the scope that the artifact is used in
+     */
     public void setScope( String scope )
     {
         this.scope = scope;

Modified: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectFactory.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectFactory.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectFactory.java (original)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectFactory.java Wed Aug  8 12:29:00 2007
@@ -76,7 +76,7 @@
     }
 
     /**
-     * Creates a project from the specified model
+     * Creates a project using information from the specified model
      *
      * @param model            the project object model used to create the project.
      * @param pomFileDirectory the directory containing the pom.xml (model).
@@ -122,6 +122,12 @@
         return project;
     }
 
+    /**
+     * Creates a project dependency using information from the specified dependency.
+     *
+     * @param dependency a dependency to use as the source of the returned project dependency
+     * @return a project dependency
+     */
     public static ProjectDependency createProjectDependencyFrom( Dependency dependency )
     {
         ProjectDependency projectDependency = new ProjectDependency();
@@ -131,14 +137,20 @@
         projectDependency.setPublicKeyTokenId( dependency.getClassifier() );
         projectDependency.setArtifactType( dependency.getType() );
 
-        logAndVerifyProjectParameters(projectDependency);
+        logAndVerifyProjectParameters( projectDependency );
 
         return projectDependency;
     }
 
+    /**
+     * Creates a dependency using information from the specified project dependency.
+     *
+     * @param projectDependency a project dependency to use as the source of the returned dependency
+     * @return a dependency created using information from the specified project dependency
+     */
     public static Dependency createDependencyFrom( ProjectDependency projectDependency )
     {
-        logAndVerifyProjectParameters(projectDependency);
+        logAndVerifyProjectParameters( projectDependency );
 
         Dependency dependency = new Dependency();
         dependency.setGroupId( projectDependency.getGroupId() );
@@ -149,9 +161,17 @@
         return dependency;
     }
 
+    /**
+     * Creates an artifact using information from the specified project.
+     *
+     * @param project         a project to use as the source of the returned artifact
+     * @param artifactFactory artifact factory used to create the artifact
+     * @param localRepository the local repository
+     * @return an artifact using information from the specified project
+     */
     public static Artifact createArtifactFrom( Project project, ArtifactFactory artifactFactory, File localRepository )
     {
-        logAndVerifyProjectParameters(project);
+        logAndVerifyProjectParameters( project );
 
         Artifact assembly = artifactFactory.createArtifactWithClassifier( project.getGroupId(), project.getArtifactId(),
                                                                           project.getVersion(),
@@ -169,10 +189,17 @@
         return assembly;
     }
 
+    /**
+     * Creates an artifact using information from the specified project dependency.
+     *
+     * @param projectDependency a project dependency to use as the source of the returned artifact
+     * @param artifactFactory   artifact factory used to create the artifact
+     * @return an artifact using information from the specified project dependency
+     */
     public static Artifact createArtifactFrom( ProjectDependency projectDependency, ArtifactFactory artifactFactory )
     {
-        logAndVerifyProjectParameters(projectDependency);
-        
+        logAndVerifyProjectParameters( projectDependency );
+
         String scope = ( projectDependency.getScope() == null ) ? Artifact.SCOPE_COMPILE : projectDependency.getScope();
         Artifact assembly = artifactFactory.createDependencyArtifact( projectDependency.getGroupId(),
                                                                       projectDependency.getArtifactId(),
@@ -198,6 +225,13 @@
         return assembly;
     }
 
+    /**
+     * Logs missing value if specified project in invalid and returns true if the specified project is valid, otherwise
+     * returns false.
+     *
+     * @param project the project to check
+     * @return true if the project is valid, otherwise returns false
+     */
     private static boolean logAndVerifyProjectParameters( Project project )
     {
         if ( project.getGroupId() == null )
@@ -207,21 +241,19 @@
         }
         if ( project.getArtifactId() == null )
         {
-            logger.warning(
-                "NMAVEN-180-002: Project Artifact ID is missing: Group Id = " + project.getGroupId() );
+            logger.warning( "NMAVEN-180-002: Project Artifact ID is missing: Group Id = " + project.getGroupId() );
             return false;
         }
         if ( project.getVersion() == null )
         {
-            logger.warning( "NMAVEN-180-003: Project Version is missing: Group Id = " +
-                project.getGroupId() + ", Artifact Id = " + project.getArtifactId() );
+            logger.warning( "NMAVEN-180-003: Project Version is missing: Group Id = " + project.getGroupId() +
+                ", Artifact Id = " + project.getArtifactId() );
             return false;
         }
         if ( project.getArtifactType() == null )
         {
-            logger.warning( "NMAVEN-180-004: Project Artifact Type is missing: Group Id" +
-                project.getGroupId() + ", Artifact Id = " + project.getArtifactId() +
-                ", Version = " + project.getVersion() );
+            logger.warning( "NMAVEN-180-004: Project Artifact Type is missing: Group Id" + project.getGroupId() +
+                ", Artifact Id = " + project.getArtifactId() + ", Version = " + project.getVersion() );
             return false;
         }
         return true;

Modified: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectUri.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectUri.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectUri.java (original)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/ProjectUri.java Wed Aug  8 12:29:00 2007
@@ -18,6 +18,9 @@
  */
 package org.apache.maven.dotnet.dao;
 
+/**
+ * Enumeration of the project uri predicates.
+ */
 public enum ProjectUri
 {
     GROUP_ID( "http://maven.apache.org/artifact/groupId", "groupId", false ),

Modified: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Requirement.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Requirement.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Requirement.java (original)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/Requirement.java Wed Aug  8 12:29:00 2007
@@ -20,6 +20,9 @@
 
 import java.net.URI;
 
+/**
+ * 
+ */
 public interface Requirement
 {
     URI getUri();

Modified: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java (original)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/ProjectDaoImpl.java Wed Aug  8 12:29:00 2007
@@ -161,15 +161,15 @@
         }
         catch ( RepositoryException e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( "NMAVEN-180-000: Message = " + e.getMessage() );
         }
         catch ( MalformedQueryException e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( "NMAVEN-180-001: Message = " + e.getMessage() );
         }
         catch ( QueryEvaluationException e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( "NMAVEN-180-002: Message = " + e.getMessage() );
         }
         finally
         {
@@ -272,7 +272,7 @@
                         ProjectFactory.createArtifactFrom( (ProjectDependency) project, artifactFactory );
                     if ( !artifact.getFile().exists() )
                     {
-                        throw new IOException( "Could not find GAC assembly: Group ID = " + groupId +
+                        throw new IOException( "NMAVEN-180-003: Could not find GAC assembly: Group ID = " + groupId +
                             ", Artifact ID = " + artifactId + ", Version = " + version + ", Artifact Type = " +
                             artifactType + ", File Path = " + artifact.getFile().getAbsolutePath() );
                     }
@@ -280,7 +280,7 @@
                     return project;
                 }
 
-                throw new IOException( "NMAVEN-000-000: Could not find the project: Group ID = " + groupId +
+                throw new IOException( "NMAVEN-180-004: Could not find the project: Group ID = " + groupId +
                     ", Artifact ID = " + artifactId + ", Version = " + version + ", Artifact Type = " + artifactType );
             }
 
@@ -327,15 +327,15 @@
         }
         catch ( QueryEvaluationException e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( "NMAVEN-180-005: Message = " + e.getMessage() );
         }
         catch ( RepositoryException e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( "NMAVEN-180-006: Message = " + e.getMessage() );
         }
         catch ( MalformedQueryException e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( "NMAVEN-180-007: Message = " + e.getMessage() );
         }
         finally
         {
@@ -353,8 +353,8 @@
         }
 
         //TODO: If has parent, then need to modify dependencies, etc of returned project
-        logger.finest( "ProjectDao.GetProjectFor - Artifact Id = " + project.getArtifactId() + ", Time = " +
-            ( System.currentTimeMillis() - startTime ) + ",  Count = " + getProjectForCounter++ );
+        logger.finest( "NMAVEN-180-008: ProjectDao.GetProjectFor - Artifact Id = " + project.getArtifactId() +
+            ", Time = " + ( System.currentTimeMillis() - startTime ) + ",  Count = " + getProjectForCounter++ );
         return project;
     }
 
@@ -380,12 +380,12 @@
 
         if ( project == null )
         {
-            throw new IllegalArgumentException( "NMAVEN-000-000: Project is null" );
+            throw new IllegalArgumentException( "NMAVEN-180-009: Project is null" );
         }
 
         if ( project.getGroupId() == null || project.getArtifactId() == null || project.getVersion() == null )
         {
-            throw new IllegalArgumentException( "NMAVEN-000-000: Project value is null: Group Id =" +
+            throw new IllegalArgumentException( "NMAVEN-180-010: Project value is null: Group Id =" +
                 project.getGroupId() + ", Artifact Id = " + project.getArtifactId() + ", Version = " +
                 project.getVersion() );
         }
@@ -440,7 +440,7 @@
 
             for ( ProjectDependency projectDependency : project.getProjectDependencies() )
             {
-                logger.finest( "Project Dependency: Artifact ID = " + projectDependency.getArtifactId() +
+                logger.finest( "NMAVEN-180-011: Project Dependency: Artifact ID = " + projectDependency.getArtifactId() +
                     ", Group ID = " + projectDependency.getGroupId() + ", Version = " + projectDependency.getVersion() +
                     ", Artifact Type = " + projectDependency.getArtifactType() );
                 if ( !projectDependency.isResolved() )
@@ -494,19 +494,19 @@
 
                         try
                         {
-                            logger.info( "NMAVEN-000-000: Retrieving artifact: Artifact ID  = " +
+                            logger.info( "NMAVEN-180-012: Retrieving artifact: Artifact ID  = " +
                                 projectDependency.getArtifactId() );
                             wagonManager.getArtifact( pomArtifact, artifactRepositories );
                         }
                         catch ( TransferFailedException e )
                         {
-                            logger.info( "NMAVEN-000-000a: Problem in resolving artifact: Assembly Artifact Id = " +
+                            logger.info( "NMAVEN-180-013: Problem in resolving artifact: Assembly Artifact Id = " +
                                 assembly.getArtifactId() + ", Type = " + assembly.getType() + ", Message = " +
                                 e.getMessage() );
                         }
                         catch ( ResourceDoesNotExistException e )
                         {
-                            logger.info( "NMAVEN-000-000b: Problem in resolving artifact: Assembly Artifact Id = " +
+                            logger.info( "NMAVEN-180-014: Problem in resolving artifact: Assembly Artifact Id = " +
                                 assembly.getArtifactId() + ", Type = " + assembly.getType() + ", Message = " +
                                 e.getMessage() );
                         }
@@ -523,13 +523,13 @@
                             }
                             catch ( XmlPullParserException e )
                             {
-                                throw new IOException( "NMAVEN-000-000: Unable to read model: Message = " +
+                                throw new IOException( "NMAVEN-180-015: Unable to read model: Message = " +
                                     e.getMessage() + ", Path = " + pomArtifact.getFile().getAbsolutePath() );
 
                             }
                             catch ( EOFException e )
                             {
-                                throw new IOException( "NMAVEN-000-000: Unable to read model: Message = " +
+                                throw new IOException( "NMAVEN-180-016: Unable to read model: Message = " +
                                     e.getMessage() + ", Path = " + pomArtifact.getFile().getAbsolutePath() );
                             }
 
@@ -538,7 +538,7 @@
                                 model.getVersion().equals( projectDependency.getVersion() ) ) )
                             {
                                 throw new IOException(
-                                    "Model parameters do not match project dependencies parameters: Model: " +
+                                    "NMAVEN-180-017: Model parameters do not match project dependencies parameters: Model: " +
                                         model.getGroupId() + ":" + model.getArtifactId() + ":" + model.getVersion() +
                                         ", Project: " + projectDependency.getGroupId() + ":" +
                                         projectDependency.getArtifactId() + ":" + projectDependency.getVersion() );
@@ -553,21 +553,21 @@
                     {
                         try
                         {
-                            logger.info( "NMAVEN-000-000: Retrieving artifact: Artifact ID  = " +
+                            logger.info( "NMAVEN-180-018: Retrieving artifact: Artifact ID  = " +
                                 projectDependency.getArtifactId() );
                             wagonManager.getArtifact( assembly, artifactRepositories );
                         }
                         catch ( TransferFailedException e )
                         {
                             throw new IOException(
-                                "NMAVEN-000-000c: Problem in resolving artifact: Assembly Artifact Id = " +
+                                "NMAVEN-180-019: Problem in resolving artifact: Assembly Artifact Id = " +
                                     assembly.getArtifactId() + ", Type = " + assembly.getType() + ", Message = " +
                                     e.getMessage() );
                         }
                         catch ( ResourceDoesNotExistException e )
                         {
                             throw new IOException(
-                                "NMAVEN-000-000d: Problem in resolving artifact: Assembly Artifact Id = " +
+                                "NMAVEN-180-020: Problem in resolving artifact: Assembly Artifact Id = " +
                                     assembly.getArtifactId() + ", Type = " + assembly.getType() + ", Message = " +
                                     e.getMessage() );
                         }
@@ -608,7 +608,7 @@
 
                 }
             }
-            throw new IOException( "NMAVEN-000-000: Could not open RDF Repository: Message =" + e.getMessage() );
+            throw new IOException( "NMAVEN-180-021: Could not open RDF Repository: Message =" + e.getMessage() );
         }
 
         for ( Model model : modelDependencies )
@@ -617,7 +617,7 @@
             artifactDependencies.addAll( storeProjectAndResolveDependencies(
                 ProjectFactory.createProjectFrom( model, null ), localRepository, artifactRepositories ) );
         }
-        logger.finest( "ProjectDao.storeProjectAndResolveDependencies - Artifact Id = " + project.getArtifactId() +
+        logger.finest( "NMAVEN-180-022: ProjectDao.storeProjectAndResolveDependencies - Artifact Id = " + project.getArtifactId() +
             ", Time = " + ( System.currentTimeMillis() - startTime ) + ", Count = " + storeCounter++ );
         return artifactDependencies;
     }
@@ -647,7 +647,7 @@
         if ( dataStoreObject == null || !( dataStoreObject instanceof org.openrdf.repository.Repository ) )
         {
             throw new IllegalArgumentException(
-                "NMAVEN: Must initialize with an instance of org.openrdf.repository.Repository" );
+                "NMAVEN-180-023: Must initialize with an instance of org.openrdf.repository.Repository" );
         }
 
         this.id = id;

Added: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/package.html
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/package.html?view=auto&rev=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/package.html (added)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/impl/package.html Wed Aug  8 12:29:00 2007
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+
+  @(#)package.html
+
+   Copyright 2006 Shane Isbell
+
+   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.
+
+-->
+</head>
+<body bgcolor="white">
+    Provides the implementation classes of the <i>org.apache.maven.dotnet.dao</i> package.
+</body>
+</html>
\ No newline at end of file

Added: incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/package.html
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/package.html?view=auto&rev=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/package.html (added)
+++ incubator/nmaven/trunk/components/dotnet-dao/project/src/main/java/org/apache/maven/dotnet/dao/package.html Wed Aug  8 12:29:00 2007
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+
+  @(#)package.html
+   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.
+
+-->
+</head>
+<body bgcolor="white">
+    Provides interfaces and classes for accessing project domain objects from a DAO.
+</body>
+</html>
\ No newline at end of file

Modified: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/ExecutableContext.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/ExecutableContext.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/ExecutableContext.java (original)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/ExecutableContext.java Wed Aug  8 12:29:00 2007
@@ -20,10 +20,6 @@
 
 import org.apache.maven.dotnet.NMavenContext;
 import org.apache.maven.dotnet.PlatformUnsupportedException;
-import org.apache.maven.dotnet.vendor.Vendor;
-import org.apache.maven.project.MavenProject;
-
-import java.io.File;
 
 /**
  * Provides services for executables.

Modified: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/NetExecutableFactory.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/NetExecutableFactory.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/NetExecutableFactory.java (original)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/NetExecutableFactory.java Wed Aug  8 12:29:00 2007
@@ -28,7 +28,6 @@
 import org.apache.maven.dotnet.executable.compiler.CompilerConfig;
 import org.apache.maven.dotnet.executable.compiler.CompilerExecutable;
 import org.apache.maven.dotnet.PlatformUnsupportedException;
-import org.apache.maven.artifact.Artifact;
 
 /**
  * Provides services to obtain executables. This interface is intended to be used by <code>AbstractMojo</code>
@@ -81,6 +80,13 @@
                                                   boolean isIsolatedAppDomain )
         throws PlatformUnsupportedException;
 
+    /**
+     * 
+     * @param vendorInfo
+     * @param commands
+     * @return
+     * @throws PlatformUnsupportedException
+     */
     NetExecutable getJavaExecutableFromRepository( VendorInfo vendorInfo, List<String> commands )
         throws PlatformUnsupportedException;
 

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/ConnectionsRepository.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/ConnectionsRepository.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/ConnectionsRepository.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/ConnectionsRepository.java Wed Aug  8 12:29:00 2007
@@ -1,9 +1,26 @@
+/*
+ * 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.
+ */
 package org.apache.maven.dotnet.registry;
 
 import org.openrdf.repository.RepositoryException;
 import org.openrdf.repository.sail.SailRepository;
 import org.openrdf.sail.memory.MemoryStore;
-import org.openrdf.sail.memory.MemoryStoreRDFSInferencer;
 
 import java.io.InputStream;
 import java.io.IOException;
@@ -14,6 +31,9 @@
 import java.util.Collections;
 import java.util.logging.Logger;
 
+/**
+ * Repository for obtaining sets of DAOs.
+ */
 public class ConnectionsRepository
     implements Repository
 {
@@ -26,6 +46,13 @@
 
     private Hashtable properties;
 
+    /**
+     * Loads all the data access objects. This is considered a lazy load because the framework (plexus) invoke the
+     * ConnectionsRepository.load method, which in this case does nothing more than set the properties. It is up to the
+     * developer to explicitly call the lazy load method. This is done for performance reasons.
+     *
+     * @throws IOException if there is a problem loading the DAOs
+     */
     public void lazyLoad() throws IOException
     {
         long start = System.currentTimeMillis();
@@ -41,7 +68,7 @@
         }
         catch ( RepositoryException e )
         {
-            e.printStackTrace();
+            throw new IOException("NMAVEN-080-005: Failed to initialized repository. Message = " + e.getMessage());
         }
 
         Set<String> keys = properties.keySet();
@@ -57,42 +84,53 @@
                     if ( !( o instanceof DataAccessObject ) )
                     {
                         throw new IOException(
-                            "JV-100-103: dao tag references a class that does not implement the DataAccessObject interface." );
+                            "NMAVEN-080-000: dao tag references a class that does not implement the DataAccessObject interface." );
                     }
                     DataAccessObject dao = (DataAccessObject) o;
                     dao.init( rdfRepository, keyName, daoClassName );
                     dao.setRepositoryRegistry( registry );
                     daos.add( dao );
-                    logger.info( "JV-100-104: Adding data access object: Class Name = " + daoClassName );
+                    logger.info( "NMAVEN-080-001: Adding data access object: Class Name = " + daoClassName );
                 }
                 catch ( Exception e )
                 {
                     e.printStackTrace();
                     throw new IOException(
-                        "JV-100-105: Problem instantiating the DAO Class: Class Name = " + daoClassName );
+                        "NMAVEN-080-002: Problem instantiating the DAO Class: Class Name = " + daoClassName );
                 }
                 catch ( Error e )
                 {
                     e.printStackTrace();
                     throw new IOException(
-                        "JV-100-106: Problem instantiating the DAO Class: Class Name = " + daoClassName );
+                        "NMAVEN-080-003: Problem instantiating the DAO Class: Class Name = " + daoClassName );
                 }
             }
         }
-        logger.info( "Connection Start Up: Time = " + ( System.currentTimeMillis() - start ) );
+        logger.info( "NMAVEN-080-004: Connection Start Up: Time = " + ( System.currentTimeMillis() - start ) );
     }
 
+    /**
+     * @see Repository#load(java.io.InputStream, java.util.Hashtable)
+     */
     public void load( InputStream inputStream, Hashtable properties )
         throws IOException
     {
         this.properties = properties;
     }
 
+    /**
+     * @see Repository#setRepositoryRegistry(RepositoryRegistry)
+     */
     public void setRepositoryRegistry( RepositoryRegistry repositoryRegistry )
     {
         this.registry = repositoryRegistry;
     }
 
+    /**
+     * Returns unmodifiable set of all data access objects.
+     *
+     * @return unmodifiable set of all data access objects
+     */
     public Set<DataAccessObject> getDataAccessObjects()
     {
         return Collections.unmodifiableSet( daos );

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObject.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObject.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObject.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObject.java Wed Aug  8 12:29:00 2007
@@ -1,9 +1,27 @@
+/*
+ * 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.
+ */
 package org.apache.maven.dotnet.registry;
 
 public interface DataAccessObject
 {
     /**
-     * Class name accessor.
+     * Returns class name.
      *
      * @return class name of the DataAccessObject
      */
@@ -16,6 +34,14 @@
      */
     String getID();
 
+    /**
+     *
+     *
+     * @param dataStoreObject
+     * @param id of the data access object
+     * @param className
+     * @throws IllegalArgumentException
+     */
     void init(Object dataStoreObject, String id, String className ) throws IllegalArgumentException;
 
     void setRepositoryRegistry(RepositoryRegistry repositoryRegistry);

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObjectRegistry.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObjectRegistry.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObjectRegistry.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/DataAccessObjectRegistry.java Wed Aug  8 12:29:00 2007
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
 package org.apache.maven.dotnet.registry;
 
 import java.util.Set;
@@ -13,7 +31,7 @@
     /**
      * Returns all DataAccessObjects from the registry.
      *
-     * @return a Set of all DataAccessObjects.
+     * @return a set of all DataAccessObjects.
      */
     Set<DataAccessObject> findAll();
 

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/DataAccessObjectRegistryImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/DataAccessObjectRegistryImpl.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/DataAccessObjectRegistryImpl.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/DataAccessObjectRegistryImpl.java Wed Aug  8 12:29:00 2007
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
 package org.apache.maven.dotnet.registry.impl;
 
 import org.apache.maven.dotnet.registry.RepositoryRegistry;
@@ -27,7 +45,7 @@
         Set<DataAccessObject> daos = new HashSet<DataAccessObject>();
         if ( repositoryRegistry == null )
         {
-            logger.warning( "Repository registry has not been set" );
+            logger.warning( "NMAVEN-081-000: Repository registry has not been set" );
             return Collections.unmodifiableSet( daos );
         }
         for ( String name : repositoryRegistry.getRepositoryNames() )
@@ -58,7 +76,7 @@
     {
         if ( repositoryRegistry == null )
         {
-            logger.warning( "Repository registry has not been set" );
+            logger.warning( "NMAVEN-081-001: Repository registry has not been set" );
             return null;
         }
         for ( String name : repositoryRegistry.getRepositoryNames() )
@@ -96,7 +114,7 @@
         Set<String> daoIds = new HashSet<String>();
         if ( repositoryRegistry == null )
         {
-            logger.warning( "Repository registry has not been set" );
+            logger.warning( "NMAVEN-081-002: Repository registry has not been set" );
             return Collections.unmodifiableSet( daoIds );
         }
         for ( String name : repositoryRegistry.getRepositoryNames() )

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/RepositoryRegistryImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/RepositoryRegistryImpl.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/RepositoryRegistryImpl.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/RepositoryRegistryImpl.java Wed Aug  8 12:29:00 2007
@@ -61,7 +61,7 @@
         }
         catch ( IOException e )
         {
-            throw new InitializationException( "NMAVEN-000-000:", e );
+            throw new InitializationException( "NMAVEN-082-000: Message = ", e );
         }
     }
 
@@ -90,7 +90,7 @@
                 org.apache.maven.dotnet.registry.RepositoryRegistry.class.getResourceAsStream( "/registry.properties" );
             if ( stream == null )
             {
-                throw new IOException( "JV-000-001: Could not find /registry.properties file with the jar" );
+                throw new IOException( "NMAVEN-082-001: Could not find /registry.properties file with the jar" );
             }
 
             Properties prop = new Properties();
@@ -101,7 +101,7 @@
                 String loaderClassName = prop.getProperty( "repositoryLoader" );
                 if ( loaderClassName == null )
                 {
-                    throw new IOException( "JV-000-002: Missing the repositoryLoader from the /registry.properties" );
+                    throw new IOException( "NMAVEN-082-002: Missing the repositoryLoader from the /registry.properties" );
                 }
 
                 String message = "Repository Loader = " + loaderClassName;
@@ -112,11 +112,11 @@
                 }
                 catch ( Exception e )
                 {
-                    throw new IOException( "JV-000-003: " + e.toString() + " : " + message );
+                    throw new IOException( "NMAVEN-082-003: " + e.toString() + " : " + message );
                 }
                 catch ( Error e )
                 {
-                    throw new IOException( "JV-000-004: " + e.toString() + " : " + message );
+                    throw new IOException( "NMAVEN-082-004: " + e.toString() + " : " + message );
                 }
             }
 
@@ -125,7 +125,7 @@
                 String loaderClassName = prop.getProperty( "registryLoader" );
                 if ( loaderClassName == null )
                 {
-                    throw new IOException( "JV-000-005: Missing the registryLoader from the /registry.properties" );
+                    throw new IOException( "NMAVEN-082-005: Missing the registryLoader from the /registry.properties" );
                 }
 
                 String message = "Registry Loader = " + loaderClassName;
@@ -136,11 +136,11 @@
                 }
                 catch ( Exception e )
                 {
-                    throw new IOException( "JV-000-006: " + e.toString() + " : " + message );
+                    throw new IOException( "NMAVEN-082-006: " + e.toString() + " : " + message );
                 }
                 catch ( Error e )
                 {
-                    throw new IOException( "JV-000-007: " + e.toString() + " : " + message );
+                    throw new IOException( "NMAVEN-082-007: " + e.toString() + " : " + message );
                 }
             }
         }
@@ -163,13 +163,13 @@
     {
         if ( sourceClass == null )
         {
-            throw new IOException( "JV-000-008: The class cannot be null when loading from a resource" );
+            throw new IOException( "NMAVEN-082-008: The class cannot be null when loading from a resource" );
         }
         InputStream stream = sourceClass.getResourceAsStream( fileName );
 
         if ( stream == null )
         {
-            throw new IOException( "JV-000-009: Could not locate resource: File Name = " + fileName );
+            throw new IOException( "NMAVEN-082-009: Could not locate resource: File Name = " + fileName );
         }
         loadFromInputStream( stream );
     }

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRegistryLoader.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRegistryLoader.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRegistryLoader.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRegistryLoader.java Wed Aug  8 12:29:00 2007
@@ -90,7 +90,7 @@
         }
         catch ( XmlPullParserException e )
         {
-            throw new IOException( "JV-000-010:" + e.toString() );
+            throw new IOException( "NMAVEN-083-000: Message = " + e.toString() );
         }
         loadIntoRegistry();
     }
@@ -159,7 +159,7 @@
     {
         if ( repositoryLoader == null )
         {
-            throw new IOException( "JV-000-011: Repository Loader does not exist" );
+            throw new IOException( "NMAVEN-083-001:: Repository Loader does not exist" );
         }
         for ( Iterator i = repositories.iterator(); i.hasNext(); )
         {

Modified: incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRepositoryLoader.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRepositoryLoader.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRepositoryLoader.java (original)
+++ incubator/nmaven/trunk/components/dotnet-registry/src/main/java/org/apache/maven/dotnet/registry/impl/StandardRepositoryLoader.java Wed Aug  8 12:29:00 2007
@@ -55,18 +55,18 @@
     {
         if ( repositoryRegistry == null )
         {
-            throw new IOException( "JV-000-106: The repository registry has not been set." );
+            throw new IOException( "NMAVEN-084-000: The repository registry has not been set." );
         }
 
         Hashtable props = ( initParams != null ) ? initParams : new Hashtable();
 
         if ( fileUri == null || fileUri.trim().equals( "" ) )
         {
-            throw new IOException( "JV-000-100: File uri must be provided." );
+            throw new IOException( "NMAVEN-084-001: File uri must be provided." );
         }
         if ( repositoryClass == null || repositoryClass.trim().equals( "" ) )
         {
-            throw new IOException( "JV-000-101: Repository class name must be provided: File Name = " + fileUri +
+            throw new IOException( "NMAVEN-084-002: Repository class name must be provided: File Name = " + fileUri +
                 ", Properties = " + props.toString() );
         }
 
@@ -86,7 +86,7 @@
             ( (String) initParams.get( "optional" ) ).equalsIgnoreCase( "true" ) );
         if ( stream == null && !optional )
         {
-            throw new IOException( "JV-000-102: Unable to loadRegistry config file: " + message );
+            throw new IOException( "NMAVEN-084-003: Unable to loadRegistry config file: " + message );
         }
         else if ( stream == null && optional )
         {
@@ -103,15 +103,15 @@
         }
         catch ( IOException e )
         {
-            throw new IOException( "JV-000-103: " + e.toString() + " : " + message );
+            throw new IOException( "NMAVEN-084-004: " + e.toString() + " : " + message );
         }
         catch ( Exception e )
         {
-            throw new IOException( "JV-000-104: " + e.toString() + " : " + message );
+            throw new IOException( "NMAVEN-084-005: " + e.toString() + " : " + message );
         }
         catch ( Error e )
         {
-            throw new IOException( "JV-000-105: " + e.toString() + " : " + message );
+            throw new IOException( "NMAVEN-084-006: " + e.toString() + " : " + message );
         }
         return repository;
     }

Modified: incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/RepositoryConverter.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/RepositoryConverter.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/RepositoryConverter.java (original)
+++ incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/RepositoryConverter.java Wed Aug  8 12:29:00 2007
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
 package org.apache.maven.dotnet.repository;
 
 import org.openrdf.repository.Repository;
@@ -5,6 +23,9 @@
 import java.io.File;
 import java.io.IOException;
 
+/**
+ * Provides services for converting from RDF repository into the defau;t Maven repository format.
+ */
 public interface RepositoryConverter
 {
     /**
@@ -12,5 +33,14 @@
      */
     String ROLE = RepositoryConverter.class.getName();
 
-    void convert( Repository repository, File mavenRepository) throws IOException;
+    /**
+     * Converts the specified RDF repository into the default local repository format.
+     *
+     * @param repository      the RDF repository
+     * @param mavenRepository the base directory where the converted repository, with the default local repository
+     *                        format, should be placed
+     * @throws IOException if there is a problem in converting the repository
+     */
+    void convert( Repository repository, File mavenRepository )
+        throws IOException;
 }

Modified: incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java?view=diff&rev=564001&r1=564000&r2=564001
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java (original)
+++ incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java Wed Aug  8 12:29:00 2007
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
 package org.apache.maven.dotnet.repository.impl;
 
 import org.apache.maven.dotnet.repository.RepositoryConverter;
@@ -10,15 +28,11 @@
 import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
 import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.repository.DefaultArtifactRepository;
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.metadata.ArtifactMetadata;
 import org.apache.maven.artifact.handler.ArtifactHandler;
 import org.apache.maven.artifact.handler.DefaultArtifactHandler;
 import org.apache.maven.artifact.manager.WagonManager;
 import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.project.artifact.ProjectArtifactMetadata;
 import org.openrdf.repository.Repository;
 import org.codehaus.plexus.util.IOUtil;
 import org.codehaus.plexus.util.FileUtils;
@@ -29,10 +43,16 @@
 import java.util.logging.Logger;
 import java.util.Set;
 
+/**
+ * Implementation of the RepositoryConverter.
+ */
 public class RepositoryConverterImpl
     implements RepositoryConverter
 {
 
+    /**
+     * The manager used to download artifacts.
+     */
     private org.apache.maven.artifact.manager.WagonManager wagonManager;
 
     /**
@@ -40,10 +60,20 @@
      */
     private org.apache.maven.artifact.factory.ArtifactFactory artifactFactory;
 
+    /**
+     * The data access object registry used for finding DAO objects
+     */
     private org.apache.maven.dotnet.registry.DataAccessObjectRegistry daoRegistry;
 
     private static Logger logger = Logger.getAnonymousLogger();
 
+    /**
+     * Used my unit tests to initialize the objects that plexus injects
+     *
+     * @param daoRegistry     the data access object registry used for finding DAO objects
+     * @param artifactFactory the artifact factory used to create artifacts
+     * @param wagonManager    the manager used to download artifacts
+     */
     protected void initTest( DataAccessObjectRegistry daoRegistry, ArtifactFactory artifactFactory,
                              WagonManager wagonManager )
     {
@@ -52,6 +82,9 @@
         this.wagonManager = wagonManager;
     }
 
+    /**
+     * @see RepositoryConverter#convert(org.openrdf.repository.Repository, java.io.File)
+     */
     public void convert( Repository repository, File mavenRepository )
         throws IOException
     {
@@ -62,7 +95,7 @@
         Set<Project> projects = dao.getAllProjects();
         for ( Project project : projects )
         {
-            logger.info( "NMAVEN-000-000: Converting Project: Artifact ID = " + project.getArtifactId() +
+            logger.info( "NMAVEN-190-000: Converting Project: Artifact ID = " + project.getArtifactId() +
                 ", Dependency Count =" + project.getProjectDependencies().size() );
             Artifact artifact = ProjectFactory.createArtifactFrom( project, artifactFactory, mavenRepository );
             Model model = ProjectFactory.createModelFrom( project );
@@ -80,7 +113,7 @@
                 }
                 else
                 {
-                    logger.info( "NMAVEN-000-000: Could not find file: " + artifact.getFile().getAbsolutePath() );
+                    logger.info( "NMAVEN-190-001: Could not find file: " + artifact.getFile().getAbsolutePath() );
                     continue;
                 }
             }
@@ -96,6 +129,12 @@
         dao.closeConnection();
     }
 
+    /**
+     * Returns the path of the the specified artifact's pom file.
+     *
+     * @param artifact the artifact
+     * @return the path of the the specified artifact's pom file
+     */
     private String pathOfPom( Artifact artifact )
     {
         StringBuffer artifactPath = new StringBuffer();
@@ -106,7 +145,7 @@
 
         artifactPath.append( artifact.getArtifactId() ).append( File.separator ).append( artifact.getBaseVersion() ).
             append( File.separator ).append( artifact.getArtifactId() ).append( "-" ).append(
-            artifact.getBaseVersion() ).append(".").append( ( artifact.getArtifactHandler() ).getExtension() );
+            artifact.getBaseVersion() ).append( "." ).append( ( artifact.getArtifactHandler() ).getExtension() );
         return artifactPath.toString();
     }
 }



Mime
View raw message