2013-10-18 84 views
1

我试图得到一个无头的安装工作(从远程Linux命令行安装)的IzPack控制台安装

但每次我运行的命令,我得到这个瞬间

java -jar install.jar -console 
[ Console Installation done ] 

什么我必须做的就是安装使用-console命令的工作,我宁愿得到这个工作不是诉诸使用自动安装XML文件

这里使用的IzPack 5.0.0

我的IzPack XML
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> 

<!-- 
    A sample installation file. 
    Use it as a base for your own installers :-) 

    To compile it : 
    - go in the bin directory where you installed IzPack 
    - call "compile ../sample/install.xml -b ../sample" 
--> 

<installation version="1.0"> 

    <!-- 
     The info section. 
     The meaning of the tags should be natural ... 
    --> 
    <info> 
     <appname>EMEProvisioningSDK</appname> 
     <appversion>${project.version}-Linux</appversion> 
     <!-- 
     <authors> 
      <author name="Anthony Lafleur-Tighe" email="[email protected]"/> 
     </authors> 
     <url>http://prodcat.ericsson.se/frontend/category.action?code=FGB%20101%20652&path=%5cNavigation%20Root%5cFGA%20101%2017%5cFGB%20101%20743%5cFGB%20101%20399</url> 
Roll  --> 
    </info> 

    <!-- 
     The gui preferences indication. 
     Sets the installer window to 640x480. It will not be able to change the size. 
    --> 
    <guiprefs width="640" height="480" resizable="yes"/> 

    <!-- 
     The locale section. 
     Asks here to include the English and French langpacks. 
    --> 
    <locale> 
     <langpack iso3="eng"/> 
    </locale> 

    <!-- 
     The resources section. 
     The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel. 
    --> 
    <resources> 
     <res id="LicencePanel.licence" src="Licence.txt"/> 
     <res id="InfoPanel.info" src="Readme.txt"/> 
     <res id="ProcessPanel.Spec.xml" src="installProvisioningPanelSpec_linux.xml" /> 
     <res id="shortcutSpec.xml" src="shortcutSpec_linux.xml" /> 
    </resources> 

    <!-- 
     The panels section. 
     We indicate here which panels we want to use. The order will be respected. 
    --> 
    <panels> 
     <panel classname="HelloPanel"/> 
     <panel classname="InfoPanel"/> 
     <panel classname="LicencePanel"/> 
     <panel classname="TargetPanel"/> 
     <panel classname="PacksPanel"/> 
     <panel classname="InstallPanel"/> 
     <panel classname="ProcessPanel" /> 
     <panel classname="ShortcutPanel"/> 
     <panel classname="FinishPanel"/> 
    </panels> 

    <!-- 
     The packs section. 
     We specify here our packs. 
    --> 
    <packs> 
     <pack name="Base" required="yes"> 
      <description>The base files</description> 
      <file src="Readme.txt" targetdir="$INSTALL_PATH"/> 
      <file src="Licence.txt" targetdir="$INSTALL_PATH"/> 
      <file src="unzip.exe" targetdir="$INSTALL_PATH"/> 
      <file src="changePermissions.sh" targetdir="$INSTALL_PATH"/> 
     </pack> 
     <pack name="MCDProxy" required="yes"> 
      <description>The MCDProxy</description> 
      <file src="install_mcd.sh" targetdir="$INSTALL_PATH"/> 
      <file src="mcdproxy-component-eme-resource-assembly.zip" targetdir="$INSTALL_PATH"/> 
      <file src="global-config.zip" targetdir="$INSTALL_PATH"/> 
      <file src="MCDPROXY-CXC1736424-win32.zip" targetdir="$INSTALL_PATH"/> 
      <file src="postgresql-jdbc-driver.jar" targetdir="$INSTALL_PATH"/> 
     </pack> 
     <pack name="Tomcat" required="yes"> 
      <description>Tomcat 7, web container for Provisioning Agent</description> 
      <file src="tomcat-7.0.20-noarch-full.zip" targetdir="$INSTALL_PATH"/> 
      <file src="install_tomcat.sh" targetdir="$INSTALL_PATH"/> 
      <file src="tomcat-users.xml" targetdir="$INSTALL_PATH"/> 
      <file src="security-component.jar" targetdir="$INSTALL_PATH"/> 
      <file src="libsysutils-component.jar" targetdir="$INSTALL_PATH"/> 
      <file src="libsysutils.so" targetdir="$INSTALL_PATH"/> 
      <file src="common-oam.jar" targetdir="$INSTALL_PATH"/> 
      <file src="common-debug.jar" targetdir="$INSTALL_PATH"/> 
      <file src="common-cache.jar" targetdir="$INSTALL_PATH"/> 
      <file src="common-mcd.jar" targetdir="$INSTALL_PATH"/> 
      <file src="common-crypto.jar" targetdir="$INSTALL_PATH"/> 
      <file src="mcc_common.jar" targetdir="$INSTALL_PATH"/> 
     <file src="common-xml.jar" targetdir="$INSTALL_PATH"/> 
    <file src="mcc_mfs.jar" targetdir="$INSTALL_PATH"/> 
    <file src="mcc_sm.jar" targetdir="$INSTALL_PATH"/> 
      <file src="security-component.jar" targetdir="$INSTALL_PATH"/> 
      <file src="authentication-api.jar" targetdir="$INSTALL_PATH"/> 
      <file src="mcc_identityformatter.jar" targetdir="$INSTALL_PATH"/> 
      <file src="mail.jar" targetdir="$INSTALL_PATH"/> 
      <file src="javax.mail-api.jar" targetdir="$INSTALL_PATH"/> 
      <file src="mio-valve.jar" targetdir="$INSTALL_PATH"/> 
      <file src="mio-filters.jar" targetdir="$INSTALL_PATH"/> 
      <file src="mio_startup.sh" targetdir="$INSTALL_PATH"/> 
     </pack> 
     <pack name="Provisioning Agent" required="yes"> 
      <description>The Provisioning Agent</description> 
      <file src="install_pa.sh" targetdir="$INSTALL_PATH"/> 
      <file src="provisioningagent-web.war" targetdir="$INSTALL_PATH"/> 
      <file src="provisioningagent-eme-config-assembly.zip" targetdir="$INSTALL_PATH"/> 
      <file src="samples.zip" targetdir="$INSTALL_PATH"/> 

     </pack> 
     <pack name="PostgreSQL" required="yes"> 
      <description>PostgreSQL Relational DB</description> 
      <file src="postgresql-9.1.2-150.1.x86_64.rpm" targetdir="$INSTALL_PATH"/> 
      <file src="postgresql-libs-9.1.2-66.1.x86_64.rpm" targetdir="$INSTALL_PATH"/> 
      <file src="postgresql-server-9.1.2-150.1.x86_64.rpm" targetdir="$INSTALL_PATH"/> 
      <file src="pg_hba.conf" targetdir="$INSTALL_PATH"/> 
      <file src="install_postgresql.sh" targetdir="$INSTALL_PATH"/> 
      <executable targetfile="$INSTALL_PATH/changePermissions.sh" type="bin" stage="postinstall" keep="true" failure="warn" os="linux"> 
      <args> 
       <arg value="$INSTALL_PATH"/> 
       </args> 
      </executable> 
     </pack> 
    </packs> 
</installation> 
+0

如果您希望在这里找到有用的答案,您应该确定您的izpack版本并发布install.xml。您是否尝试在命令行中添加-DTRACE = TRUE以获取更多信息? – Torsten

+0

你是对的,我也用Dtrace添加了我的XML文件 我得到这个初始化包的条件。 Pack.getCondition():为null包基础1 Pack.getCondition():为null包MCDProxy Pack.getCondition():空用于包的Tomcat Pack.getCondition():为null包Provisionin Pack.getCondition() :null for pack PostgreSQL –

+1

还没有发布5.0.0版本(最后一个版本是昨天发布的5.0.0-rc1),因此您可能正在使用测试版本,这可能无法正常工作。我的猜测是用5.0.0-rc1来试试。我用这个版本构建了一个工作控制台安装程序。乍一看,您的install.xml显示没有任何可疑内容。 – Torsten

回答

0

行更改

<installation version="1.0"> 

<installation version="5.0"> 

的IzPack 5.0 *不会与1.0版本的正常工作。

相关问题