Esempio n. 1
0
        public PluginBuilder(IJdkWrapper jdkWrapper, IMavenArtifactHandler artifactHandler, ILogger logger)
        {
            if (jdkWrapper == null)
            {
                throw new ArgumentNullException("jdkWrapper");
            }
            if (artifactHandler == null)
            {
                throw new ArgumentNullException("artifactHandler");
            }
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.jdkWrapper      = jdkWrapper;
            this.artifactHandler = artifactHandler;
            this.logger          = logger;

            this.sourceFiles            = new HashSet <string>(StringComparer.InvariantCultureIgnoreCase);
            this.referencedJars         = new HashSet <string>(StringComparer.InvariantCultureIgnoreCase);
            this.properties             = new Dictionary <string, string>();
            this.fileToRelativePathMap  = new Dictionary <string, string>();
            this.sourceFileReplacements = new Dictionary <string, string>(StringComparer.InvariantCultureIgnoreCase);
            this.extensionClasses       = new HashSet <string>(StringComparer.InvariantCulture); // class names are case-sensitive
        }
Esempio n. 2
0
        public PluginBuilder(IJdkWrapper jdkWrapper, IMavenArtifactHandler artifactHandler, ILogger logger)
        {
            if (jdkWrapper == null)
            {
                throw new ArgumentNullException("jdkWrapper");
            }
            if (artifactHandler == null)
            {
                throw new ArgumentNullException("artifactHandler");
            }
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.jdkWrapper = jdkWrapper;
            this.artifactHandler = artifactHandler;
            this.logger = logger;

            this.sourceFiles = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
            this.referencedJars = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
            this.properties = new Dictionary<string, string>();
            this.fileToRelativePathMap = new Dictionary<string, string>();
            this.sourceFileReplacements = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
            this.extensionClasses = new HashSet<string>(StringComparer.InvariantCulture); // class names are case-sensitive
        }
        public RulesPluginBuilder(IJdkWrapper jdkWrapper, ILogger logger)
        {
            if (jdkWrapper == null)
            {
                throw new ArgumentNullException("param");
            }

            this.jdkWrapper = jdkWrapper;
            this.logger = logger;
        }
Esempio n. 4
0
        public RulesPluginBuilder(IJdkWrapper jdkWrapper, ILogger logger)
        {
            if (jdkWrapper == null)
            {
                throw new ArgumentNullException("param");
            }

            this.jdkWrapper = jdkWrapper;
            this.logger     = logger;
        }
 public JavaCompilationBuilder(IJdkWrapper jdkWrapper)
 {
     if (jdkWrapper == null)
     {
         throw new ArgumentNullException("jdkWrapper");
     }
     this.jdkWrapper = jdkWrapper;
     this.classPaths = new List <string>();
     this.sources    = new List <string>();
 }
 public JavaCompilationBuilder(IJdkWrapper jdkWrapper)
 {
     if (jdkWrapper == null)
     {
         throw new ArgumentNullException("jdkWrapper");
     }
     this.jdkWrapper = jdkWrapper;
     this.classPaths = new List<string>();
     this.sources = new List<string>();
 }
        public PluginInspector(ILogger logger, string tempDir)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (string.IsNullOrWhiteSpace(tempDir))
            {
                throw new ArgumentNullException("tempDir");
            }


            this.logger     = logger;
            this.tempDir    = tempDir;
            this.jdkWrapper = new JdkWrapper();
        }
        public PluginInspector(ILogger logger, string tempDir)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (string.IsNullOrWhiteSpace(tempDir))
            {
                throw new ArgumentNullException("tempDir");
            }


            this.logger = logger;
            this.tempDir = tempDir;
            this.jdkWrapper = new JdkWrapper();
        }
Esempio n. 9
0
        public JarBuilder(ILogger logger, IJdkWrapper jdkWrapper)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (jdkWrapper == null)
            {
                throw new ArgumentNullException("jdkWrapper");
            }

            this.logger     = logger;
            this.jdkWrapper = jdkWrapper;

            this.manifestProperties    = new Dictionary <string, string>();
            this.fileToRelativePathMap = new Dictionary <string, string>();
        }
Esempio n. 10
0
        public JarBuilder(ILogger logger, IJdkWrapper jdkWrapper)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (jdkWrapper == null)
            {
                throw new ArgumentNullException("jdkWrapper");
            }

            this.logger = logger;
            this.jdkWrapper = jdkWrapper;

            this.manifestProperties = new Dictionary<string, string>();
            this.fileToRelativePathMap = new Dictionary<string, string>();
        }
 public RulesPluginBuilder(IJdkWrapper jdkWrapper, IMavenArtifactHandler artifactHandler, ILogger logger)
     :base(jdkWrapper, artifactHandler, logger)
 {
 }
Esempio n. 12
0
 public RulesPluginBuilder(IJdkWrapper jdkWrapper, IMavenArtifactHandler artifactHandler, ILogger logger)
     : base(jdkWrapper, artifactHandler, logger)
 {
 }