[ 
https://jira.codehaus.org/browse/MNBMODULE-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291797#comment-291797
 ] 

Joe Rice commented on MNBMODULE-161:
------------------------------------

Ah yes, I guess I hadn't thought about approaching it that way but I guess I 
can replace any files I want in the harness with some custom steps in the 
template.xml.  I'll just have to brush up on my ant.

Thanks for looking at this, and for adding the build installers task.  It's 
going to really simplify my life.
                
> 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


Reply via email to