[jboss-jira] [JBoss JIRA] (DROOLS-4044) inappropriate warning appear while bulding kjar
Hiroko Miura (Jira)
issues at jboss.org
Thu May 16 23:12:00 EDT 2019
Hiroko Miura created DROOLS-4044:
------------------------------------
Summary: inappropriate warning appear while bulding kjar
Key: DROOLS-4044
URL: https://issues.jboss.org/browse/DROOLS-4044
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.18.0.Final
Reporter: Hiroko Miura
Assignee: Mario Fusco
Attachments: buildKjar.zip
When bulding kjar, warning something like the following appear.
{noformat}
[WARNING] File 'src/main/resources//work/buildKjar/src/main/resources/com/sample/rules2' is in folder '.work.buildKjar.src.main.resources.com.sample.rules2' but declares package 'com.sample.rules2'. It is advised to have a correspondance between package and folder names.
[WARNING] File 'src/main/resources//work/buildKjar/src/main/resources/com/sample/rules' is in folder '.work.buildKjar.src.main.resources.com.sample.rules' but declares package 'com.sample.rules'. It is advised to have a correspondance between package and folder names.
[WARNING] File 'work/buildKjar/src/main/resources/com/sample/rules2' is in folder 'work.buildKjar.src.main.resources.com.sample.rules2' but declares package 'com.sample.rules2'. It is advised to have a correspondance between package and folder names.
[WARNING] File 'work/buildKjar/src/main/resources/com/sample/rules' is in folder 'work.buildKjar.src.main.resources.com.sample.rules' but declares package 'com.sample.rules'. It is advised to have a correspondance between package and folder names.
{noformat}
But drl are put under appropriate path which matches declared package.
{noformat}
src/main/resources/
├── com
│ └── sample
│ ├── rules
│ │ └── Sample.drl
│ └── rules2
│ └── Sample2.drl
{noformat}
This warning should not appear for this example.
In addition, path of File which is shown in this warning message looks wired.
e.g.
{noformat}
File 'src/main/resources//work/buildKjarTest2/src/main/resources/com/sample/rules2'
{noformat}
i.e. prefix ('src/main/resources/') is added to absolute path.
Therefore, it's hard to understand what is exactly wrong and warned.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list