public static void deploy ( Config config ) { if ( ! contextIsValid ( config ) ) return ; synchronized ( config ) { Resource dir = config . getDeployDirectory ( ) ; if ( ! dir . exists ( ) ) dir . mkdirs ( ) ; Resource [ ] children = dir . listResources ( ALL_EXT ) ; Resource child ; String ext ; for ( int i = 0 ; i < children . length ; i ++ ) { child = children [ i ] ; try { // Lucee archives ext = ResourceUtil . getExtension ( child , null ) ; if ( "lar" . equalsIgnoreCase ( ext ) ) { // deployArchive(config,child,true); XMLConfigAdmin . updateArchive ( ( ConfigImpl ) config , child , true ) ; } // Lucee Extensions else if ( "lex" . equalsIgnoreCase ( ext ) ) XMLConfigAdmin . _updateRHExtension ( ( ConfigImpl ) config , child , true ) ; // Lucee core else if ( config instanceof ConfigServer && "lco" . equalsIgnoreCase ( ext ) ) XMLConfigAdmin . updateCore ( ( ConfigServerImpl ) config , child , true ) ; } catch ( Throwable t ) { ExceptionUtil . rethrowIfNecessary ( t ) ; Log log = config . getLog ( "deploy" ) ; log . error ( "Extension" , t ) ; } } } }
deploys all files found