[
https://issues.apache.org/jira/browse/TUSCANY-3730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922107#action_12922107
]
Simon Nash commented on TUSCANY-3730:
-------------------------------------
One solution would be to include these database files in the binary
disitrbution. There are 3 identical copies of the database in store/store-db,
store/store-eu and store/store-supplier. Each copy of the database occupies
about 1.7MB, so this would add 5MB to the size of the binary distribution.
This seems excessive, especially considering that all 3 copies of the database
are the same.
An alternative solution would be to add code to the tutorial ant scripts to
create these database files and tell users that they need to run a command to
create these files before running the tutorial for the first time. This is
easy to do and doesn't increase the size of the binary distribution. It does
require the user to type one additional command, but this doesn't seem
excessively burdensome.
Further improvements are possible. For example, the "ant run" command for
store/domain could either create the database files automatically or check to
make sure the files have previously been created. Unfortunately this is
slightly complicated to implement because the build.xml file for store/domain
is generated by code in the pom.xml file and can't easily be customized to add
the necessary additional logic.
For now I have taken the simple approach of making the database creation an
explicit additional step that is described in the store tutorial README.
> Store tutorial fails to run from binary distribution because of missing
> database files
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-3730
> URL: https://issues.apache.org/jira/browse/TUSCANY-3730
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Tutorial
> Affects Versions: Java-SCA-1.6
> Reporter: Simon Nash
> Assignee: Simon Nash
> Fix For: Java-SCA-1.6.1
>
>
> The database files used by the store tutorial aren't included in the binary
> distribution. If the store tutorial is run without these files, a number of
> the scenarios fail.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.