[ https://jira.codehaus.org/browse/MNBMODULE-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Glick closed MNBMODULE-161. --------------------------------- Resolution: Won't Fix I think given the comments this can be closed - {{templateFile}} is the recommended and (soon to be) documented approach. > Allow custom harness in build-installers goal > --------------------------------------------- > > Key: MNBMODULE-161 > URL: https://jira.codehaus.org/browse/MNBMODULE-161 > Project: Maven NetBeans Module Plugin > Issue Type: Wish > Affects Versions: 3.7 > Reporter: Joe Rice > Assignee: Jesse Glick > > It would be nice to be able to override the harness included in > nbm-maven-harness with one customized for a particular project. Right now > this is the easiest (though still pretty crude) way to do finer grained > customization of the created installer. > For my build I added a <harnessLocation> parameter and changed the > build-installer target code as follows: > // Copy Netbeans Installer resources > FileUrlUtils fu = new FileUrlUtils(); > File harnessDir = new File( outputDirectory, "installer" ); > > getLog().debug("Harness Location: " + harnessLocation); > if (harnessLocation == null) { > fu.copyResourcesRecursively( > getClass().getClassLoader().getResource( "harness" ), harnessDir ); > } > else if (harnessLocation.exists()) { > getLog().debug( "Copying harness directory"); > try { > FileUtils.copyDirectoryStructure(harnessLocation, harnessDir); > } > catch (IOException e) { > throw new MojoExecutionException("Exception copying harness > directory: " + harnessLocation.getAbsolutePath(), e); > } > getLog().debug( "Finished copying harness directory"); > > } > else { > throw new MojoExecutionException("The specified harness location > does not exist: " + harnessLocation.getAbsolutePath()); > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email