mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 50 forks source link

generate-daemons: Name for generated batch/shell scripts should be made configurable #5

Closed khmarbaise closed 9 years ago

khmarbaise commented 9 years ago

If i define the following:

<daemons>
    <daemon>
      <id>mod-dev</id>
    </daemon>
    <daemon>
      <id>mod-test</id>
    </daemon>
    <daemon>
      <id>mod-prod</id>
    </daemon>
</daemons>

This would generate the following folder structure:

+---jsw
    +---mod-dev
    ¦   +---bin
    ¦   +---etc
    ¦   +---lib
    +---mod-test
        +---bin
        +---etc
        +---lib

And it will unfortunately generate also the batch/shell scripts like this:

mod-dev/bin/mod-dev.bat mod-dev/bin/mod-dev

mod-test/bin/mod-test.bat mod-test/bin/mod-test

It would be nice having an configuration option to keep the name of the shell/batch file always the same cause we have a separation based on the folder structure which would result in the following:

mod-dev/bin/mod.bat mod-dev/bin/mod

mod-test/bin/mod.bat mod-test/bin/mod

This would make packaging into distribution archives easier.