org.apache.ws.util.jndi.tools
Class JndiConfigUpdater

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended byorg.apache.ws.util.jndi.tools.JndiConfigUpdater
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class JndiConfigUpdater
extends org.apache.tools.ant.taskdefs.MatchingTask

Author:
Sal Campana

Field Summary
static java.lang.String SYSPROP_JNDI_CONFIG
          Below default can be overridden by setting the below sysprop.
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
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
JndiConfigUpdater()
          Creates a new JndiConfigUpdater object.
JndiConfigUpdater(java.io.File jndiConfig)
          Creates a new JndiConfigUpdater object for updating the specified WSDD file.
JndiConfigUpdater(java.lang.String jndiConfig)
          Creates a new JndiConfigUpdater object for updating the specified jndi-config.xml, which may be a a file path or a location in the classpath.
 
Method Summary
 void addConfiguredJndiConfigPaths(org.apache.tools.ant.types.FileSet jndiConfigPaths)
           
 void deploy(java.io.File deployJndiConfig)
          DOCUMENT_ME
 void execute()
          DOCUMENT_ME
static void main(java.lang.String[] args)
          Command-line invocation entry point.
 void setDeployJndiConfig(java.io.File deployJndiConfig)
          Sets the JndiConfig fragment to be added to the JNDIonfig file.
 void setJndiConfig(java.lang.String jndiConfig)
          Sets the WSDD to be updated.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSPROP_JNDI_CONFIG

public static final java.lang.String SYSPROP_JNDI_CONFIG
Below default can be overridden by setting the below sysprop.

See Also:
Constant Field Values
Constructor Detail

JndiConfigUpdater

public JndiConfigUpdater()
Creates a new JndiConfigUpdater object.


JndiConfigUpdater

public JndiConfigUpdater(java.io.File jndiConfig)
Creates a new JndiConfigUpdater object for updating the specified WSDD file.

Parameters:
jndiConfig - DOCUMENT_ME

JndiConfigUpdater

public JndiConfigUpdater(java.lang.String jndiConfig)
Creates a new JndiConfigUpdater object for updating the specified jndi-config.xml, which may be a a file path or a location in the classpath.

Parameters:
jndiConfig - DOCUMENT_ME
Method Detail

setDeployJndiConfig

public void setDeployJndiConfig(java.io.File deployJndiConfig)
Sets the JndiConfig fragment to be added to the JNDIonfig file.

Parameters:
deployJndiConfig - the JNDIConfigfragment to be added to the JndiConfig file.

addConfiguredJndiConfigPaths

public void addConfiguredJndiConfigPaths(org.apache.tools.ant.types.FileSet jndiConfigPaths)

setJndiConfig

public void setJndiConfig(java.lang.String jndiConfig)
Sets the WSDD to be updated.

Parameters:
jndiConfig - the Jndi-config.xml to be updated

deploy

public void deploy(java.io.File deployJndiConfig)
            throws java.lang.Exception
DOCUMENT_ME

Parameters:
deployJndiConfig - DOCUMENT_ME
Throws:
java.lang.Exception - DOCUMENT_ME

execute

public void execute()
             throws org.apache.tools.ant.BuildException
DOCUMENT_ME

Throws:
org.apache.tools.ant.BuildException - DOCUMENT_ME

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Command-line invocation entry point.

Parameters:
args - command-line arguments
Throws:
java.lang.Exception - on fatal error


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