org.apache.lenya.cms.ant
Class SetAreaProperties

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.lenya.cms.ant.SetAreaProperties

public class SetAreaProperties
extends org.apache.tools.ant.Task

ant task to set the properties of the project dependent of the area


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
SetAreaProperties()
          Creates a new instance of SetAreaProperties
 
Method Summary
 void execute()
           
 java.lang.String getArea()
           
 java.lang.String getDirpropertyname()
           
 void setArea(java.lang.String area)
           
 void setDirpropertyname(java.lang.String dirpropertyname)
           
protected  void setNewProperties(java.lang.String area, java.lang.String dirpropertyname)
          Sets the properties dependent of the area for the project
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetAreaProperties

public SetAreaProperties()
Creates a new instance of SetAreaProperties

Method Detail

getArea

public java.lang.String getArea()
Returns:
String The area.

setArea

public void setArea(java.lang.String area)
Parameters:
area - The area.

getDirpropertyname

public java.lang.String getDirpropertyname()
Returns:
String The name of the property for the content directory.

setDirpropertyname

public void setDirpropertyname(java.lang.String dirpropertyname)
Parameters:
dirpropertyname - The name of the property for the content directory.

setNewProperties

protected void setNewProperties(java.lang.String area,
                                java.lang.String dirpropertyname)
Sets the properties dependent of the area for the project

Parameters:
area - The area.
dirpropertyname - The name of the property for the content directory.

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.