[izpack-users] RE: Getting Custom panel visible

Jose Correia jose.correia at traderoot.com
Thu Jun 22 15:01:10 CEST 2006


I think I might have found the issue, please confirm:
 
inside the %IZHOME%\bin\compile we have the command:
 
"$JAVACMD" \
  $IZPACK_OPTS \
  -classpath "${IZPACK_HOME}/lib/compiler.jar" \
  "-Dtools.jar=$TOOLS_JAR" \
  "-Dizpack.home=${IZPACK_HOME}" \
  $MAIN_CLASS "$@"
 
now the second last line is passing a parameter called "izpack.home"
with the required value.
 
However in CompilerConfig.java when it tries to establish the izpack
home it looks for the property:
 
String izHome = System.getProperty("IZPACK_HOME");
 
so "izpack.home" != "IZPACK_HOME" hence why it remains the default "."
inside the code.
 
Can someone confirm this... if it is so then it's either the compile
file that has to be modified or the code itself to reflect the new
property name.
 
Regards
Jose Correia

________________________________

From: izpack-users-admin at berlios.de
[mailto:izpack-users-admin at berlios.de] On Behalf Of Jose Correia
Sent: 22 June 2006 02:35 PM
To: izpack-users at berlios.de
Subject: RE: [izpack-users] RE: Getting Custom panel visible


Thanks Klaus for the clarification, I tried the option:
 
if you use compiler.jar you have only to put the langpack files and
MyPanel.jar into the right dirs 
(%IZHOME%\bin\langpacks\installer, %IZHOME%\bin\panels).
 
I did this plus i modified the %IZHOME%\bin\install file to point to
compiler.jar,
 
i then ran:
 
$ compile ../TradeRootInstaller/install.xml -b ../TradeRootInstaller/ -o
../TradeRootInstaller/install.jar -k standard
 
from the %IZHOME%\bin using CYGWIN
 
and I'm now getting:
 
-> Processing  : ../TradeRootInstaller/install.xml
-> Output      : ../TradeRootInstaller/install.jar
-> Base path   : ../TradeRootInstaller/
-> Kind        : standard
-> Compression : default
-> Compr. level: -1
 
-> Fatal error :
   ../TradeRootInstaller/install.xml:18: Uninstaller not found:
.\lib\uninstalle
r.jar
com.izforge.izpack.compiler.CompilerException:
../TradeRootInstaller/install.xml
:18: Uninstaller not found: .\lib\uninstaller.jar
        at
com.izforge.izpack.compiler.CompilerConfig.parseError(CompilerConfig.
java:1518)
        at
com.izforge.izpack.compiler.CompilerConfig.findIzPackResource(Compile
rConfig.java:1483)
        at
com.izforge.izpack.compiler.CompilerConfig.addInfo(CompilerConfig.jav
a:1194)
        at
com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerCo
nfig.java:310)
        at
com.izforge.izpack.compiler.CompilerConfig.main(CompilerConfig.java:1
847)
        at com.izforge.izpack.compiler.Compiler.main(Compiler.java:620)
 
Any idea why it can't find the %IZHOME%\lib\uninstaller.jar ??
 
I did notice something u can improve under the method:
findIzPackResource in CompilerConfig line 1475:
 
URL url = getClass().getResource("/" + path);
 
change it to:
 
URL url = getClass().getResource(File.separator + path);    //this way
Java determines which separator to use based on OS i.e either "\" or "/"
 
Please assist, thanks.
 
Best regards
Jose Correia

________________________________

From: izpack-users-admin at berlios.de
[mailto:izpack-users-admin at berlios.de] On Behalf Of Bartz, Klaus
Sent: 21 June 2006 12:10 PM
To: izpack-users at berlios.de
Subject: RE: [izpack-users] RE: Getting Custom panel visible


Hi Jose,
it depends on what IzPack compiler you use.
If you use standalone-compiler.jar you have to do it, if you use
compiler.jar
you have only to put the langpack files and MyPanel.jar into the right
dirs 
(%IZHOME%\bin\langpacks\installer, %IZHOME%\bin\panels).
In detail: the jars and langpack files have to be in
standalone-compiler.jar, not more.
 
If you use %IZHOME%\src\dist-files\compile.bat often the standalone
compiler will be used.
 
You are free to write a little ant script which creates your custom
panels, copies to the
right place or put it into standalone-compiler.jar.
 
Cheers
 
Klaus

	-----Original Message-----
	From: izpack-users-admin at berlios.de
[mailto:izpack-users-admin at berlios.de]On Behalf Of Jose Correia
	Sent: Wednesday, June 21, 2006 11:38 AM
	To: izpack-users at lists.berlios.de
	Subject: [izpack-users] RE: Getting Custom panel visible
	
	
	Hi all
	 
	Can someone assist me on this please... have i got to build the
entire izpack project whenever I create a custom Panel or update the
langpacks (so that the standard-compiler jar gets updated with these)
before I can then build my own installation project??
	 
	Thanks
	Jose

________________________________

	From: Jose Correia 
	Sent: 15 June 2006 05:12 PM
	To: 'izpack-users at lists.berlios.de'
	Subject: Getting Custom panel visible
	
	
	Hi all
	 
	Apologies if this has already been asked but since there is no
search facility on previous posts I didn't feel like going through 15
megs worth of posts.
	 
	Anyway I created my sample project (using version 3.8.1) and I
wanted to add a custom Panel to it so I followed the instructions of
placing my panel's code inside ./bin/panels
	as per:
	 
	"/bin/panels: You will see that there is a subdirectory for each
panel. Make a subdirectory for your new panel with the exact same name
as your panel and place your compiled panel code there.
	

	Once this is accomplished, you are ready to use your panel in an
installer. Just list it in the spec file like any other panel, compile
and in theory it will show up when running the installer. Once you made
it this far, you can dig deeper and get going with your specific needs."

	I then specified my panel inside my sample project install.xml
file and then proceeded to run:

	../bin/compile install.xml -b . -o install.jar -k standard

	I now get this:

	"Adding content of jar:
file:/C:/Program%20Files/IzPack/lib/standalone-compiler.j
	ar!/bin/panels/LicencePanel.jar

	-> Fatal error :
	   install.xml:61: Panel jar file not found:
.\bin\panels\InstallationSelectionP
	anel.jar
	com.izforge.izpack.compiler.CompilerException: install.xml:61:
Panel jar file no
	t found: .\bin\panels\InstallationSelectionPanel.jar
	        at
com.izforge.izpack.compiler.CompilerConfig.parseError(CompilerConfig.
	java:1518)
	        at
com.izforge.izpack.compiler.CompilerConfig.findIzPackResource(Compile
	rConfig.java:1483)"

	So it looks like it's looking for my panel's jar file inside the
standalone-compiler.jar??? ( i did try putting in there and that part
worked, but I had also updated the english langpack and it moaned about
that too). I thought upon compile it was supposed to go look for these
things inside the directories themselves not that jar?

	Please help...thanks

	Jose Correia

	 

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


More information about the izpack-users mailing list