You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ba...@apache.org on 2008/12/12 01:06:24 UTC

svn commit: r725859 - in /maven/plugins/trunk/maven-eclipse-plugin/src/main: java/org/apache/maven/plugin/eclipse/EclipsePlugin.java resources/org/apache/maven/plugin/eclipse/messages.properties

Author: baerrach
Date: Thu Dec 11 16:06:24 2008
New Revision: 725859

URL: http://svn.apache.org/viewvc?rev=725859&view=rev
Log:
Cleanup of info messages for workspace detection.
Converted to use Messages

Modified:
    maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
    maven/plugins/trunk/maven-eclipse-plugin/src/main/resources/org/apache/maven/plugin/eclipse/messages.properties

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java?rev=725859&r1=725858&r2=725859&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java Thu Dec 11 16:06:24 2008
@@ -1704,6 +1704,7 @@
         {
             workspaceConfiguration = new WorkspaceConfiguration();
             locateWorkspace();
+            getLog().info( Messages.getString( "EclipsePlugin.workspace", workspace ) );
             workspaceConfiguration.setWorkspaceDirectory( workspace );
 
             new ReadWorkspaceLocations().init( getLog(), workspaceConfiguration, project, wtpdefaultserver );
@@ -1722,10 +1723,10 @@
             while ( currentWorkingDirectory != null )
             {
                 File metadataDirectory = new File( currentWorkingDirectory, ".metadata" );
-                logger.debug( "Checking metadataDirectory = " + currentWorkingDirectory );
+                logger.debug( "Checking for eclipse workspace at " + currentWorkingDirectory );
                 if ( metadataDirectory.exists() && metadataDirectory.isDirectory() )
                 {
-                    logger.debug( "  Found" );
+                    logger.debug( "  Found workspace at " + currentWorkingDirectory );
                     workspace = currentWorkingDirectory;
                     return;
                 }

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/resources/org/apache/maven/plugin/eclipse/messages.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/resources/org/apache/maven/plugin/eclipse/messages.properties?rev=725859&r1=725858&r2=725859&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/resources/org/apache/maven/plugin/eclipse/messages.properties (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/resources/org/apache/maven/plugin/eclipse/messages.properties Thu Dec 11 16:06:24 2008
@@ -21,6 +21,7 @@
 EclipsePlugin.deprecatedpar=Plugin parameter "{0}" is deprecated, please use "{1}"
 EclipsePlugin.cantcopyartifact=Can''t copy artifact "{0}".
 EclipsePlugin.foundadir={0} is a directory, ignoring.
+EclipsePlugin.workspace=Using Eclipse Workspace: {0} 
 
 EclipseSettingsWriter.wrotesettings=Wrote settings to {0}
 EclipseSettingsWriter.cannotcreatesettings=Cannot create settings file