Add convenience methods to MavenProjectStub to easily populate model from test resource ---------------------------------------------------------------------------------------
Key: MPLUGINTESTING-1 URL: http://jira.codehaus.org/browse/MPLUGINTESTING-1 Project: Maven 2.x Plugin Testing Issue Type: Improvement Components: plugin-testing-harness Affects Versions: 1.1 Reporter: Benjamin Bentmann Priority: Minor The following code snippet {code:java} MavenXpp3Reader pomReader = new MavenXpp3Reader(); Model model = null; try { File pomFile = new File( getBasedir(), "some-pom.xml" ); model = pomReader.read( ReaderFactory.newXmlReader( pomFile ) ); setModel( model ); } catch ( Exception e ) { throw new RuntimeException( e ); } {code} is both tiresome and error-prone (encoding). Moving this functionality into the {{MavenProjectStub}} would make life easier. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira