[izpack-user] Problem with a Java Condition

38 views
Skip to first unread message

Massimiliano Ziccardi

unread,
Oct 28, 2009, 10:06:18 AM10/28/09
to us...@izpack.codehaus.org
Hi all.

Sorry for the newbie question, but could not find any
documentation/example about my need.

I simply need to test the OS architecture (i386, IA64, etc..) to
install different libraries for different architectures.

I tried with the following condition:

<condition type="java" id="arch.i386">
<java>
<class>com.izforge.izpack.util.OsVersion</class>
<field>OS_ARCH</field>
</java>
<returnvalue type="String">i386</returnvalue>
</condition>

Then, inside the install.xml I put:

<pack name="myPack" required="no" condition="arch.i386">
...

However, running the install with trace enabled, I always see:

Pack.getCondition(): null for pack myPack

I think that probably the problem is about the String comparison
condition (with boolean condition I got it work for another pack).
Do I do something wrong?
Is String comparison enabled?

Thanks,
Massimiliano

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Dennis Reil

unread,
Nov 2, 2009, 4:07:54 AM11/2/09
to us...@izpack.codehaus.org
Hi,

I think Java condition only supports boolean at the moment.

Regards,
Dennis

Regards,
Dennis

Reply all
Reply to author
Forward
0 new messages