Author: brett
Date: Thu Dec  8 10:06:15 2011
New Revision: 1211797

URL: http://svn.apache.org/viewvc?rev=1211797&view=rev
Log:
ability to turn on -X for Maven

Modified:
    
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java

Modified: 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java?rev=1211797&r1=1211796&r2=1211797&view=diff
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
 (original)
+++ 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
 Thu Dec  8 10:06:15 2011
@@ -68,6 +68,8 @@ public abstract class AbstractNPandayInt
 
     private static boolean debugMaven = Boolean.valueOf( System.getProperty( 
"debug.maven", "false" ) );
 
+    private static boolean debugOutput = Boolean.valueOf( System.getProperty( 
"npanday.log.debug", "false" ) );
+
     private static boolean forceVersion = Boolean.valueOf( System.getProperty( 
"npanday.version.force", "false" ) );
 
     private static final Pattern PATTERN = Pattern.compile( 
"(.*?)-(RC[0-9]+|SNAPSHOT)" );
@@ -224,11 +226,11 @@ public abstract class AbstractNPandayInt
             {
                 if ( expected )
                 {
-                    assertNotNull( zip.getEntry( name ) );
+                    assertNotNull( "expected " + name + " to be present in 
zip", zip.getEntry( name ) );
                 }
                 else
                 {
-                    assertNull( zip.getEntry( name ) );
+                    assertNull( "expected " + name + " to be absent in zip", 
zip.getEntry( name ) );
                 }
             }
         }
@@ -286,6 +288,10 @@ public abstract class AbstractNPandayInt
         }
         List<String> cliOptions = new ArrayList<String>( 2 );
         cliOptions.add( "-Dnpanday.version=" + version );
+        if ( debugOutput )
+        {
+            cliOptions.add( "-X" );
+        }
         verifier.setCliOptions( cliOptions );
         return verifier;
     }


Reply via email to