public SrcMLForCppCstGenerator()
     : base(".cpp", ".cxx", ".c++", ".h", ".hpp", ".hxx", ".h++")
 {
     ParaibaFile.WriteIfDifferentSize(PrivateXmlGeneratorPath, Resources.src2srcml);
     ParaibaFile.WriteIfDifferentSize(PrivateCodeGeneratorPath, Resources.srcml2src);
     SrcMLFiles.DeployCommonFiles(DirectoryPath);
 }
Example #2
0
 public JavaAstGenerator(string processorPath)
     : base(".java")
 {
     _processorPath = processorPath;
     ParaibaFile.WriteIfDifferentSize(
         XmlGeneratorArguments[1], Resources.java_ast_serializer);
 }
 public override void CopyLibraries(DirectoryInfo outDirInfo, RecordingMode recordingMode)
 {
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "_CoverageWriter.pyd"),
         Resources._CoverageWriter);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "CoverageWriter.py"),
         Resources.CoverageWriter);
 }
 public override void CopyLibraries(DirectoryInfo outDirInfo, RecordingMode recordingMode)
 {
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "covman.c"),
         Resources.covman_c);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "covman.h"),
         Resources.covman_h);
 }
 public override void CopyLibraries(DirectoryInfo outDirInfo, RecordingMode recordingMode)
 {
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "CoverageWriter.UM.jar"),
         Resources.CoverageWriter_UM);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "junit-4.8.2.jar"),
         Resources.junit_4_8_2);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(outDirInfo.FullName, "Occf.Writer.UM.Java.dll"),
         Resources.Occf_Writer_UM_Java);
 }
Example #6
0
 public static void DeployCommonFiles(string dirPath)
 {
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "iconv.dll"), Resources.iconv);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libantlr2-0.dll"), Resources.libantlr2_0);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libarchive-13.dll"), Resources.libarchive_13);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libbz2-1.dll"), Resources.libbz2_1);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libcrypto-10.dll"), Resources.libcrypto_10);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libcurl-4.dll"), Resources.libcurl_4);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libexslt-0.dll"), Resources.libexslt_0);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libgcc_s_sjlj-1.dll"), Resources.libgcc_s_sjlj_1);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libgnurx-0.dll"), Resources.libgnurx_0);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libidn-11.dll"), Resources.libidn_11);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libintl-8.dll"), Resources.libintl_8);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "liblzma-5.dll"), Resources.liblzma_5);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libsrcml.dll"), Resources.libsrcml);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libssh2-1.dll"), Resources.libssh2_1);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libssl-10.dll"), Resources.libssl_10);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libstdc++-6.dll"), Resources.libstdc___6);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libxml2-2.dll"), Resources.libxml2_2);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "libxslt-1.dll"), Resources.libxslt_1);
     ParaibaFile.WriteIfDifferentSize(
         Path.Combine(dirPath, "zlib1.dll"), Resources.zlib1);
 }
        public override void CopyLibraries(DirectoryInfo outDirInfo, RecordingMode recordingMode)
        {
            switch (recordingMode)
            {
            case RecordingMode.BinaryFile:
                ParaibaFile.WriteIfDifferentSize(
                    Path.Combine(outDirInfo.FullName, "CoverageWriter.jar"),
                    Resources.CoverageWriter_File);
                ParaibaFile.WriteIfDifferentSize(
                    Path.Combine(
                        outDirInfo.FullName, "Occf.Writer.File.Java.dll"),
                    Environment.Is64BitOperatingSystem
                                ? Resources.Occf_Writer_File_Java_x64
                                : Resources.Occf_Writer_File_Java_x86);
                break;

            case RecordingMode.TextFile:
                ParaibaFile.WriteIfDifferentSize(
                    Path.Combine(outDirInfo.FullName, "CoverageWriter.jar"),
                    Resources.CoverageWriter_Text);
                break;

            case RecordingMode.Gaio:
                break;

            case RecordingMode.SharedMemory:
                break;

            case RecordingMode.TcpIp:
                break;

            default:
                throw new ArgumentOutOfRangeException("recordingMode");
            }

            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(outDirInfo.FullName, "junit-4.8.2.jar"),
                Resources.junit_4_8_2);
        }
Example #8
0
        public static void DeployCommonFiles(string dirPath)
        {
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(
                    dirPath,
                    "composite_sexp_processor.rb"), Resources.composite_sexp_processor);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "pt_testcase.rb"), Resources.pt_testcase);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "README_ruby_parser.txt"),
                Resources.README_ruby_parser);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "README_sexp_processor.txt"),
                Resources.README_sexp_processor);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby_lexer.rb"), Resources.ruby_lexer);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby_parser.rb"), Resources.ruby_parser);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby_parser_extras.rb"),
                Resources.ruby_parser_extras);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby18_parser.rb"), Resources.ruby18_parser);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby19_parser.rb"), Resources.ruby19_parser);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby20_parser.rb"), Resources.ruby20_parser);
            ParaibaFile.WriteIfDifferentSize(Path.Combine(dirPath, "sexp.rb"), Resources.sexp);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "sexp_processor.rb"), Resources.sexp_processor);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "unique.rb"), Resources.unique);

            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "ruby2ruby.rb"), Resources.ruby2ruby);
            ParaibaFile.WriteIfDifferentSize(
                Path.Combine(dirPath, "README_ruby2ruby.txt"), Resources.README_ruby2ruby);
        }
 public Cobol85AstGenerator(string processorPath)
     : base(".cbl")
 {
     _processorPath = processorPath;
     ParaibaFile.WriteIfDifferentSize(XmlGeneratorArguments[1], Resources.koopafor85);
 }