[sip-comm-dev] Wix installation build


#1

Hi!
I'm new to sip communicator.
I imported sip to eclipse by SVN, and it runs just fine.
But i found some problems while building windows installation.
I installed last version of Wix. As i understand from mailing lists IzPack
installation is deprecated, am i right?
So i changed all paths to wix in build.xml (in
sip-communicator\resources\install) and run build-installation-wix ant (from
eclipse). And i got error:

Buildfile: D:\work\sip-communicator\resources\install\build.xml
clean-install-windows:
   [delete] Deleting directory D:\work\sip-communicator\release\windows
    [mkdir] Created dir: D:\work\sip-communicator\release\windows
    [mkdir] Created dir: D:\work\sip-communicator\release\windows\tmp
    [mkdir] Created dir: D:\work\sip-communicator\release\windows\tmp\jre
-pre-version:
version:

BUILD FAILED
D:\work\sip-communicator\build.xml:392: destination directory
"D:\work\sip-communicator\resources\install\classes" does not exist or is
not a directory

This error is from here:
    <!-- SIP Communicator Version -->
    <target name="version" depends="-pre-version">
        <!-- Recompile ant task classes-->
        <delete failonerror="false">
            <fileset dir="${dest}"
includes="net/java/sip/communicator/impl/version/*.class"/>
        </delete>
        <javac classpathref="compile.class.path" destdir="${dest}"
source="1.5" target="1.5">
            <src path="${src}"/>
            <include
name="net/java/sip/communicator/impl/version/NightlyBuildID.java" />
            <include
name="net/java/sip/communicator/impl/version/VersionImpl.java" />
            <include
name="net/java/sip/communicator/impl/version/SipCommunicatorVersionTask.java"
/>
        </javac>

So why i have not that class folder ? Should i create it manually ? I tryed
to create it, but i've got other errors:

Buildfile: D:\work\sip-communicator\resources\install\build.xml
clean-install-windows:
   [delete] Deleting directory D:\work\sip-communicator\release\windows
    [mkdir] Created dir: D:\work\sip-communicator\release\windows
    [mkdir] Created dir: D:\work\sip-communicator\release\windows\tmp
    [mkdir] Created dir: D:\work\sip-communicator\release\windows\tmp\jre
-pre-version:
version:
    [javac] Compiling 3 source files to
D:\work\sip-communicator\resources\install\classes
     [echo] SIP Communicator version 1.0-alpha3-0.build.by.SVN
define-jsmooth-task:
windows-generate-exe:
build-installation-wix:
[propertyfile] Creating new property file:
D:\work\sip-communicator\release\windows\versionupdate.properties
    [mkdir] Created dir: D:\work\sip-communicator\release\windows\tmp\light
     [copy] Copying 4 files to
D:\work\sip-communicator\release\windows\tmp\light
    [mkdir] Created dir:
D:\work\sip-communicator\release\windows\tmp\light\lib
     [copy] Copying 5 files to
D:\work\sip-communicator\release\windows\tmp\light\lib
    [mkdir] Created dir:
D:\work\sip-communicator\release\windows\tmp\light\lib\bundle
     [copy] Copying 4 files to
D:\work\sip-communicator\release\windows\tmp\light\lib\bundle
    [mkdir] Created dir:
D:\work\sip-communicator\release\windows\tmp\light\native
     [copy] Copying 30 files to
D:\work\sip-communicator\release\windows\tmp\light\native
    [mkdir] Created dir:
D:\work\sip-communicator\release\windows\tmp\light\sc-bundles
     [copy] Copying 78 files to
D:\work\sip-communicator\release\windows\tmp\light\sc-bundles
     [copy] Copying 1 file to
D:\work\sip-communicator\release\windows\tmp\light
     [exec] heat.exe : warning HEAT5150 : Could not harvest data from a file
that was expected to be a SelfReg DLL:
D:\work\sip-communicator\release\windows\tmp\light\native\jdic_misc.dll. If
this file does not support SelfReg you can ignore this warning. Otherwise,
this error detail may be helpful to diagnose the failure: Unable to load
file:
D:\work\sip-communicator\release\windows\tmp\light\native\jdic_misc.dll,
error: 126.
     [exec] heat.exe : warning HEAT5150 : Could not harvest data from a file
that was expected to be a SelfReg DLL:
D:\work\sip-communicator\release\windows\tmp\light\native\jmfjawt.dll. If
this file does not support SelfReg you can ignore this warning. Otherwise,
this error detail may be helpful to diagnose the failure: Unable to load
file: D:\work\sip-communicator\release\windows\tmp\light\native\jmfjawt.dll,
error: 126.
     [xslt] Processing D:\work\sip-communicator\release\windows\tmp\heat.wxs
to D:\work\sip-communicator\release\windows\tmp\component-defines.wxi
     [xslt] Loading stylesheet
D:\work\sip-communicator\resources\install\windows\heat-component-defines.xsl
     [xslt] Processing D:\work\sip-communicator\release\windows\tmp\heat.wxs
to D:\work\sip-communicator\release\windows\tmp\component-refs.wxi
     [xslt] Loading stylesheet
D:\work\sip-communicator\resources\install\windows\heat-component-refs.xsl
     [copy] Copying 4 files to D:\work\sip-communicator\release\windows\tmp
     [exec] installer-windows.wxs
     [copy] Copying 3 files to
D:\work\sip-communicator\release\windows\tmp\light
     [exec]
D:\work\sip-communicator\release\windows\tmp\installer-windows.wxs(112) :
warning LGHT1079 : The cabinet 'Data1.cab' does not contain any files. If
this installation contains no files, this warning can likely be safely
ignored. Otherwise, please add files to the cabinet or remove it.
     [exec]
D:\work\sip-communicator\release\windows\tmp\installer-windows.wxs(379) :
error LGHT0103 : The system cannot find the file
'/opt/jre-install/j2re-1_4_2_12-windows-i586-p-iftw.exe'.

BUILD FAILED
D:\work\sip-communicator\resources\install\build.xml:546: exec returned: 103

What im doin wrong ?