[izpack-users] How to copy files from absolute path

Bartz, Klaus Klaus.Bartz at coi.de
Thu Jan 18 09:21:05 CET 2007


Hi Sonal,
it seems so that you try to declare a copy action at installation time in the
installation definition file (often called "install.xml").
This is not possible. One reason is, that install.xml will be only used at
packaging ("compile"), not at installation time.
Be aware that IzPack will be performed in three steps at diffenrent times 
with different environments.
packaging("compile")
install
uninstall
There is no explicit copy action in standard IzPack. But you can write
a batch or shell script with  variables in it. Add it in a <fileset> (or so),
in a <parsable> and in a <executable> in a <pack>. Then it will be
installed, parsed and executed at installation time.
Alternatively you can use the AntActionInstallerListener, but for one or
two files the overhead is a little bit big.
 
Secondary some words to jdbc driver of Oracle:
If you would support Oracle 9i may be you need additional charset12.jar.
If you would support Oracle 9iR2 you need the one file ojdbc14.jar.
If you would support Oracle10gR2 you need also ojdbc14.jar, but this is an other 
file as that for Oracle 9iR2. For Oracle 10g I have forgotton...
 
Cheers
 
Klaus
 
 

-----Original Message-----
From: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Sonal Deshpande
Sent: Thursday, January 18, 2007 6:34 AM
To: izpack-users at lists.berlios.de
Subject: [izpack-users] How to copy files from absolute path



Hi, 

In my installation process I am supposed to copy classes12.jar from ORACLE-HOME\jdbc\lib to my folder 
but when I specify file tag in my packs tag it tries to find this file in folder where my install.jar resides 
My file tag is as follows..... 

<file src="$oracle_home/jdbc/lib/clasees12.jar"  targetdir="some path"/> 

where $oracle_home is a variable set in UserInputSpec.xml. 

I get error as 

  File not found            ------[path for install.jar] /$oracle_home/jdbc/lib/clasees12.jar 


How can I specify absolute path in src tag? 


Regards 

Sonal B Deshpande
Tata Consultancy Services
Mailto: sonal.deshpande at tcs.com
Website: http://www.tcs.com
=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain 

confidential or privileged information. If you are 

not the intended recipient, any dissemination, use, 

review, distribution, printing or copying of the 

information contained in this e-mail message 

and/or attachments to it are strictly prohibited. If 

you have received this communication in error, 

please notify us by reply e-mail or telephone and 

immediately and permanently delete the message 

and any attachments. Thank you





-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070118/221eabbd/attachment.html 


More information about the izpack-users mailing list