protected void runImportScript ( CmsObject cms , CmsModule module ) { LOG . info ( "Executing import script for module " + module . getName ( ) ) ; m_report . println ( org . opencms . module . Messages . get ( ) . container ( org . opencms . module . Messages . RPT_IMPORT_SCRIPT_HEADER_0 ) , I_CmsReport . FORMAT_HEADLINE ) ; String importScript = "echo on\n" + module . getImportScript ( ) ; ByteArrayOutputStream buffer = new ByteArrayOutputStream ( ) ; PrintStream out = new PrintStream ( buffer ) ; CmsShell shell = new CmsShell ( cms , "${user}@${project}:${siteroot}|${uri}>" , null , out , out ) ; shell . execute ( importScript ) ; String outputString = buffer . toString ( ) ; LOG . info ( "Shell output for import script was: \n" + outputString ) ; m_report . println ( org . opencms . module . Messages . get ( ) . container ( org . opencms . module . Messages . RPT_IMPORT_SCRIPT_OUTPUT_1 , outputString ) ) ; }
Runs the module import script .