Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync main branch with Apache main branch #83

Merged
merged 141 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
22328c0
[NO_ISSUE] Cleanup incubator-kie-issues#1504 - Conditionally build al…
gitgabrio Oct 7, 2024
1bbecc8
Fix extry -> entry (#6114)
jomarko Oct 7, 2024
00576e5
NO ISSUE: Migrate tests in drools traits to JUnit5. (#6122)
pibizza Oct 11, 2024
d577bd6
[DROOLS-7591] Experiment branch : migrate a new drools-lsp parser int…
tkobayas Feb 14, 2024
7943061
Revert "[DROOLS-7591] Experiment branch : migrate a new drools-lsp pa…
mariofusco Feb 14, 2024
15854b9
add antlr4 based drl parser
mariofusco Jan 14, 2022
4c14a07
bump to drools 8.16.0.Beta
mariofusco Jan 20, 2022
1c4bc9a
improve node position discovery
mariofusco Jan 27, 2022
5b86b49
first c3 integration
mariofusco Jan 28, 2022
d20f3af
Module reorganization (#2)
gitgabrio Feb 10, 2022
c5bd78d
manage null ast nodes and fix failing test
mariofusco Feb 11, 2022
2aab14c
improve drl parser
mariofusco Feb 14, 2022
19594b8
Fix basic completion (#4)
lbenc135 Mar 25, 2022
7556deb
add constraints parsing
mariofusco Apr 22, 2022
919cb1a
- Added DRLParserWrapper to store errors using DRLErrorListener (#5)
tkobayas Apr 27, 2022
a6cc3aa
Enhance test/grammar coverage. function import, global, exists, not (#6)
tkobayas May 10, 2022
a30d771
Enhance test/grammar coverage. and, or, listExpression (#7)
tkobayas May 29, 2022
65e2257
Enhance test/grammar coverage. matches, single quoted string, escape …
tkobayas Jun 27, 2022
4632ed2
Enhance test/grammar coverage. dialect, invalid lhs (#10)
tkobayas Aug 15, 2022
acbe6c8
Enhance test/grammar coverage. keyword collision (#11)
tkobayas Sep 22, 2022
acfa336
Enhance test/grammar coverage. function, attributes, consequence (#12)
tkobayas Oct 5, 2022
4acd6db
Enhance test/grammar coverage. OR, inline map (#13)
tkobayas Nov 3, 2022
108e0f2
OpenRewrite applied for junit5 and assertj (#14)
tkobayas Nov 30, 2022
79afbdd
Enhance test/grammar coverage. label, consequenceLocation, test refac…
tkobayas Dec 6, 2022
77e42a6
[DROOLS-7253] Review and improve drools-lsp parser Visitor design (#16)
tkobayas Dec 16, 2022
d637f88
[DROOLS-7270] Enhance test/grammar coverage : andRestriction, orRestr…
tkobayas Jan 12, 2023
413d4cf
[DROOLS-7271] Fully port RuleParserTest as MiscDRLParserTest with @Di…
tkobayas Jan 30, 2023
72ac496
[DROOLS-7285] Failed to parse and/or with parentheses in LHS (#15)
tkobayas Mar 13, 2023
1fdeea8
[DROOLS-7286] Failed to parse binding with || (#21)
tkobayas May 18, 2023
e5a0ba8
[DROOLS-7287] Failed to parse comments in RHS (#23)
tkobayas Jul 19, 2023
977ce82
[DROOLS-7515] Parser : Accept plain text in RHS (#26)
tkobayas Aug 14, 2023
c346cfc
[DROOLS-7288] Failed to parse complex parentheses (#27)
tkobayas Aug 24, 2023
baaa0c1
[DROOLS-7289] Implement accumulate (#28)
tkobayas Sep 20, 2023
cee921d
[DROOLS-7296] Implement from entry-point (#30)
tkobayas Sep 21, 2023
2c29230
[DROOLS-7297] Implement import accumulate (#29)
tkobayas Sep 22, 2023
757be74
[DROOLS-7290] Implement BigInteger literal, BigDecimal literal (#31)
tkobayas Sep 22, 2023
1521e05
[DROOLS-7292] Implement eval (#32)
tkobayas Sep 22, 2023
670bd7c
[DROOLS-7293] Implement extends (#33)
tkobayas Sep 25, 2023
0592423
[DROOLS-7294] Implement forall (#34)
tkobayas Sep 29, 2023
225f4aa
[DROOLS-7298] Implement memberOf (#35)
tkobayas Oct 3, 2023
1d048ef
[DROOLS-7300] Implement positional constraint (#36)
tkobayas Oct 3, 2023
5675d0f
[DROOLS-7304] Implement temporal operators (#38)
tkobayas Oct 13, 2023
2b8866e
[DROOLS-7301] Implement query (#37)
tkobayas Oct 13, 2023
a8502d2
[DROOLS-7295] Implement from collect (#39)
tkobayas Oct 18, 2023
eb8f264
[DROOLS-7305] Implement type declaration (#40)
tkobayas Oct 18, 2023
73faf30
[DROOLS-7306] Implement unification (#41)
tkobayas Oct 20, 2023
e56f2a7
[DROOLS-7310] parse nested parentheses (#42)
tkobayas Oct 27, 2023
cdd9d3c
[DROOLS-7577] drools-lsp : Add comments and explanations for drools-p…
tkobayas Nov 17, 2023
f7ae313
[DROOLS-7591] Experiment branch : migrate a new drools-lsp parser int…
tkobayas Dec 5, 2023
b224630
Move necessary files without any additional modifications
yurloc Jan 15, 2024
e3dd6f6
Update DRL6Expressions.g4 to ANTLR 4 (#47)
yurloc Jan 17, 2024
d2885a5
Add DescrDumperTest and fix the expression parser grammar (#48)
yurloc Feb 7, 2024
81a0cc2
[DROOLS-7591] Experiment branch : migrate a new drools-lsp parser int…
tkobayas Feb 9, 2024
39f4d64
- License header
tkobayas Feb 13, 2024
35f8ed8
[incubator-kie-drools#5681] Experiment: New DRL Parser : Test failure…
tkobayas Feb 20, 2024
46efc82
[incubator-kie-drools#5679] New DRL parser : Test failure : RHS end w…
tkobayas Feb 21, 2024
96e60ad
[incubator-kie-drools#5700] [new-parser] Can't use single-quoted Stri…
tkobayas Feb 26, 2024
0528dc2
[incubator-kie-drools#5701] org.kie.api.KieBase.getRule(String, Strin…
tkobayas Feb 26, 2024
21bc906
Fix super_key failed predicate (#5748)
yurloc Feb 29, 2024
c746b66
Fix minor issues in the new parser (#5747)
yurloc Feb 29, 2024
643628b
[incubator-kie-drools#5743] Update Developer_Notes.md to be community…
tkobayas Mar 4, 2024
63e12cb
Fix the rest of the keywords (#5759)
yurloc Mar 5, 2024
cd9bd78
[incubator-kie-drools#5705] [new-parser] no viable alternative after …
tkobayas Mar 7, 2024
f36a0c9
[incubator-kie-drools#5707] [new-parser] null-safe dereferencing brok…
tkobayas Mar 9, 2024
f388e03
Add error listener to DrlExprParser (#5778)
yurloc Mar 13, 2024
6b7f1de
[incubator-kie-drools#5776] [new-parser] failed to parse when a metho…
tkobayas Mar 18, 2024
e5a4df2
Primary rule should accept `this` keyword (#5791)
yurloc Mar 18, 2024
2c374bc
[incubator-kie-drools#5706] Grouped accessors for nested objects brok…
tkobayas Mar 19, 2024
80f50b9
[incubator-kie-drools#5709] [new-parser] Some rules do not fire in Mu…
tkobayas Mar 21, 2024
c0e2930
[incubator-kie-drools#5708] [new-parser] function definition causes a…
tkobayas Mar 21, 2024
3370def
[new-parser] Support LHS pattern annotations (#5797)
yurloc Mar 21, 2024
5f0f9df
[incubator-kie-drools#5710] [new-parser] Unable to resolve method (fr…
tkobayas Mar 22, 2024
ac300e3
Enable time literal (#5800)
yurloc Mar 23, 2024
51bb4f2
Improve the chunk rule not to include parentheses (#5801)
yurloc Mar 25, 2024
ce2e24f
Fix window reference (#5802)
yurloc Mar 25, 2024
9affb56
Populate AST descriptors with line numbers (#5804)
yurloc Mar 26, 2024
225c7d7
[incubator-kie-drools#5711] Broken OOPath expressions (#5805)
tkobayas Mar 27, 2024
75996ff
[incubator-kie-drools#5742] [new-parser] Broken inline cast (#5806)
tkobayas Mar 28, 2024
5876a85
[incubator-kie-drools-5712] Queries with arguments cannot be parsed (…
tkobayas Apr 2, 2024
f5363ba
[new-parser] Complete support for built-in operators (after, before) …
yurloc Apr 2, 2024
b5adbe0
[new-parser] Fix two minor type declaration issues (#5815)
yurloc Apr 3, 2024
eac45f4
Support trait type declaration (#5820)
yurloc Apr 3, 2024
bfee041
Allow traits to inherit multiple traits (#5824)
yurloc Apr 4, 2024
baa645d
[incubator-kie-drools-5798] [new-parser] Ensure Descr properties (#5827)
tkobayas Apr 5, 2024
6578d91
[incubator-kie-drools-5716] [new-parser] mismatched input 'if'/'do' (…
tkobayas Apr 11, 2024
371d515
[new-parser] Support pluggable evaluators and class literal (#5834)
yurloc Apr 15, 2024
7154c0f
[incubator-kie-drools-5808] [new-parser] Combining DRLParser.g4 and D…
tkobayas Apr 16, 2024
a19a2c8
Add missing DRL soft keywords to the drlIdentfier rule (#5861)
yurloc Apr 23, 2024
77e6476
[incubator-kie-drools-5792] [new-parser] improve drools-drl-parser-te…
tkobayas Apr 23, 2024
25d7d6d
Reuse DRL6Expressions' fullAnnotation rule in DRLParser (#5865)
yurloc Apr 24, 2024
c939992
Allow soft keywords in chained method calls (#5864)
yurloc Apr 24, 2024
13f5ec7
[incubator-kie-drools-5714] Broken QueryTest#testRecursiveQueryWithBa…
tkobayas Apr 25, 2024
de9b048
[incubator-kie-drools-5741] [new-parser] Broken enum declaration (#5870)
tkobayas Apr 26, 2024
8aaaec9
[new-parser] Fix AccumulateTest and add groupBy support (#5876)
yurloc Apr 30, 2024
3719bba
[incubator-kie-drools-5724] [new-parser] Broken ExisistentialTest#tes…
tkobayas Apr 30, 2024
fd7f689
[incubator-kie-drools-5784] Review DRLParser.g4 and DRL6Expressions.g…
tkobayas Apr 30, 2024
0672314
[new-parser] Allow OOPath as a LHS pattern (#5884)
yurloc May 7, 2024
08e21ec
Preserve whitespace in accumulate/result (#5889)
yurloc May 7, 2024
c5e4f0c
Allow empty queries (#5892)
yurloc May 7, 2024
e5ce02e
Improve Verifier's consequence processing resiliency (#5887)
yurloc May 7, 2024
1d0c2e3
Avoid NPE when the input DRL is empty (#5894)
yurloc May 8, 2024
fd7d3b7
Avoid error when there is no space between rule keyword and rule name…
yurloc May 8, 2024
4c684a8
Strip double quotes from declared entry-point ID (#5905)
yurloc May 8, 2024
5c75fb0
[incubator-kie-drools-5879] [new-parser] build failure on kie-dmn-val…
tkobayas May 8, 2024
fe52b11
[incubator-kie-drools-5906] [new-parser] unification in accumulate (#…
tkobayas May 9, 2024
06cc983
[incubator-kie-drools-5912] [new-parser] Corner-case combinations of …
tkobayas May 10, 2024
acac1c7
[incubator-kie-drools-5918] [new-parser] Annotations can appear in lh…
tkobayas May 10, 2024
c9df2fb
[incubator-kie-drools-5915] [new-parser] ctx.lhsPattern().size() == 0…
tkobayas May 10, 2024
1097902
[incubator-kie-drools-5908] ReteOOWaltzTest 'end' detection issue (#5…
tkobayas May 13, 2024
dcf848f
Match EOF at the end of the compilation unit (#5930)
yurloc May 13, 2024
c08fca1
Use InternalResource's encoding (#5940)
yurloc May 14, 2024
9ac7944
[incubator-kie-drools-5924] [new-parser] Remove DRLIncompleteCodeTest…
tkobayas May 14, 2024
5dc109e
Set namespace of qualified declared types (#5947)
yurloc May 15, 2024
da58c7d
[incubator-kie-drools-5945] [new-parser] Broken named consequences in…
tkobayas May 15, 2024
a314a39
[incubator-kie-drools-5818] [new-parser] Parsing fails if a Java keyw…
tkobayas May 21, 2024
4769de1
Avoid IndexOutOfBoundsException in lhsUnary (#5956)
yurloc May 22, 2024
12edf71
[incubator-kie-drools-5909] [new-parser] Accumulate parsed incorrectl…
tkobayas May 22, 2024
0873f8d
[incubator-kie-drools-5936] [new-parser] || and && should be allowed …
tkobayas May 23, 2024
93b8e2b
[incubator-kie-drools-5938] [new-parser] Tests using wrong duration a…
tkobayas May 27, 2024
840ab03
[incubator-kie-drools-5948] [new-parser] Broken testIncompatibleListO…
tkobayas Jun 3, 2024
f65e262
[incubator-kie-drools-5932] [new-parser] Anonymous classes not suppor…
tkobayas Jun 4, 2024
aec972d
[incubator-kie-drools-5920] [new-parser] Strict annotation parsing (#…
tkobayas Jun 4, 2024
ca73465
[incubator-kie-drools-5911] [new-parser] Support optional type keywor…
tkobayas Jun 4, 2024
6ca4671
[incubator-kie-drools-5980-DSL] [new-parser] Enable DSL tests (#5981)
tkobayas Jun 7, 2024
3940d11
[incubator-kie-drools-5982] [new-parser] Enable alternative attribute…
tkobayas Jun 7, 2024
f5055e5
[incubator-kie-drools-5933] [new-parser] PackageDescr.resource not se…
tkobayas Jun 7, 2024
3ba4c32
Incubator kie drools 5792 cleanup tests (#5986)
tkobayas Jun 10, 2024
d7a8d5a
[incubator-kie-drools-5988] [new-parser] Merge dev-new-parser to main
tkobayas Jun 11, 2024
caa8f3a
License header for .g4
tkobayas Sep 12, 2024
076a4d2
License headers
tkobayas Oct 2, 2024
16c8d29
Add license header (#6121)
jomarko Oct 14, 2024
9a52c69
Support generic range type in DMN engine (#6123)
baldimir Oct 14, 2024
fab792f
Renaming DISCLAIMER file
LightGuard Oct 15, 2024
da37e66
[incubator-kie-issues#1528] Implement DMNEvent reporting inside DMNCo…
gitgabrio Oct 16, 2024
cb15b1a
[NO ISSUE] Migrate to JUnit5 drools model (#6128)
pibizza Oct 17, 2024
4569d01
[incubator-kie-issues#1543] Add the "id" of executed rules to the Aft…
gitgabrio Oct 18, 2024
c978e44
[incubator-kie-issues#1497] Defining NodeInstanceContainer.getSeriali…
gitgabrio Oct 18, 2024
3b7aa6c
[kie-issues#1410] Fix type check for decision service input parameter…
baldimir Oct 22, 2024
bb48f8d
kie-issues#1541: Add testing models into kie-dmn-test-resources (#6135)
jomarko Oct 23, 2024
9133aee
[incubator-kie-drools-6136] Migrate droos test coverage module to JUn…
pibizza Oct 23, 2024
20d17bd
[incubator-kie-issues#1546] Fix DMN TCK range equality test failures …
gitgabrio Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
4 changes: 4 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ This product also includes the following third-party components:
* search-ui
Downloaded from: https://gitlab.com/antora/antora-lunr-extension
License: Mozilla Public License 2.0

* JavaParser, JavaLexer
Downloaded from: https://github.com/antlr/grammars-v4/tree/master/java/java
License: BSD License
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public KnowledgeBuilderRulesConfigurationImpl(CompositeConfiguration<KnowledgeBu
}

private void init() {

setProperty( TrimCellsInDTableOption.PROPERTY_NAME,
getPropertyValue(TrimCellsInDTableOption.PROPERTY_NAME,
"true"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.drools.drl.ast.descr.OperatorDescr;
import org.drools.drl.ast.descr.RelationalExprDescr;
import org.drools.drl.parser.DrlExprParser;
import org.drools.drl.parser.DrlExprParserFactory;
import org.drools.drl.parser.impl.Operator;
import org.kie.internal.builder.conf.LanguageLevelOption;

Expand Down Expand Up @@ -137,7 +138,7 @@ public StringBuilder dump( StringBuilder sbuilder,
}

private void processConstraint(StringBuilder sbuilder, ExprConstraintDescr base, boolean isInsideRelCons, DumperContext context) {
DrlExprParser expr = new DrlExprParser( context.getRuleContext().getConfiguration().getOption(LanguageLevelOption.KEY));
DrlExprParser expr = DrlExprParserFactory.getDrlExprParser(context.getRuleContext().getConfiguration().getOption(LanguageLevelOption.KEY));
ConstraintConnectiveDescr result = expr.parse( base.getExpression() );
if ( result.getDescrs().size() == 1 ) {
dump( sbuilder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
import org.drools.drl.ast.descr.ReturnValueRestrictionDescr;
import org.drools.drl.ast.descr.RuleDescr;
import org.drools.drl.parser.DrlExprParser;
import org.drools.drl.parser.DrlExprParserFactory;
import org.drools.drl.parser.DroolsParserException;
import org.drools.util.ClassUtils;
import org.drools.util.StringUtils;
Expand Down Expand Up @@ -1803,17 +1804,17 @@ protected ConstraintConnectiveDescr parseExpression(final RuleBuildContext conte
final PatternDescr patternDescr,
final BaseDescr original,
final String expression) {
DrlExprParser parser = new DrlExprParser(context.getConfiguration().getOption(LanguageLevelOption.KEY));
DrlExprParser parser = DrlExprParserFactory.getDrlExprParser(context.getConfiguration().getOption(LanguageLevelOption.KEY));
ConstraintConnectiveDescr result = parser.parse(normalizeEval(expression));
result.setResource(patternDescr.getResource());
result.copyLocation(original);
if (parser.hasErrors()) {
for (DroolsParserException error : parser.getErrors()) {
registerDescrBuildError(context, patternDescr,
"Unable to parse pattern expression:\n" + error.getMessage());
}
return null;
}
result.setResource(patternDescr.getResource());
result.copyLocation(original);
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.drools.drl.ast.descr.ExprConstraintDescr;
import org.drools.drl.ast.descr.PatternDescr;
import org.drools.drl.parser.DrlExprParser;
import org.drools.drl.parser.DrlExprParserFactory;
import org.drools.drl.parser.DroolsParserException;
import org.drools.util.ClassUtils;
import org.drools.util.StringUtils;
Expand All @@ -68,7 +69,7 @@ public RuleConditionElement build( RuleBuildContext context,
BaseDescr descr ) {
throw new UnsupportedOperationException();
}

public RuleConditionElement build( RuleBuildContext context,
BaseDescr descr,
Pattern prefixPattern ) {
Expand Down Expand Up @@ -264,7 +265,7 @@ private void processBinding( RuleBuildContext context,
} else {
// it must be a literal/expression
// it's an expression and thus an input
DrlExprParser parser = new DrlExprParser( context.getConfiguration().getOption(LanguageLevelOption.KEY));
DrlExprParser parser = DrlExprParserFactory.getDrlExprParser(context.getConfiguration().getOption(LanguageLevelOption.KEY));
ConstraintConnectiveDescr bresult = parser.parse( bind.getExpression() );
if ( parser.hasErrors() ) {
for ( DroolsParserException error : parser.getErrors() ) {
Expand Down Expand Up @@ -395,7 +396,7 @@ private static int getPos( String identifier,
private ConstraintConnectiveDescr parseExpression( final RuleBuildContext context,
final PatternDescr patternDescr,
final String expression ) {
DrlExprParser parser = new DrlExprParser( context.getConfiguration().getOption(LanguageLevelOption.KEY));
DrlExprParser parser = DrlExprParserFactory.getDrlExprParser( context.getConfiguration().getOption(LanguageLevelOption.KEY));
ConstraintConnectiveDescr result = parser.parse( expression );
if ( result == null || parser.hasErrors() ) {
for ( DroolsParserException error : parser.getErrors() ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public String getOperator() {
}

public void setOperator( String operator ) {
this.operator = operator.trim();
this.operator = operator != null ? operator.trim() : null;
}

public boolean isNegated() {
Expand Down
124 changes: 124 additions & 0 deletions drools-drl/drools-drl-parser-tests/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.drools</groupId>
<artifactId>drools-drl</artifactId>
<version>999-SNAPSHOT</version>
</parent>

<groupId>org.drools</groupId>
<artifactId>drools-drl-parser-tests</artifactId>

<name>Drools :: DRL :: Parser :: Tests</name>

<properties>
<java.module.name>org.drools.drl.parser.tests</java.module.name>
</properties>

<dependencies>
<!-- Tests -->
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-drl-parser</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-mvel</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<!-- override default-test for new parser -->
<id>default-test</id>
<configuration>
<systemPropertyVariables>
<drools.drl.antlr4.parser.enabled>true</drools.drl.antlr4.parser.enabled>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>old-parser-test</id>
<configuration>
<systemPropertyVariables>
<drools.drl.antlr4.parser.enabled>false</drools.drl.antlr4.parser.enabled>
</systemPropertyVariables>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading
Loading