Exemplo n.º 1
0
 private static void AddRuleJars(string workingDirectory, PluginBuilder builder)
 {
     // Unpack and reference the required jar files
     SourceGenerator.UnpackReferencedJarFiles(typeof(RulesPluginBuilder).Assembly, RulesResourcesRoot, workingDirectory);
     foreach (string jarFile in Directory.GetFiles(workingDirectory, "*.jar"))
     {
         builder.AddReferencedJar(jarFile);
     }
 }
Exemplo n.º 2
0
 private void AddCoreJars(string workingDirectory)
 {
     // Unpack and reference the required jar files
     SourceGenerator.UnpackReferencedJarFiles(typeof(RulesPluginBuilder).Assembly, "SonarQube.Plugins.Resources.Core.", workingDirectory);
     foreach (string jarFile in Directory.GetFiles(workingDirectory, "*.jar"))
     {
         this.AddReferencedJar(jarFile);
     }
 }
Exemplo n.º 3
0
        private static void AddRuleSources(string workingDirectory, PluginBuilder builder)
        {
            SourceGenerator.CreateSourceFiles(typeof(RulesPluginBuilder).Assembly, RulesResourcesRoot, workingDirectory, new Dictionary <string, string>());

            foreach (string sourceFile in Directory.GetFiles(workingDirectory, "*.java", SearchOption.AllDirectories))
            {
                builder.AddSourceFile(sourceFile);
            }
        }
Exemplo n.º 4
0
        private void AddCoreSources(string workingDirectory)
        {
            SourceGenerator.CreateSourceFiles(typeof(RulesPluginBuilder).Assembly, "SonarQube.Plugins.Resources.Core.", workingDirectory, new Dictionary <string, string>());

            foreach (string sourceFile in Directory.GetFiles(workingDirectory, "*.java", SearchOption.AllDirectories))
            {
                this.AddSourceFile(sourceFile);
            }
        }