metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmerri...@apache.org
Subject incubator-metron git commit: METRON-807 Changed resources to use non-relative path (simonellistonball via merrimanr) closes apache/incubator-metron#493
Date Mon, 27 Mar 2017 23:16:41 GMT
Repository: incubator-metron
Updated Branches:
  refs/heads/master 468bbdf60 -> 2f9158e0f


METRON-807 Changed resources to use non-relative path (simonellistonball via merrimanr) closes
apache/incubator-metron#493


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/2f9158e0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/2f9158e0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/2f9158e0

Branch: refs/heads/master
Commit: 2f9158e0f8d8e2a150c6f116c8f6359190b79b49
Parents: 468bbdf
Author: simonellistonball <simon@simonellistonball.com>
Authored: Mon Mar 27 18:15:28 2017 -0500
Committer: YOUR NAME as In Apache <YOU@apache.org>
Committed: Mon Mar 27 18:15:28 2017 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/metron/parsers/asa/BasicAsaParser.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/2f9158e0/metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/asa/BasicAsaParser.java
----------------------------------------------------------------------
diff --git a/metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/asa/BasicAsaParser.java
b/metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/asa/BasicAsaParser.java
index 8d1f3ce..ad1db83 100644
--- a/metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/asa/BasicAsaParser.java
+++ b/metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/asa/BasicAsaParser.java
@@ -98,7 +98,7 @@ public class BasicAsaParser extends BasicParser {
     @Override
     public void init() {
         asaGrok = new Grok();
-        InputStream patternStream = this.getClass().getClassLoader().getResourceAsStream("patterns/asa");
+        InputStream patternStream = this.getClass().getResourceAsStream("/patterns/asa");
         try {
             asaGrok.addPatternFromReader(new InputStreamReader(patternStream));
         } catch (GrokException e) {


Mime
View raw message