Hello All,
I tried a different approach that works well. I am using InstallAnywhere
3.5.3 Enterprise edition and I invoke the IA executable directly. I first
create the IA project file and stick it into my "build" folder.
Configuration changes require that I update the IA project file (*.iap)
using IA's GUI (rarely required).
I also have a couple of "consolidated" targets that take care of the
dependencies like "compile", "jar", "manage other required files", "archive
build assets" etc.
Here is the target :
<!-- ======================== build installer :
========================= -->
<target name="build-installer" >
<echo message="iae.exe.dir = ${iae.exe.dir}"/>
<echo message="iae.prj.file = ${iae.prj.file}"/>
<exec dir="${install}" executable="${iae.exe.dir}\installanywhere.exe"
>
<arg value="-b"/>
<arg value="${iae.prj.file}"/>
</exec>
</target>
Regards,
Gautam Satpathy
-----Original Message-----
From: Viraj Purang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 8:27 AM
To: [EMAIL PROTECTED]
Subject: RE: Ant + ZeroG Install Anywhere?
Hi,
I got this error when I tried to invoke INstallANywhere from inside Ant
...
--------------------------
build-installer:
[echo] InstallAnywhere creating client setup
[java] Forking java -classpath "C:\Program Files\InstallAnywhere 3.5
Enterprise\IAClasses.zip;C:\Program Files\InstallAnywher
e 3.5 Enterprise\resource;C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\swingall.jar;C:\Program Files\InstallAnywhere 3
.5 Enterprise\resource\compiler.zip;C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\support3.zip" InstallAnywhere -b C:/P
rogram Files/InstallAnywhere 3.5 Enterprise/tahoe.iap
[java] SNMessenger: error(0)
[java] Java Result: 101
BUILD SUCCESSFUL
-------------------------
Any wise suggetions ...
Regards,
Viraj Purang
-----Original Message-----
From: Steve Donie [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 9:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Ant + ZeroG Install Anywhere?
I have been doing this with InstallAnywhere Enterprise. Here is my target:
<!-- ===================================================================
-->
<!-- Create Setup program
-->
<!-- ===================================================================
-->
<target name="setup" depends="jars" if="do-setup" description="creates
setup programs">
<!-- client stuff first -->
<delete dir="${build}/client/bin}" quiet="true"
includeEmptyDirs="true"/>
<delete dir="${jar}/cachedir" quiet="true" includeEmptyDirs="true"/>
<!-- these sets of files are overly simplistic! -->
<mkdir dir="${build}/client/bin" />
<copy todir="${build}/client/jar">
<fileset dir="${jar}" />
</copy>
<copy todir="${build}/client/bin">
<fileset dir="${bin}" />
</copy>
<!-- run install anywhere -->
<echo message="InstallAnywhere creating client setup" />
<!-- This should be failonerror, but need to fix build machine first -->
<java classname="InstallAnywhere" fork="yes">
<arg line="-b ${DS_HOME}/${tools}/install/tahoe.iap"/>
<classpath>
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\IAClasses.zip" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\swingall.jar" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\compiler.zip" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\support3.zip" />
</classpath>
</java>
<!-- create server -->
<delete dir="${build}/server/bin}" quiet="true"
includeEmptyDirs="true"/>
<mkdir dir="${build}/server/bin" />
<!-- run install anywhere -->
<echo message="InstallAnywhere creating server setup" />
<!-- This should be failonerror, but need to fix build machine first -->
<java classname="InstallAnywhere" fork="yes">
<arg line="-b ${DS_HOME}/${tools}/install/DSpaceServer.iap"/>
<classpath>
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\IAClasses.zip" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\swingall.jar" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\compiler.zip" />
<pathelement location="C:\Program Files\InstallAnywhere 3.5
Enterprise\resource\support3.zip" />
</classpath>
</java>
<echo file="buildsummary.log" append="true">InstallAnywhere completed
successfully.
</echo>
<echo file="SetupOK.log">InstallAnywhere completed successfully.</echo>
</target>
There are a few things I need to fix with it, but not critical right now,
like paramaterize the location of the installanywhere jars. I also wrote to
the list a while back, and have attached the thread generated.
-----Original Message-----
From: Jon Baer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 9:34 AM
To: [EMAIL PROTECTED]
Subject: Ant + ZeroG Install Anywhere?
Has anyone had any success on using Ant to do a final packaging build with
any
installer products like ZeroG's InstallAnywhere NOW! 4.0 stuff? (or any
installer for that matter).
- Jon