[izpack-users] how to use createForUnselectedPack

abdess danguir2 at caramail.com
Mon Apr 16 14:37:14 CEST 2007


Hi Dennis , 
thank you for your answer.
with this i don't have any more the exception.
but , it seems to me that i have a mistake in my configuration file ...
some panels appear even if I do not want that they appear ...
please , can you cheque for second once  my conditions.xml file , and tell
me if  there are other things to change. ( the manner that i use for not ,
ref ... is correct ?)
A+


Dennis Reil wrote:
> 
> Ahh, ok. I think, you're not working with the current trunk version?
> In 3.10, conditions always have to be in the
> com.izforge.izpack.rules-package and are always suffixed with Condition,
> so you have to say <condition type="java"
> 
> Hope that helps.
> 
> Regards,
>   Dennis
> 
> -----Ursprüngliche Nachricht-----
> Von: izpack-users-bounces at lists.berlios.de
> [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von abdess
> Gesendet: Freitag, 13. April 2007 18:11
> An: izpack-users at lists.berlios.de
> Betreff: Re: [izpack-users] how to use createForUnselectedPack
> 
> 
> thanks Dennis for your fast answer.
> but it does not work ... 
> 
> i have the following exception :
> 
> java.lang.NullPointerException
>         at
> com.izforge.izpack.rules.RulesEngine.analyzeCondition(RulesEngine.java:97)
>         at
> com.izforge.izpack.rules.RulesEngine.readConditions(RulesEngine.java:119)
>         at
> com.izforge.izpack.rules.RulesEngine.<init>(RulesEngine.java:55)
>         at
> com.izforge.izpack.installer.InstallerFrame.loadConditions(InstallerFrame.java:286)
>         at
> com.izforge.izpack.installer.InstallerFrame.<init>(InstallerFrame.java:251)
>         at
> com.izforge.izpack.installer.GUIInstaller.loadGUI(GUIInstaller.java:433)
>         at
> com.izforge.izpack.installer.GUIInstaller.access$100(GUIInstaller.java:79)
>         at
> com.izforge.izpack.installer.GUIInstaller$2.run(GUIInstaller.java:148)
>         at
> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>         at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
>         at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> 
> A+
> Abdessamad
> 
> 
> Dennis Reil wrote:
>> 
>> Ok, one problem is, it has to be <condition
>> type="com.izforge.izpack.rules.JavaCondition"
>> id="linux.install">. Sorry, my fault.
>> Try again. I think, it should work than.
>> 
>> Regards,
>>   Dennis
>> 
>> 
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: izpack-users-bounces at lists.berlios.de
>> [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von abdess
>> Gesendet: Freitag, 13. April 2007 13:47
>> An: izpack-users at lists.berlios.de
>> Betreff: Re: [izpack-users] how to use createForUnselectedPack
>> 
>> 
>> hi Dennis ,
>> thank  you very much for your answer.
>> i'd like to tell you , that i have done what you have suggested  to me ,
>> but
>> i still don't have what i want .
>> bellow what i've done :
>> 
>> ----------------------------------
>> in my install.xml file , i have :
>> 
>> <installation version="1.0">
>>          ...
>>         <resources>
>>                  ...
>>                  <res src="BASE/UserInputSpec.xml"
>> id="userInputSpec.xml"/>
>> 	         <res src="BASE/conditions.xml"  id="conditions.xml"/>
>> 	</resources>
>>         <panels>
>>                  ...
>>                  <panel classname="UserInputPanel" id="panel.0"/>
>> 		<panel classname="UserInputPanel" id="panel.1"/>
>>         </panels>
>>          ...
>>         <packs>
>>              ...
>>              <pack name="MyPack" preselected="yes" required="no"
>> id="install.myPack" os="unix">
>>                    ...
>> 	     </pack>	
>>         </packs>
>> </installation>
>> ----------------------------------        
>> my UserInputSpec.xml file contains :
>> <userInput>
>>      <panel order="0" id="panel.0">
>>        ....
>>      </panel>
>>      <panel order="1" id="panel.1">
>>        ....
>>      </panel>
>> </userInput>
>> ----------------------------------
>> finally i added a file conditions.xml , which contains :
>> <?xml version="1.0" ?>
>> <conditions>
>> 
>> <!--condition 1 -->
>> <condition type="de.reddot.installer.rules.JavaCondition"
>> id="linux.install">
>> 		<java>
>> 			<class>com.izforge.izpack.util.OsVersion</class>
>> 			<field>IS_LINUX</field>
>> 		</java>
>> 		<returnvalue type="boolean">true</returnvalue>
>> </condition>
>> 
>> <!--condition 2-->
>> <condition type="packselection" id="MyPackSelected">
>>         <packid>install.myPack</packid>
>> </condition>
>> 
>> <!--condition 3 -->
>> <condition type="not" id="NotMyPackSelected">
>> 	<condition type="ref" refid="MyPackSelected"/>
>> </condition>
>> 
>> <!--condition 4 -->
>> <condition type="and" id="showMyPackInstall">
>> 	<condition type="ref" refid="linux.install"/>
>> 	<condition type="ref" refid="MyPackSelected"/>
>> </condition>
>> 
>> <!--condition 5 -->
>> <condition type="and" id="showMyPackNotInstall">
>> 	<condition type="ref" refid="linux.install"/>
>> 	<condition type="ref" refid="NotMyPackSelected"/>
>> </condition>
>> 
>> <panelcondition conditionid="showMyPackInstall" panelid="panel.0"/> 
>> <panelcondition conditionid="showMYPackNotInstall" panelid="panel.1"/> 
>> 
>> </conditions>
>> 
>> my problem is ,  whatever i do a Linux installation or a windows  one , 
>> the
>> two panels appear alwayse.
>> 
>> please help!
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/how-to-use-createForUnselectedPack-tf3552508.html#a9977488
>> 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
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/izpack-users
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/how-to-use-createForUnselectedPack-tf3552508.html#a9981891
> 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
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-use-createForUnselectedPack-tf3552508.html#a10015210
Sent from the izpack users mailing list archive at Nabble.com.




More information about the izpack-users mailing list