[ 
http://jira.jboss.com/jira/browse/JBPORTAL-187?page=comments#action_12314816 ]
     
Thomas Heute commented on JBPORTAL-187:
---------------------------------------

Ideally it could be used for upgrading (if the database scheme change from one 
version of JBoss Portal to another, like a new column in a table)

> JBoss Portal setup the database and files on deploy
> ---------------------------------------------------
>
>          Key: JBPORTAL-187
>          URL: http://jira.jboss.com/jira/browse/JBPORTAL-187
>      Project: JBoss Portal
>         Type: Task
>     Versions: 2.0 Final
>     Reporter: Julien Viet
>      Fix For: 2.0 Final

>
> Original Estimate: 4 days
>         Remaining: 4 days
>
> - it is an optional service (setup.sar) that is nested within 
> portal-core.sar, the goal is to put it in the default configuration. But as 
> this config is exploded, it can be easily removed from it. For instance once 
> it is setup, it can be removed. Another example are people that prefer to do 
> a manual installation and thus does not need it.
> - the setup.sar contains all the basic portal state, which means : tables SQL 
> statements, insert SQL statements and also the files for Slide.
> - that setup.sar must be configurable and must not be tied in particular to 
> the module core as it will be used also for other modules (like forums). 
> Therefore it must be done as a separate module in the build (like 
> jboss-portal-2.0/core).
> - the setup of the state must be done on the service startService() phase.
> - the insertion of data must be done only if no data already exists. For 
> instance if the portal data directory already exists, no file must be copied. 
> Or if the tables already exist, the sql insertions must be bypassed
> - the setup.sar must define an XML file format that will describe the data to 
> setup : SQL statements and files to copy. Perhaps it could be possible to 
> execute ANT build files from with the start, since ANT already has a lot of 
> tasks. This is an option to explore imho
> - the test cases must be written

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to