Changing Default Install Dir

Comments

1 comment

  • Avatar
    alejandror

    You could hide the installdir parameter and use a secondary parameter that would be the one that user will be able to modify. Then, construct installdir depending on the value of this secondary parameter. See below an example:

        <directoryParameter>
            <name>base_installdir</name>
            <value>${platform_install_prefix}</value>
            <description>Installation Directory</description>
            <cliOptionName>prefix</cliOptionName>
            <explanation>Please specify the directory where ${project.fullName} will be installed</explanation>
            <ask>yes</ask>
            <mustBeWritable>yes</mustBeWritable>
        </directoryParameter>
        <directoryParameter>
            <name>installdir</name>
            <value></value>
            <default>${base_installdir}/xYZ/aBC/</default>
            <ask>no</ask>
        </directoryParameter>
    </parameterList>
    
    0
    Comment actions Permalink

Please sign in to leave a comment.