archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsm...@apache.org
Subject svn commit: r657406 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java
Date Sat, 17 May 2008 17:39:25 GMT
Author: wsmoak
Date: Sat May 17 10:39:25 2008
New Revision: 657406

URL: http://svn.apache.org/viewvc?rev=657406&view=rev
Log:
[MRM-810] Log the successful upload.  Needs to be fixed to write to audit.log in the correct
format instead.

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java?rev=657406&r1=657405&r2=657406&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java
Sat May 17 10:39:25 2008
@@ -353,8 +353,14 @@
 
             updateMetadata( getMetadata( targetPath.getAbsolutePath() ) );
 
-            addActionMessage( "Artifact \'" + groupId + ":" + artifactId + ":" + version
+
-                "\' was successfully deployed to repository \'" + repositoryId + "\'!" );
+            String msg = "Artifact \'" + groupId + ":" + artifactId + ":" + version +
+                "\' was successfully deployed to repository \'" + repositoryId + "\'";
+
+            //TODO: MRM-810 (this writes to archiva.log, should be audit.log)
+            getLogger().info( msg + " by " + getPrincipal() );
+
+            //TODO: MRM-785 (success message does not display on web page)
+            addActionMessage( msg );
 
             return SUCCESS;
         }



Mime
View raw message