docs: public void createInitScripts() throws PlatformException
      {
          Project       project   = new Project();
          TorqueSQLTask sqlTask   = new TorqueSQLTask(); 
          File          schemaDir = null;
          File          sqlDir    = null;
          
          _initScripts.clear();
          try
          {
              File tmpDir = getWorkDir();
  
              schemaDir = new File(tmpDir, "schemas");
              sqlDir    = new File(tmpDir, "sql");
              schemaDir.mkdir();
              sqlDir.mkdir();
  
              String includes     = writeSchemata(schemaDir);
              File   sqlDbMapFile = new File(sqlDir, SQL_DB_MAP_NAME);
  
              sqlDbMapFile.createNewFile();
              project.setBasedir(sqlDir.getAbsolutePath());
              
              // populating with defaults
              sqlTask.setProject(project);
              sqlTask.setUseClasspath(true);
              sqlTask.setBasePathToDbProps("sql/base/");
              sqlTask.setControlTemplate("sql/base/Control.vm");
              sqlTask.setOutputDirectory(sqlDir);
              // we put the report in the parent directory as we don't want
              // to read it in later on
              sqlTask.setOutputFile("../report.sql.generation");
              sqlTask.setSqlDbMap(SQL_DB_MAP_NAME);
              sqlTask.setTargetDatabase(_targetDatabase);
  
              FileSet files = new FileSet();
              
              files.setDir(schemaDir);
              files.setIncludes(includes);
              sqlTask.addFileset(files);
              sqlTask.execute();
  
              readTextsCompressed(sqlDir, _initScripts);
              deleteDir(schemaDir);
              deleteDir(sqlDir);
          }
          catch (Exception ex)
          {
              // clean-up
              if ((schemaDir != null) && schemaDir.exists())
              {
                  deleteDir(schemaDir);
              }
              if ((sqlDir != null) && sqlDir.exists())
              {
                  deleteDir(sqlDir);
              }
              throw new PlatformException(ex);
          }
      }