Shall I raise this as a JIRA improvement?
There are at least two options:
1) Copy the following into the create-component generated
ofbiz-component.xml
<!-- defining:
seed = OFBiz and External Seed Data - to be maintained
along with source and updated whenever a system deployment is updated
seed-initial = OFBiz and External Seed Data - to be maintained
along with source like other seed data, but only loaded initially and
not updated when a system is updated except manually reviewing each line
demo = OFBiz Only Demo Data
ext = External General Data (custom)
ext-test = External Test Data (custom)
ext-demo = External Demo Data (custom)
-->
2) Set create-component to use only the ext* readers.
Many thanks,
Chris
Christopher Snow wrote:
> Hi Jacques,
>
> entityengine.xml explains it all! The create-component script puts the
> component data in the seed and demo reader. Perhaps it should put the
> data under ext and ext-demo?
>
> Many thanks,
>
> Chris
>
> Jacques Le Roux wrote:
>
>> Hi Chris,
>>
>> You can use the ext data for that. Look for ext in entityengine.xml.
>> Then you can use run-install-extseed. See the main build.xml file.
>> Also, from OFBiz main dir, "ant -p" is your friend.
>>
>> Jacques
>>
>> From: "Christopher Snow" <[email protected]>
>>
>>> During developing my component, I am frequently creating new demo data
>>> as my component grows and pasting the data into the webtools import
>>> screen.
>>>
>>> Is there a way to automate loading the demo data for my component?
>>> Running ant run-install is not practical because it installs the demo
>>> data for all the components (and takes ages).
>>>
>>> I would like to keep my demo data in the default "demo" reader so that
>>> it will still get installed with ant run-install when I finally deploy
>>> my project.
>>>
>>> Something like the following ant target would do what I'm looking for:
>>>
>>> ./ant run-install-readers -Ddata-readers=demo -Dcomponents=mycomponent
>>>
>>> Many thanks in advance,
>>>
>>> Chris
>>>
>>>
>>
>
>
>
--
Chris Snow - CEng MBCS CITP MBA (Tech Mgmt) (Open) CISSP
Tel: 01453 890660
Mob: 07944 880950
Www: www.snowconsulting.co.uk