[jboss-jira] [JBoss JIRA] (DROOLS-4043) inappropriate warning appear while bulding kjar
Hiroko Miura (Jira)
issues at jboss.org
Thu May 16 23:02:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiroko Miura updated DROOLS-4043:
---------------------------------
Description:
When bulding kjar, warning something like the following appears.
{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.
~~~
File 'src/main/resources//work/buildKjarTest2/src/main/resources/com/sample/rules2'
~~~
i.e. prefix ('src/main/resources/') is added to absolute path.
Therefore, it's hard to understand what is exactly wrong and warned.
was:
When bulding kjar, warning something like the following appears.
~~~
[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.
~~~
But drl are put under appropriate path which matches declared package.
~~~
src/main/resources/
├── com
│ └── sample
│ ├── rules
│ │ └── Sample.drl
│ └── rules2
│ └── Sample2.drl
~~~
This warning should not appear for this example.
In addition, path of File which is shown in this warning message looks wired.
e.g.
~~~
File 'src/main/resources//work/buildKjarTest2/src/main/resources/com/sample/rules2'
~~~
i.e. prefix ('src/main/resources/') is added to absolute path.
Therefore, it's hard to understand what is exactly wrong and warned.
> inappropriate warning appear while bulding 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 appears.
> {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.
> ~~~
> File 'src/main/resources//work/buildKjarTest2/src/main/resources/com/sample/rules2'
> ~~~
> 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