compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyaleCordova.java [448:501]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void writeCompilationUnit(ICompilationUnit cu, File outputFolder) throws InterruptedException, IOException
    {
        ICompilationUnit.UnitType cuType = cu.getCompilationUnitType();
        if (cuType != ICompilationUnit.UnitType.AS_UNIT
                && cuType != ICompilationUnit.UnitType.MXML_UNIT)
        {
            return;
        }

        final File outputClassFile = getOutputClassFile(
                cu.getQualifiedNames().get(0), outputFolder);

        if (config.isVerbose())
        {
            System.out.println("Compiling file: " + outputClassFile);
        }

        ICompilationUnit unit = cu;

        IJSWriter writer;
        if (cuType == ICompilationUnit.UnitType.AS_UNIT)
        {
            writer = (IJSWriter) project.getBackend().createWriter(project,
                    problems.getProblems(), unit, false);
        }
        else
        {
            writer = (IJSWriter) project.getBackend().createMXMLWriter(
                    project, problems.getProblems(), unit, false);
        }

        BufferedOutputStream out = new BufferedOutputStream(
                new FileOutputStream(outputClassFile));

        BufferedOutputStream sourceMapOut = null;
        File outputSourceMapFile = null;
        if (project.config.getSourceMap())
        {
            outputSourceMapFile = getOutputSourceMapFile(
                    cu.getQualifiedNames().get(0), outputFolder);
            sourceMapOut = new BufferedOutputStream(
                    new FileOutputStream(outputSourceMapFile));
        }
        
        writer.writeTo(out, sourceMapOut, outputSourceMapFile);
        out.flush();
        out.close();
        if (sourceMapOut != null)
        {
            sourceMapOut.flush();
            sourceMapOut.close();
        }
        writer.close();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNative.java [443:496]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void writeCompilationUnit(ICompilationUnit cu, File outputFolder) throws InterruptedException, FileNotFoundException, IOException
    {
        ICompilationUnit.UnitType cuType = cu.getCompilationUnitType();
        if (cuType != ICompilationUnit.UnitType.AS_UNIT
                && cuType != ICompilationUnit.UnitType.MXML_UNIT)
        {
            return;
        }

        final File outputClassFile = getOutputClassFile(
                cu.getQualifiedNames().get(0), outputFolder);

        if (config.isVerbose())
        {
            System.out.println("Compiling file: " + outputClassFile);
        }

        ICompilationUnit unit = cu;

        IJSWriter writer;
        if (cuType == ICompilationUnit.UnitType.AS_UNIT)
        {
            writer = (IJSWriter) project.getBackend().createWriter(project,
                    problems.getProblems(), unit, false);
        }
        else
        {
            writer = (IJSWriter) project.getBackend().createMXMLWriter(
                    project, problems.getProblems(), unit, false);
        }

        BufferedOutputStream out = new BufferedOutputStream(
                new FileOutputStream(outputClassFile));

        BufferedOutputStream sourceMapOut = null;
        File outputSourceMapFile = null;
        if (project.config.getSourceMap())
        {
            outputSourceMapFile = getOutputSourceMapFile(
                    cu.getQualifiedNames().get(0), outputFolder);
            sourceMapOut = new BufferedOutputStream(
                    new FileOutputStream(outputSourceMapFile));
        }
        
        writer.writeTo(out, sourceMapOut, outputSourceMapFile);
        out.flush();
        out.close();
        if (sourceMapOut != null)
        {
            sourceMapOut.flush();
            sourceMapOut.close();
        }
        writer.close();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNode.java [446:499]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void writeCompilationUnit(ICompilationUnit cu, File outputFolder) throws InterruptedException, IOException
    {
        ICompilationUnit.UnitType cuType = cu.getCompilationUnitType();
        if (cuType != ICompilationUnit.UnitType.AS_UNIT
                && cuType != ICompilationUnit.UnitType.MXML_UNIT)
        {
            return;
        }

        final File outputClassFile = getOutputClassFile(
                cu.getQualifiedNames().get(0), outputFolder);

        if (config.isVerbose())
        {
            System.out.println("Compiling file: " + outputClassFile);
        }

        ICompilationUnit unit = cu;

        IJSWriter writer;
        if (cuType == ICompilationUnit.UnitType.AS_UNIT)
        {
            writer = (IJSWriter) project.getBackend().createWriter(project,
                    problems.getProblems(), unit, false);
        }
        else
        {
            writer = (IJSWriter) project.getBackend().createMXMLWriter(
                    project, problems.getProblems(), unit, false);
        }

        BufferedOutputStream out = new BufferedOutputStream(
                new FileOutputStream(outputClassFile));

        BufferedOutputStream sourceMapOut = null;
        File outputSourceMapFile = null;
        if (project.config.getSourceMap())
        {
            outputSourceMapFile = getOutputSourceMapFile(
                    cu.getQualifiedNames().get(0), outputFolder);
            sourceMapOut = new BufferedOutputStream(
                    new FileOutputStream(outputSourceMapFile));
        }
        
        writer.writeTo(out, sourceMapOut, outputSourceMapFile);
        out.flush();
        out.close();
        if (sourceMapOut != null)
        {
            sourceMapOut.flush();
            sourceMapOut.close();
        }
        writer.close();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java [494:547]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void writeCompilationUnit(ICompilationUnit cu, File outputFolder) throws InterruptedException, IOException
    {
        ICompilationUnit.UnitType cuType = cu.getCompilationUnitType();
        if (cuType != ICompilationUnit.UnitType.AS_UNIT
                && cuType != ICompilationUnit.UnitType.MXML_UNIT)
        {
            return;
        }

        final File outputClassFile = getOutputClassFile(
                cu.getQualifiedNames().get(0), outputFolder);

        if (config.isVerbose())
        {
            System.out.println("Compiling file: " + outputClassFile);
        }

        ICompilationUnit unit = cu;

        IJSWriter writer;
        if (cuType == ICompilationUnit.UnitType.AS_UNIT)
        {
            writer = (IJSWriter) project.getBackend().createWriter(project,
                    problems.getProblems(), unit, false);
        }
        else
        {
            writer = (IJSWriter) project.getBackend().createMXMLWriter(
                    project, problems.getProblems(), unit, false);
        }

        BufferedOutputStream out = new BufferedOutputStream(
                new FileOutputStream(outputClassFile));

        BufferedOutputStream sourceMapOut = null;
        File outputSourceMapFile = null;
        if (project.config.getSourceMap())
        {
            outputSourceMapFile = getOutputSourceMapFile(
                    cu.getQualifiedNames().get(0), outputFolder);
            sourceMapOut = new BufferedOutputStream(
                    new FileOutputStream(outputSourceMapFile));
        }
        
        writer.writeTo(out, sourceMapOut, outputSourceMapFile);
        out.flush();
        out.close();
        if (sourceMapOut != null)
        {
            sourceMapOut.flush();
            sourceMapOut.close();
        }
        writer.close();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



