logo

class

docCompiler::Init

sys::Obj
  docCompiler::DocCompilerSupport
    docCompiler::Init
  1  //
  2  // Copyright (c) 2007, Brian Frank and Andy Frank
  3  // Licensed under the Academic Free License version 3.0
  4  //
  5  // History:
  6  //   5 May 07  Brian Frank  Creation
  7  //
  8  
  9  using compiler
 10  
 11  **
 12  ** Init prepares the output directory.
 13  **
 14  class Init : DocCompilerSupport
 15  {
 16  
 17    new make(DocCompiler compiler)
 18      : super(compiler)
 19    {
 20    }
 21  
 22    Void run()
 23    {
 24      dir := compiler.outDir + "${compiler.pod.name}/".toUri
 25  
 26      log.debug("  Delete [$dir]")
 27      dir.delete
 28  
 29      log.debug("  Create [$dir]")
 30      dir.create
 31  
 32      compiler.podDir = dir
 33    }
 34  }

More Info

Slots