PDA

View Full Version : ant build.xml



mholland
06-09-2004, 05:56 PM
If anyone uses ant to build their custom java files, here is a build.xml that I made that takes the place of "compile.bat". You'll have to substitute your own src location and <mycompany> for the path to build:

<project name="InstallBuild" default="build" basedir=".">

<property name="src"
location="c:/build/Prod/source/V7/REG/Install/NT/CollabMulti/CollabMulti/CustomCode/src"/>
<property name="target" location="C:/Program Files/InstallShield X/Universal Installer/classes"/>
<property name="Installshield" location="C:/Program Files/InstallShield X/Universal Installer"/>
<property name="debug" value="true"/>


<target name="build">
<javac srcdir="${src}/com/<mycompany>"
destdir="${target}"
debug="${debug}" nowarn="${nowarn}">
<classpath>
<pathelement location="${Installshield}/lib/ppk/win32ppk.jar"/>
<pathelement location="${Installshield}/lib/ppk/linuxppk.jar"/>
<pathelement location="${Installshield}/lib/ppk/solarisppk.jar"/>
<pathelement location="${Installshield}/lib/ppk/webppk.jar"/>
<pathelement location="${Installshield}/lib/genericunixppk.jar"/>
<pathelement location="${Installshield}/classes"/>
<pathelement location="${Installshield}/lib/ant.jar"/>
<pathelement location="${Installshield}/lib/hsqldb.jar"/>
<pathelement location="${Installshield}/lib/ib5core.jar"/>
<pathelement location="${Installshield}/lib/ib5swing.jar"/>
<pathelement location="${Installshield}/lib/ib5util.jar"/>
<pathelement location="${Installshield}/lib/icebrowserbean.jar"/>
<pathelement location="${Installshield}/lib/icebrowserlitebean.jar"/>
<pathelement location="${Installshield}/lib/ide.jar"/>
<pathelement location="${Installshield}/lib/iswi.jar"/>
<pathelement location="${Installshield}/lib/jhall.jar"/>
<pathelement location="${Installshield}/lib/jsearch.jar"/>
<pathelement location="${Installshield}/lib/parser.jar"/>
<pathelement location="${Installshield}/lib/platform.jar"/>
<pathelement location="${Installshield}/lib/product.jar"/>
<pathelement location="${Installshield}/lib/swing.jar"/>
<pathelement location="${Installshield}/lib/us.jar"/>
<pathelement location="${Installshield}/lib/wizard.jar"/>
<pathelement location="${Installshield}/lib/xalan.jar"/>
<pathelement location="${Installshield}/lib/xml-apis.jar"/>
<pathelement location="${Installshield}/lib/xt.jar"/>
<pathelement location="${Installshield}/classes/MyCustomBean.jar"/>
<pathelement location="${Installshield}/i18n"/>
</classpath>
</javac>
</target>

</project>

Rakesh_mahajan
06-29-2004, 04:09 AM
I am using universal installer to run ant.
I am using ant processor bean..
But ant command is not executing..
I have specified script file and target both..

Can anybody tell me what would be the problem?