in src/main/java/org/apache/maven/plugins/jmod/JModDescribeMojo.java [59:94]
public void execute()
throws MojoExecutionException, MojoFailureException
{
String jModExecutable;
try
{
jModExecutable = getJModExecutable();
}
catch ( IOException e )
{
throw new MojoFailureException( "Unable to find jmod command: " + e.getMessage(), e );
}
getLog().info( "Toolchain in maven-jmod-plugin: jmod [ " + jModExecutable + " ]" );
if ( !jmodFile.exists() || !jmodFile.isFile() )
{
throw new MojoFailureException( "Unable to find " + jmodFile.getAbsolutePath() );
}
Commandline cmd;
try
{
cmd = createJModDescribeCommandLine( jmodFile );
}
catch ( IOException e )
{
throw new MojoExecutionException( e.getMessage() );
}
cmd.setExecutable( jModExecutable );
getLog().info( "The following information is contained in the module file " + jmodFile.getAbsolutePath() );
executeCommand( cmd, outputDirectory );
}