only set conditionally

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@755210 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-03-17 12:05:35 +00:00
parent 848c7137a6
commit 7d1b3326fe
1 changed files with 4 additions and 2 deletions

View File

@ -26,7 +26,6 @@ import java.io.File;
/** /**
* @goal test * @goal test
*
* @phase process-sources * @phase process-sources
*/ */
public class DerivedItMojo public class DerivedItMojo
@ -43,8 +42,11 @@ public class DerivedItMojo
public void execute() public void execute()
throws MojoFailureException, MojoExecutionException throws MojoFailureException, MojoExecutionException
{
if ( file != null )
{ {
super.setOutputFile( file ); super.setOutputFile( file );
}
super.execute(); super.execute();
} }