Browse Source

*** empty log message ***

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271107 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
0e949f7027
2 changed files with 7 additions and 6 deletions
  1. +2
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/DefaultDeployer.java
  2. +5
    -5
      proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java

+ 2
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/DefaultDeployer.java View File

@@ -159,7 +159,8 @@ public class DefaultDeployer
* Creates a deployer for a ClassLoader.
*/
private Deployment createDeployment( final ClassLoader loader,
final URL jarUrl ) throws Exception
final URL jarUrl )
throws Exception
{
// Locate cached deployer, creating it if necessary
Deployment deployment = (Deployment)m_classLoaderDeployers.get( loader );


+ 5
- 5
proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java View File

@@ -76,7 +76,7 @@ class Deployment
* Load the descriptors. Deploys all roles, then loads the descriptors
* for, but does not deploy, all the types.
*/
public void loadDescriptors( URL jarUrl )
public void loadDescriptors( final URL jarUrl )
throws Exception
{
final ArrayList descriptors = new ArrayList();
@@ -185,7 +185,7 @@ class Deployment
throws DeploymentException
{
final String typeName = typeDef.getName();
final String roleShorthand = typeDef.getRoleShorthand();
final String roleShorthand = typeDef.getRole();

final String className = typeDef.getClassname();
if( null == className )
@@ -247,15 +247,15 @@ class Deployment
private List locateResources( final String resource, final URL jarUrl )
throws Exception
{
ArrayList urls = new ArrayList();
if( jarUrl != null )
final ArrayList urls = new ArrayList();
if( null != jarUrl )
{
final String systemID = "jar:" + jarUrl + "!/" + resource;
urls.add( systemID );
}
else
{
Enumeration enum = m_classLoader.getResources( resource );
final Enumeration enum = m_classLoader.getResources( resource );
while( enum.hasMoreElements() )
{
urls.add( enum.nextElement().toString() );


Loading…
Cancel
Save