private SARLConfiguration readCompileConfiguration ( ProjectConfigurationRequest request , MojoExecution mojo , IProgressMonitor monitor ) throws CoreException { final SARLConfiguration config = new SARLConfiguration ( ) ; final MavenProject project = request . getMavenProject ( ) ; final File input = getParameterValue ( project , "input" , File . class , mojo , monitor ) ; //$NON-NLS-1$ final File output = getParameterValue ( project , "output" , File . class , mojo , monitor ) ; //$NON-NLS-1$ final File binOutput = getParameterValue ( project , "binOutput" , File . class , mojo , monitor ) ; //$NON-NLS-1$ final File testInput = getParameterValue ( project , "testInput" , File . class , mojo , monitor ) ; //$NON-NLS-1$ final File testOutput = getParameterValue ( project , "testOutput" , File . class , mojo , monitor ) ; //$NON-NLS-1$ final File testBinOutput = getParameterValue ( project , "testBinOutput" , File . class , mojo , monitor ) ; //$NON-NLS-1$ config . setInput ( input ) ; config . setOutput ( output ) ; config . setBinOutput ( binOutput ) ; config . setTestInput ( testInput ) ; config . setTestOutput ( testOutput ) ; config . setTestBinOutput ( testBinOutput ) ; final String inputCompliance = getParameterValue ( project , "source" , String . class , mojo , monitor ) ; //$NON-NLS-1$ final String outputCompliance = getParameterValue ( project , "target" , String . class , mojo , monitor ) ; //$NON-NLS-1$ config . setInputCompliance ( inputCompliance ) ; config . setOutputCompliance ( outputCompliance ) ; final String encoding = getParameterValue ( project , "encoding" , String . class , mojo , monitor ) ; //$NON-NLS-1$ config . setEncoding ( encoding ) ; return config ; }
Read the configuration for the Compilation mojo .