org.jcoderz.commons.taskdefs
Class MakeReadonlyBeans

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jcoderz.commons.taskdefs.MakeReadonlyBeans
All Implemented Interfaces:
Cloneable

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

This task is used to modify a deployment descriptor, making a copy of the given entity beans with their name changed from FooEntity to FooReaderEntity. It also modifies the accompanying weblogic specific deployment descriptors.

Author:
Albrecht Messner

Nested Class Summary
 class MakeReadonlyBeans.ReadOnlyBean
           
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
MakeReadonlyBeans()
           
 
Method Summary
 MakeReadonlyBeans.ReadOnlyBean createReadOnlyBean()
           
 void execute()
          
 void setDeploymentDescriptor(File f)
           
 void setDestdir(File dir)
          Set the destination directory into which the XSL result files should be copied to.
 void setFailonerror(boolean b)
          Set whether we should fail on an error.
 void setForce(boolean b)
          Sets the force output of target files flag to the given value.
 void setSourceDestdir(File dir)
           
 void setWeblogicCmpDeploymentDescriptor(File f)
           
 void setWeblogicDeploymentDescriptor(File f)
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakeReadonlyBeans

public MakeReadonlyBeans()
Method Detail

setDestdir

public void setDestdir(File dir)
Set the destination directory into which the XSL result files should be copied to. This parameter is required.

Parameters:
dir - the name of the destination directory.

setSourceDestdir

public void setSourceDestdir(File dir)

setForce

public void setForce(boolean b)
Sets the force output of target files flag to the given value.

Parameters:
b - Whether we should force the generation of output files.

setFailonerror

public void setFailonerror(boolean b)
Set whether we should fail on an error.

Parameters:
b - Whether we should fail on an error.

setDeploymentDescriptor

public void setDeploymentDescriptor(File f)

setWeblogicDeploymentDescriptor

public void setWeblogicDeploymentDescriptor(File f)

setWeblogicCmpDeploymentDescriptor

public void setWeblogicCmpDeploymentDescriptor(File f)

createReadOnlyBean

public MakeReadonlyBeans.ReadOnlyBean createReadOnlyBean()

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


Copyright 2007 The jCoderZ Project.