2012-09-12 3 views

답변

0

해야합니다. jar 파일에 모든 것을 함께 묶을 것입니다. 설치 파일의 팩 태그를 들어, 다음 호출이 DirectoryName를 들어

<pack name="PROJECTPACKNAME" required="yes" preselected="yes" 
     installGroups="New Application"> 
     <description>PROJECT install</description> 
     <file src="@{DIRECTORYNAME.dir}" targetdir="$INSTALL_PATH" /> 
    </pack> 

을, 당신은 즉, 빌드 파일의 속성을 선언해야합니다 :

<property name="DIRECTORYNAME.dir" value="/apps/MyProjectName"/> 

이 다음 빌드에서 대상을 파일 :

<target name="SftWreBundle" depends="init" description="build the software bundle"> 

    <taskdef name="izpack" classpath="${izpack.dir}/lib/standalone-compiler.jar" classname="com.izforge.izpack.ant.IzPackTask" /> 
    <izpack input="install.xml" output="${dist}/${product.short.name}-${product.version}-install.jar" 
     installerType="standard" inheritAll="true" 
     basedir="${basedir}" compression="deflate" compressionlevel="9" /> 
</target> 

이 대상을 실행하기 전에 작업 디렉토리를 지울 수도 있습니다.