Bug 1038219 - jcr2vfs: unnecessary directory is created for single-worded jcr package names
Summary: jcr2vfs: unnecessary directory is created for single-worded jcr package names
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Migration Tool
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Edson Tirelli
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-04 16:21 UTC by Petr Široký
Modified: 2020-03-27 19:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:12:57 UTC
Type: Bug


Attachments (Terms of Use)

Description Petr Široký 2013-12-04 16:21:48 UTC
Description of problem:
For single-worded JCR package names - e.g. mortgages, the directories like 'src/main/resources/mortgages/mortgages' are created, but the resources are actually saved in 'src/main/resources/mortgages'. I guess the directories are created using groupId + artifactId, which makes sense for multi-worded package names, however in this case it's IMHO wrong.

Following directory structure is created.
<project-mortgages>
|-- pom.xml
|-- project.imports
`-- src
    |-- main
    |   |-- java
    |   |   `-- mortgages
    |   |       |-- Applicant.java
    |   |       |-- Bankruptcy.java
    |   |       |-- IncomeSource.java
    |   |       |-- LoanApplication.java
    |   |       `-- mortgages                        <<<<<<<< This directory should not be there
    |   `-- resources
    |       |-- META-INF
    |       |   `-- kmodule.xml
    |       `-- mortgages
    |           |-- ApplicantDsl.dsl
    |           |-- Bankruptcy\ history.rdrl
    |           |-- CreditApproval.rdslr
    |           |-- credit\ ratings.enumeration
    |           |-- Dummy\ rule.drl
    |           |-- mortgages                        <<<<<<<< This directory should not be there
    |           |-- No\ bad\ credit\ checks.rdrl
    |           |-- no\ NINJAs.rdrl
    |           |-- Pricing\ loans.gdst
    |           |-- RegexDslRule.rdslr
    |           `-- Underage.rdrl
    `-- test
        |-- java
        |   `-- mortgages
        |       `-- mortgages                        <<<<<<<< This directory should not be there
        `-- resources
            `-- mortgages
                |-- Are\ they\ old\ enough.scenario
                |-- Good\ credit\ history\ only.scenario
                |-- mortgages                        <<<<<<<< This directory should not be there
                |-- NINJAs.scenario
                |-- No\ bankruptcies.scenario
                `-- Pricing\ low\ end.scenario

Version-Release number of selected component (if applicable):
6.0.0-ER5 (also community 6.0.0-SNAPSHOT)


Note You need to log in before you can comment on or make changes to this bug.