net.sf.antcontrib.platform

Class OsFamily


public class OsFamily
extends Task

Task definition for the OsFamily task. This task sets the property indicated in the "property" attribute with the string representing the operating system family. Possible values include "unix", "dos", "mac" and "windows".

 Task Declaration:

 
   <taskdef name="osfamily" classname="net.sf.antcontrib.platform.OsFamily" />
 

 Usage:
 
   <osfamily property="propname" />
 

 Attributes:
   property --> The name of the property to set with the OS family name

 
Author:
Matthew Inger

Constructor Summary

OsFamily()

Method Summary

void
execute()
void
setProperty(String property)

Constructor Details

OsFamily

public OsFamily()

Method Details

execute

public void execute()
            throws BuildException

setProperty

public void setProperty(String property)