接受用户输入的Maven RPM插件

时间:2012-03-27 16:30:17

标签: maven maven-2 maven-plugin

是否可以将preInstallScriptlet标记中的用户输入映射到目录标记?

<mapping>
    <directory>${install.basedir}</directory>
</mapping>
...
<preinstallScriptlet>
    <script>
        read -e -p "Enter the path to the file: " install.basedir;
        echo "Installing to " $install.basedir;
    </script>
</preinstallScriptlet>
...

0 个答案:

没有答案