private void createIndexHTML(String siteRoot) throws CmsIllegalArgumentException, CmsException {

        if (!m_cms.existsResource(siteRoot + INDEX_HTML)) {
            //Create index.html
            I_CmsResourceType containerType = OpenCms.getResourceManager().getResourceType(
                org.opencms.file.types.CmsResourceTypeXmlContainerPage.RESOURCE_TYPE_NAME);
            m_cms.createResource(siteRoot + INDEX_HTML, containerType);
        }
    }
private void createIndexHTML ( String siteRoot ) throws CmsIllegalArgumentException , CmsException { if ( ! m_cms . existsResource ( siteRoot + INDEX_HTML ) ) { I_CmsResourceType containerType = OpenCms . getResourceManager ( ) . getResourceType ( org . opencms . file . types . CmsResourceTypeXmlContainerPage . RESOURCE_TYPE_NAME ) ; m_cms . createResource ( siteRoot + INDEX_HTML , containerType ) ; } }
Creates new index html if no one was found.<p>

@param siteRoot of new site
@throws CmsIllegalArgumentException exception
@throws CmsException exception