geode-core/src/test/java/org/apache/geode/test/dunit/cache/internal/JUnit4CacheTestCase.java
public final void finishCacheXml(final File root, final String name, final boolean useSchema,
      final String xmlVersion) {
    synchronized (JUnit4CacheTestCase.class) {
      File dir = new File(root, "XML_" + xmlVersion);
      dir.mkdirs();
      File file = new File(dir, name + ".xml");
      try {
        PrintWriter printWriter = new PrintWriter(new FileWriter(file), true);
        CacheXmlGenerator.generate(cache, printWriter, useSchema, xmlVersion);
        printWriter.close();
      } catch (IOException ex) {
        // TODO: remove error handling
        Assert.fail("IOException during cache.xml generation to " + file, ex);
      }
      cache = null;
      GemFireCacheImpl.testCacheXml = file;
      try {
        createCache();
      } finally {
        GemFireCacheImpl.testCacheXml = null;
      }
    }
  }
/**
   * Finish what {@code beginCacheXml} started. It does this be generating a cache.xml file and then
   * creating a real cache using that cache.xml.
   */
Finish what  beginCacheXml started. It does this be generating a cache.xml file and then
creating a real cache using that cache.xml.
Finish what beginCacheXml started . It does this be generating a cache . xml file and then creating a real cache using that cache . xml .
public final void finishCacheXml(final File root, final String name, final boolean useSchema,
      final String xmlVersion) {
    synchronized (JUnit4CacheTestCase.class) {
      File dir = new File(root, "XML_" + xmlVersion);
      dir.mkdirs();
      File file = new File(dir, name + ".xml");
      try {
        PrintWriter printWriter = new PrintWriter(new FileWriter(file), true);
        CacheXmlGenerator.generate(cache, printWriter, useSchema, xmlVersion);
        printWriter.close();
      } catch (IOException ex) {
        Assert.fail("IOException during cache.xml generation to " + file, ex);
      }
      cache = null;
      GemFireCacheImpl.testCacheXml = file;
      try {
        createCache();
      } finally {
        GemFireCacheImpl.testCacheXml = null;
      }
    }
  }
public final void finishCacheXml ( final File root , final String name , final boolean useSchema , final String xmlVersion ) { synchronized ( JUnit4CacheTestCase . class ) { File dir = new File ( root , "XML_" + xmlVersion ) ; dir . mkdirs ( ) ; File file = new File ( dir , name + ".xml" ) ; try { PrintWriter printWriter = new PrintWriter ( new FileWriter ( file ) , true ) ; CacheXmlGenerator . generate ( cache , printWriter , useSchema , xmlVersion ) ; printWriter . close ( ) ; } catch ( IOException ex ) { Assert . fail ( "IOException during cache.xml generation to " + file , ex ) ; } cache = null ; GemFireCacheImpl . testCacheXml = file ; try { createCache ( ) ; } finally { GemFireCacheImpl . testCacheXml = null ; } } }
Finish what {@code beginCacheXml} started.
Finish what { @code beginCacheXml } started .
// TODO: remove error handling