Skip to content

gp-cli export command can't create directory structures #147

@smazzara

Description

@smazzara

I created a series of bundles with file names like the following:

GettingStarted_2_com.ibm.rdz.start.core.messages.properties
GettingStarted_2_com.ibm.rdz.start.core.plugin.properties
GettingStarted_2_com.ibm.rdz.start.core.taskflows.do_analyzingPrograms.messages.properties
GettingStarted_2_com.ibm.rdz.start.core.taskflows.do_data.messages.properties
GettingStarted_2_com.ibm.rdz.start.core.taskflows.do_debugAll.messages.properties
GettingStarted_2_com.ibm.rdz.start.core.taskflows.do_debugCover.messages.properties
GettingStarted_2_com.ibm.rdz.start.core.taskflows.do_developCode.messages.properties

These bundles contain .properties files that are in the following directory structure:

com.ibm.rdz.start.core/src/com/ibm/rdz/start/core/messages.properties
com.ibm.rdz.start.core/src/com/ibm/rdz/start/core/plugin.properties
com.ibm.rdz.start.core.taskflows/do_analyzingPrograms/messages.properties
com.ibm.rdz.start.core.taskflows/do_data/messages.properties
com.ibm.rdz.start.core.taskflows/do_debugAll/messages.properties
com.ibm.rdz.start.core.taskflows/do_debugCover/messages.properties
com.ibm.rdz.start.core.taskflows/do_developCode/messages.properties

I would like to be able to create this directory structure when I issue an export command, like this:

java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.messages.properties -l pt-BR -t JAVA -f com.ibm.rdz.start.core.nl1/com/ibm/rdz/start/core/messages_pt_BR.properties -j mycreds.json
java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.plugin.properties -l pt-BR -t JAVA -f com.ibm.rdz.start.core.nl1/plugin_pt_BR.properties -j mycreds.json
java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.taskflows.do_analyzingPrograms.messages.properties -l pt-BR -t JAVA -f com.ibm.rdz.start.core.taskflows.nl1/do_analyzingPrograms/messages_pt_BR.properties -j mycreds.json
java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.taskflows.do_data.messages.properties -l pt-BR -t JAVA -f exported_translations/com.ibm.rdz.start.core.taskflows.nl1/do_data/messages_pt_BR.properties -j mycreds.json
java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.taskflows.do_debugAll.messages.properties -l pt-BR -t JAVA -f com.ibm.rdz.start.core.taskflows.nl1/do_debugAll/messages_pt_BR.properties -j mycreds.json
java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.taskflows.do_debugCover.messages.properties -l pt-BR -t JAVA -f com.ibm.rdz.start.core.taskflows.nl1/do_debugCover/messages_pt_BR.properties -j mycreds.json
java > output.txt 2>&1 -jar gp-cli.jar export -b GettingStarted_com.ibm.rdz.start.core.taskflows.do_developCode.messages.properties -l pt-BR -t JAVA -f com.ibm.rdz.start.core.taskflows.nl1/do_developCode/messages_pt_BR.properties -j mycreds.json

Instead, I have to create the directories first, and then issue the commands to export the files.

I would like to see a directory creation capability incorporated into the export command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions