@Test
public void skip()
throws Exception
{
File testDir = getProject( "/issues/flexmojos-168/skip" );
FMVerifier v = test( testDir, "compile", "-Dflexmojos.skip=true" );
String log = FileUtils.fileRead( new File( v.getBasedir(), v.getLogFileName() ) );
Assert.assertTrue( log.contains( "Skipping flexmojos goal execution" ) );
Assert.assertFalse( log.contains( "Flexmojos " + MavenUtils.getFlexMojosVersion()
+ " - GPL License (NO WARRANTY) - See COPYRIGHT file" ) );
File target = new File( v.getBasedir(), "target" );
File swf = new File( target, "flexmojos-168-skip-1.0-SNAPSHOT.swf" );
Assert.assertFalse( swf.exists() );
v.assertArtifactNotPresent( "info.rvin.itest.issues", "flexmojos-168-skip", "1.0-SNAPSHOT", "swf" );
}