You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/09/28 16:45:05 UTC

[maven-help-plugin] branch master updated: (doc) Remove out of place space

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 9112802  (doc) Remove out of place space
9112802 is described below

commit 91128028476746911724d30f8e2d74c5cfe97a20
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Wed Sep 28 12:14:10 2022 +0200

    (doc) Remove out of place space
---
 src/it/projects/all-profiles-parent-pom/verify.groovy        | 10 +++++-----
 src/it/projects/all-profiles/verify.groovy                   |  6 +++---
 .../java/org/apache/maven/plugins/help/AllProfilesMojo.java  |  2 +-
 .../org/apache/maven/plugins/help/AllProfilesMojoTest.java   | 12 ++++++------
 4 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/it/projects/all-profiles-parent-pom/verify.groovy b/src/it/projects/all-profiles-parent-pom/verify.groovy
index f6fecb9..14ab135 100644
--- a/src/it/projects/all-profiles-parent-pom/verify.groovy
+++ b/src/it/projects/all-profiles-parent-pom/verify.groovy
@@ -21,8 +21,8 @@ def buildLog = new File( basedir, 'build.log' );
 assert buildLog.exists()
 
 // 2 = parent + child
-assert 2 == buildLog.text.count( '  Profile Id: it-repo (Active: true , Source: settings.xml)' )
-assert 2 == buildLog.text.count( '  Profile Id: profile-active-from-parent-pom (Active: true , Source: pom)' ) 
-assert 2 == buildLog.text.count( '  Profile Id: profile-inactive-from-parent-pom (Active: false , Source: pom)' )
-assert 1 == buildLog.text.count( '  Profile Id: profile-active-from-child-pom (Active: true , Source: pom)' ) 
-assert 1 == buildLog.text.count( '  Profile Id: profile-inactive-from-child-pom (Active: false , Source: pom)' )
+assert 2 == buildLog.text.count( '  Profile Id: it-repo (Active: true, Source: settings.xml)' )
+assert 2 == buildLog.text.count( '  Profile Id: profile-active-from-parent-pom (Active: true, Source: pom)' ) 
+assert 2 == buildLog.text.count( '  Profile Id: profile-inactive-from-parent-pom (Active: false, Source: pom)' )
+assert 1 == buildLog.text.count( '  Profile Id: profile-active-from-child-pom (Active: true, Source: pom)' ) 
+assert 1 == buildLog.text.count( '  Profile Id: profile-inactive-from-child-pom (Active: false, Source: pom)' )
diff --git a/src/it/projects/all-profiles/verify.groovy b/src/it/projects/all-profiles/verify.groovy
index c8384cd..6657f73 100644
--- a/src/it/projects/all-profiles/verify.groovy
+++ b/src/it/projects/all-profiles/verify.groovy
@@ -19,6 +19,6 @@
 def buildLog = new File( basedir, 'build.log' ); 
 assert buildLog.exists()
 
-assert 1 == buildLog.text.count( '  Profile Id: it-repo (Active: true , Source: settings.xml)' )
-assert 1 == buildLog.text.count( '  Profile Id: profile-active-from-pom (Active: true , Source: pom)' ) 
-assert 1 == buildLog.text.count( '  Profile Id: profile-inactive-from-pom (Active: false , Source: pom)' )
+assert 1 == buildLog.text.count( '  Profile Id: it-repo (Active: true, Source: settings.xml)' )
+assert 1 == buildLog.text.count( '  Profile Id: profile-active-from-pom (Active: true, Source: pom)' ) 
+assert 1 == buildLog.text.count( '  Profile Id: profile-inactive-from-pom (Active: false, Source: pom)' )
diff --git a/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java b/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
index c5f6c0a..c635587 100644
--- a/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
@@ -124,7 +124,7 @@ public class AllProfilesMojo
         for ( Profile p : profilesByIds.values() )
         {
             sb.append( "  Profile Id: " ).append( p.getId() );
-            sb.append( " (Active: " ).append( active ).append( " , Source: " ).append( p.getSource() ).append( ")" );
+            sb.append( " (Active: " ).append( active ).append( ", Source: " ).append( p.getSource() ).append( ")" );
             sb.append( LS );
         }
     }
diff --git a/src/test/java/org/apache/maven/plugins/help/AllProfilesMojoTest.java b/src/test/java/org/apache/maven/plugins/help/AllProfilesMojoTest.java
index b7f9596..aaeb313 100644
--- a/src/test/java/org/apache/maven/plugins/help/AllProfilesMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/help/AllProfilesMojoTest.java
@@ -99,9 +99,9 @@ public class AllProfilesMojoTest
         mojo.execute();
 
         String file = readFile( "profiles-from-pom.txt" );
-        assertTrue( file.contains( "Profile Id: pro-1 (Active: true , Source: pom)" ) );
-        assertTrue( file.contains( "Profile Id: pro-2 (Active: false , Source: pom)" ) );
-        assertTrue( file.contains( "Profile Id: pro-3 (Active: false , Source: pom)" ) );
+        assertTrue( file.contains( "Profile Id: pro-1 (Active: true, Source: pom)" ) );
+        assertTrue( file.contains( "Profile Id: pro-2 (Active: false, Source: pom)" ) );
+        assertTrue( file.contains( "Profile Id: pro-3 (Active: false, Source: pom)" ) );
     }
 
     /**
@@ -127,7 +127,7 @@ public class AllProfilesMojoTest
         mojo.execute();
 
         String file = readFile( "profiles-from-parent-pom.txt" );
-        assertTrue( file.contains( "Profile Id: pro-1 (Active: true , Source: pom)" ) );
+        assertTrue( file.contains( "Profile Id: pro-1 (Active: true, Source: pom)" ) );
     }
     
     /**
@@ -153,8 +153,8 @@ public class AllProfilesMojoTest
         mojo.execute();
 
         String file = readFile( "profiles-from-settings.txt" );
-        assertTrue( file.contains( "Profile Id: settings-1 (Active: true , Source: settings.xml)" ) );
-        assertTrue( file.contains( "Profile Id: settings-2 (Active: false , Source: settings.xml)" ) );
+        assertTrue( file.contains( "Profile Id: settings-1 (Active: true, Source: settings.xml)" ) );
+        assertTrue( file.contains( "Profile Id: settings-2 (Active: false, Source: settings.xml)" ) );
     }
 
     private Profile newPomProfile( String id, String source )