src/main/java/org/jboss/loom/migrators/classloading/ClassloadingMigrator.java
private DeploymentClassloadingConfig extractClassloadingConfData( DeploymentInfo deplInfo ) {
        
        JBossClassloadingXml clXml = null;
        JBossWebXml          webXml = null;
        
        DeploymentClassloadingConfig deplCLConf = new DeploymentClassloadingConfig();
        boolean somethingFound = false;
        
        
        File infDir = deplInfo.getInfDir();

        // jboss-classloading.xml
        if( new File(infDir, "jboss-classloading.xml").exists() ){
            deplCLConf.setJbossClassloadingConf( new JBossClassloadingXml() );  // TODO: Parse.
            somethingFound = true;
        }

        // jboss-web.xml
        if( new File(infDir, "jboss-web.xml").exists() ){
            deplCLConf.setJbossWebConf( new JBossWebXml() ); // TODO: Parse.
            // TODO: jboss-web.xml may not contain classloading config. Ignore in that case.
            somethingFound = true;
        }
        
        return somethingFound ? deplCLConf : null;
    }
/**
     *  Extracts classloading config from given Java EE archive.
     */
Extracts classloading config from given Java EE archive.
Extracts classloading config from given Java EE archive .
private DeploymentClassloadingConfig extractClassloadingConfData( DeploymentInfo deplInfo ) {
        JBossClassloadingXml clXml = null;
        JBossWebXml          webXml = null;
        DeploymentClassloadingConfig deplCLConf = new DeploymentClassloadingConfig();
        boolean somethingFound = false;
        File infDir = deplInfo.getInfDir();
        if( new File(infDir, "jboss-classloading.xml").exists() ){
            deplCLConf.setJbossClassloadingConf( new JBossClassloadingXml() );  
            somethingFound = true;
        }
        if( new File(infDir, "jboss-web.xml").exists() ){
            deplCLConf.setJbossWebConf( new JBossWebXml() ); 
            somethingFound = true;
        }
        return somethingFound ? deplCLConf : null;
    }
private DeploymentClassloadingConfig extractClassloadingConfData ( DeploymentInfo deplInfo ) { JBossClassloadingXml clXml = null ; JBossWebXml webXml = null ; DeploymentClassloadingConfig deplCLConf = new DeploymentClassloadingConfig ( ) ; boolean somethingFound = false ; File infDir = deplInfo . getInfDir ( ) ; if ( new File ( infDir , "jboss-classloading.xml" ) . exists ( ) ) { deplCLConf . setJbossClassloadingConf ( new JBossClassloadingXml ( ) ) ; somethingFound = true ; } if ( new File ( infDir , "jboss-web.xml" ) . exists ( ) ) { deplCLConf . setJbossWebConf ( new JBossWebXml ( ) ) ; somethingFound = true ; } return somethingFound ? deplCLConf : null ; }
Extracts classloading config from given Java EE archive.
Extracts classloading config from given Java EE archive .
// jboss-classloading.xml // TODO: Parse. // jboss-web.xml // TODO: Parse. // TODO: jboss-web.xml may not contain classloading config. Ignore in that case.