Input type to select targets to install
If the osSpecific flag is set the OS of the current system will
be appended to the name of the target actually by ant run so that different
Targets can be run according to the target platform.
This feature goes against the principles of
building cross platform installers, but is provided so that common installer
tasks such as creating icons and shortcuts can be run on Windows for
all those useless users who can't run a command script ;)
Currently there are two modes strict and not strict (lax).
Strict target will return the target name plus the exact String in the
System Property "os.name" this means you will have to provide targets for
every possible OS version. See
this page for a list of possible values
There are a great many but you may not want to consider some of the options.
Lax target will return one of the following strings only
- "[target-name]-linux" - Linux
- "[target-name]-mac" - Mac OS and Mac OS X
- "[target-name]-sun" - SunOS and Solaris
- "[target-name]-win" - Windows *
- "[target-name]-other" - any thing else
so you only have to create 5 ant targets to support all the cases.
Copyright: Copyright (c) 2004
Company: tp23
author: Paul Hinds version: $Id: TargetInput.java,v 1.3 2006/12/07 02:42:22 teknopaul Exp $ |