|
From: Scott S. <sco...@jb...> - 2006-07-10 16:29:01
|
User: starksm
Date: 06/07/10 12:28:59
Modified: src/main/org/jboss/deployers/plugins MainDeployerImpl.java
Log:
Add a parse(URL) method.
Revision Changes Path
1.3 +22 -2 system2/src/main/org/jboss/deployers/plugins/MainDeployerImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MainDeployerImpl.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/main/org/jboss/deployers/plugins/MainDeployerImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- MainDeployerImpl.java 6 Jul 2006 03:28:48 -0000 1.2
+++ MainDeployerImpl.java 10 Jul 2006 16:28:59 -0000 1.3
@@ -217,17 +217,37 @@
*/
public Deployment parse(URI deployURI) throws DeploymentException
{
+ URL deployURL = null;
+ try
+ {
+ deployURL = deployURI.toURL();
+ if( deployURL == null )
+ throw new DeploymentException("Failed to covert URI to URL: "+deployURI);
+ }
+ catch(IOException e)
+ {
+ throw new DeploymentException("Failed to covert URI to URL: "+deployURI, e);
+ }
+ return parse(deployURL);
+ }
+ /**
+ * Translate a deployment archive into a Deployment instance. This is the
+ * structural parse of the deployment process.
+ * @param deployURL - URL for the deployment archive
+ */
+ public Deployment parse(URL deployURL) throws DeploymentException
+ {
ReadOnlyVFS vfs = null;
try
{
- URL deployURL = deployURI.toURL();
+
vfs = factory.getVFS(deployURL);
if( vfs == null )
throw new DeploymentException("Failed to load VFS for deployURL: "+deployURL);
}
catch(IOException e)
{
- throw new DeploymentException("Failed to load VFS for deployURI: "+deployURI, e);
+ throw new DeploymentException("Failed to load VFS for deployURL: "+deployURL, e);
}
// Start with the VFS
|