Package com.sun.xml.rpc.tools.wsdeploy
Class DeployTool
- java.lang.Object
-
- com.sun.xml.rpc.util.ToolBase
-
- com.sun.xml.rpc.tools.wsdeploy.DeployTool
-
- All Implemented Interfaces:
ProcessorNotificationListener
public class DeployTool extends ToolBase implements ProcessorNotificationListener
- Author:
- JAX-RPC Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclientSpecifiedprotected FiledestFileprotected booleandoNothingstatic StringJAXRPC_RI_DDstatic StringJAXRPC_RI_DD_PROCESSEDstatic StringJAXRPC_RI_RUNTIMEprotected booleankeepTemporaryFilesprotected Propertiespropsprotected FilesourceFileprotected Stringtargetprotected Filetmpdirprotected FiletmpdirBaseprotected StringuserClasspathprotected booleanverbosestatic StringWEBAPP_DDstatic StringWEBAPP_DD_PROCESSED
-
Constructor Summary
Constructors Constructor Description DeployTool(OutputStream out, String program)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectAllFiles(File dir, List files)protected static voidcopyFile(File in, File out)protected static voidcopyStream(InputStream is, OutputStream os)protected voidcreateRuntimeDescriptor(WebServicesInfo webServicesInfo)protected FilecreateTemporaryDirectory()protected voiddefineServletsAndListeners(WebServicesInfo webServicesInfo)protected voidexpandSourceFile()protected StringgetGenericErrorMessage()protected StringgetResourceBundleName()protected voidinitialize()voidonError(Localizable msg)voidonInfo(Localizable msg)voidonWarning(Localizable msg)protected voidpackageDestinationFile()protected voidpackageEndpointClient()protected booleanparseArguments(String[] args)protected voidprocess(EndpointInfo endpointInfo, WebServicesInfo webServicesInfo)protected voidprocess(WebServicesInfo webServicesInfo)protected static voidremoveDirectory(File directory)voidrun()protected FiletranslateSourceAppFileName(String name)protected voidusage()-
Methods inherited from class com.sun.xml.rpc.util.ToolBase
getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, printStackTrace, report, report, run, wasSuccessful
-
-
-
-
Field Detail
-
props
protected Properties props
-
doNothing
protected boolean doNothing
-
clientSpecified
protected boolean clientSpecified
-
verbose
protected boolean verbose
-
keepTemporaryFiles
protected boolean keepTemporaryFiles
-
sourceFile
protected File sourceFile
-
destFile
protected File destFile
-
tmpdirBase
protected File tmpdirBase
-
tmpdir
protected File tmpdir
-
userClasspath
protected String userClasspath
-
target
protected String target
-
WEBAPP_DD
public static final String WEBAPP_DD
- See Also:
- Constant Field Values
-
WEBAPP_DD_PROCESSED
public static final String WEBAPP_DD_PROCESSED
- See Also:
- Constant Field Values
-
JAXRPC_RI_DD
public static final String JAXRPC_RI_DD
- See Also:
- Constant Field Values
-
JAXRPC_RI_DD_PROCESSED
public static final String JAXRPC_RI_DD_PROCESSED
- See Also:
- Constant Field Values
-
JAXRPC_RI_RUNTIME
public static final String JAXRPC_RI_RUNTIME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeployTool
public DeployTool(OutputStream out, String program)
-
-
Method Detail
-
initialize
protected void initialize()
- Overrides:
initializein classToolBase
-
parseArguments
protected boolean parseArguments(String[] args)
- Specified by:
parseArgumentsin classToolBase
-
usage
protected void usage()
-
process
protected void process(WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
process
protected void process(EndpointInfo endpointInfo, WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
defineServletsAndListeners
protected void defineServletsAndListeners(WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
createRuntimeDescriptor
protected void createRuntimeDescriptor(WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
createTemporaryDirectory
protected File createTemporaryDirectory()
-
collectAllFiles
protected void collectAllFiles(File dir, List files) throws Exception
- Throws:
Exception
-
removeDirectory
protected static void removeDirectory(File directory) throws IOException
- Throws:
IOException
-
copyFile
protected static void copyFile(File in, File out) throws IOException
- Throws:
IOException
-
copyStream
protected static void copyStream(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
getGenericErrorMessage
protected String getGenericErrorMessage()
- Specified by:
getGenericErrorMessagein classToolBase
-
getResourceBundleName
protected String getResourceBundleName()
- Specified by:
getResourceBundleNamein classToolBase
-
onError
public void onError(Localizable msg)
- Specified by:
onErrorin interfaceProcessorNotificationListener
-
onWarning
public void onWarning(Localizable msg)
- Specified by:
onWarningin interfaceProcessorNotificationListener
-
onInfo
public void onInfo(Localizable msg)
- Specified by:
onInfoin interfaceProcessorNotificationListener
-
-