inappropriate warning appear while building kjar
------------------------------------------------
Key: DROOLS-4043
URL:
https://issues.jboss.org/browse/DROOLS-4043
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.18.0.Final
Reporter: Hiroko Miura
Assignee: Mario Fusco
Priority: Major
Labels: support
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.