[izpack-users] How to get changes into the install.jar?

Bartz, Klaus Klaus.Bartz at coi.de
Wed Oct 25 13:51:31 CEST 2006


Hi Macke,
are you would modify classes in com.izforge.izpack.installer?
You cannot change them in your install.jar because other
classes contains references to the old classes you have
replaced.
You have to generate a new %IZ_HOME%\lib\installer.jar.
May be you can add to this file (I never done it, therefore
do not know whether it really work or not), but the better
way is to build it via Ant. Do for it following:

1. If not allready done install IzPack with sources.
2. If not on your box install a 1.6.2 Ant. 1.5 and
   1.6.1 (?) works not.
3. If you would change "things" in IzPack self look into
   %IZ_HOME%\src\build.xml. If you add some classes look
   whether they are referenced via place holder or not.
   If not, add them.
   Place the src in the src-tree of IzPack.
   With every change it is needed to make a new build
   of IzPack if you would see the result outside the
   debugger. Inside it works without rebuild often, but
   not ever. Sometimes you have first to call
   "ant clean".

Beside changes in IzPack you can add something to  IzPack.
One you have see with additional jar files.
You can also add custom panels and custom actions. See the
docu, may be search the mailing lists.
build.xml contains rules for building panels and actions
in the right manner and copies the created jars to the
right position.
To use a IDE (e.g. eclipse) is a good idea at developing
something in or for IzPack. It seems so you do it, I hope
you have read the lines in the docu for it. Debug uninstall and
installer with a native part will be a little bit tricky

If you have problems, do not hesitate to call us.

Cheers

Klaus


>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of macke
>Sent: Wednesday, October 25, 2006 12:14 PM
>To: izpack-users at lists.berlios.de
>Subject: [izpack-users] How to get changes into the install.jar?
>
>
>
>Hi!
>
>if I change resp. add something e.g. in
>/IzPack/com/izforge/izpack/installer, how do I get this 
>changes into the
>resulting install.jar file? I get changes in e.g.
>/IzPack/com/izforge/izpack/util into the jar by generating jar 
>files which
>include the changed classes and specifying the path to this jar in the
>install.xml (for example a whole util.jar). This works for 
>that. So I have
>my own validator checks for example. For classes in
>/IzPack/com/izforge/izpack/installer it doesn't work. When I start the
>installer from eclipse, all my changes work. But when I execute the
>install.jar itself, it seems that old classes are in the jar. 
>So I tried to
>replace the class file in the install.jar. But when I execute 
>the jar I get
>an error.
>How do I get an install.jar, in which all my changes are included?
>
>thanks for help in advance,
>macke
>-- 
>View this message in context: 
http://www.nabble.com/How-to-get-changes-into-the-install.jar--tf2506770.html#a6989426
Sent from the izpack users mailing list archive at Nabble.com.

_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users



More information about the izpack-users mailing list