Issue Type: Bug Bug
Assignee: Jesse Glick
Created: 08/Dec/13 10:41 AM
Description:

The installDir parameter has no effect.

The reason - when you look into the standard template.xml - is not so strange:

Mojo sets property install.dir.name but this is not used anywhere in the template.xml file. Instead the following is in that file:

 
<replace dir="${installer.build.dir}/ext/infra/build/products" encoding="utf-8">
    ...
    <replacefilter token="{product-install-directory-name}"         value="${suite.props.app.name}"/>
    <replacefilter token="{product-install-directory-name-windows}" value="${suite.props.app.name}"/>
    <replacefilter token="{product-install-directory-name-macosx}"  value="${suite.props.app.name}"/>
        </replace>       

My current workaround is the change this to:

 
<replace dir="${installer.build.dir}/ext/infra/build/products" encoding="utf-8">
    ...
    <replacefilter token="{product-install-directory-name}"         value="${install.dir.name}"/>
    <replacefilter token="{product-install-directory-name-windows}" value="${install.dir.name}"/>
    <replacefilter token="{product-install-directory-name-macosx}"  value="${install.dir.name}"/>
        </replace>       

which seems safe since the Mojo always sets install.dir.name so I don't have to check that it exists.

Side note: I don't know the actual difference between these three parameter or why they need to be platform dependent. I specify mycompany/myproduct (i.e with forward-slash) in my POM and NBI correctly translates that into C:\Program Files\mycompany\myproduct in the install wizard. A further test shows that on Windows the parameter that actually gets used is product-install-directory-name-windows so I don't know what product-install-directory-name is for.

Environment: Tested on 3.11.1
Project: Mojo's NetBeans Module Maven Plugin
Priority: Major Major
Reporter: Peter Hansson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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