[izpack-users] Problem with the os attribute 'windows'
Trasher
trasher at x-tnd.be
Mon Feb 27 16:28:59 CET 2006
Hi,
I think I found the post Klaus was talkin about...
[quote]
Here are the values Sun uses for the os.name property to identify various
platforms: os.name
AIX
Digital Unix
FreeBSD
HP UX
Irix
Linux
Mac OS
MPE/iX
Netware 4.11
OS/2
Solaris
Windows 2000
Windows 95
Windows 98
Windows NT
Windows XP
http://mindprod.com/jgloss/properties.html
[/quote]
It was part of 'Creating shortcuts based on version of windows' and
posted by Fabrice on 10.02.2006 14:14
Hope that helps,
Johan.
Klaus Bartz a écrit :
> Hi Thilo,
> "linux" is not valid for the OS attribute, you can only use
> "windows" "unix" or "mac". It determine the family of OS.
> If no valid family was declared, it is assumed as no setted OS which
> means it should be installed on all OSs.
>
> You can use the element OS for more detail; e.g.
> <pack name="WINCore" required="yes">
> <description>The Windows XP InstallTest core
> files.</description>
> <os family="windows" name="windows xp" />
> <file src="WindowsXPCore.txt" targetdir="$INSTALL_PATH" />
> </pack>
>
> "name" is the value which will be returned by
> System.getProperty("os.name").
>
> Some weeks ago someone
> has posted an actual list of valid OS names, but in the moment I cannot
> find the mail. One of the email threads related to OS has had the title
> "Specifiying Required Packs and OSs".
> Or look into the docu and dtd.
>
> Cheers
>
> Klaus
>
> Am 27.02.2006, 14:48 Uhr, schrieb Thilo Schwarz (News) <news at s-th.de>:
>
>> Hi there!
>>
>> I've a problem with the os attribute in the pack tag and the fileset
>> tag.
>> I'm currently working on a swt based application. Therefore I need to
>> distribute different swt files on different os'. I've tested 2 ways.
>>
>> 1st way:
>>
>> <pack name="SWT files" required="yes">
>> <description>The SWT files</description>
>> <fileset dir="packs/swt/unzip/linux-gtk"
>> targetdir="$INSTALL_PATH/lib/swt" os="linux"/>
>> <fileset dir="packs/swt/unzip/win32"
>> targetdir="$INSTALL_PATH/lib/swt" os="windows"/>
>> </pack>
>>
>>
>> 2nd way:
>>
>> <pack name="SWT files for linux" required="yes" os="linux">
>> <description>The SWT files for linux</description>
>> <fileset dir="packs/swt/unzip/linux-gtk"
>> targetdir="$INSTALL_PATH/lib/swt"/>
>> </pack>
>>
>> <pack name="SWT files for windows" required="yes" os="windows">
>> <description>The SWT files for windows</description>
>> <fileset dir="packs/swt/unzip/win32"
>> targetdir="$INSTALL_PATH/lib/swt"/>
>> </pack>
>>
>>
>>
>> Both ways are working as expected on linux, but on windows (tested on XP
>> (SP2) and 2k (SP4a)) I get all swt files for windows and linux in my
>> lib/swt directory. BTW: I've checked the unzip directories! ;-)
>>
>> Am I wrong or stupid? (If so, please give me a hit on my head!) Or did I
>> found a bug? How can I debug this!
>>
>> Every hint and help are welcome.
>> Cheers,
>> Thilo
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> http://lists.berlios.de/mailman/listinfo/izpack-users
>>
>>
>> __________ NOD32 1.1419 (20060226) Information __________
>>
>> Diese E-Mail wurde vom NOD32 Antivirus System geprüft
>> http://www.nod32.com
>>
>>
>
>
>
> --Erstellt mit Operas revolutionärem E-Mail-Modul:
> http://www.opera.com/mail/
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-users
>
>
--
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=116935&t=82>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20060227/51261744/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: white_1.gif
Type: image/gif
Size: 859 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/izpack-users/attachments/20060227/51261744/attachment.gif
More information about the izpack-users
mailing list