[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-4268) Provide a way to merge files generated by exporters.

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Wed Mar 31 09:43:38 EDT 2010


     [ https://jira.jboss.org/jira/browse/JBIDE-4268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Geraskov updated JBIDE-4268:
-----------------------------------

    Attachment: exporter_mergeMethod_patch.txt


Attached exporter_mergeMethod_patch.txt use different and probably more correct approach. It just provide 2 options: SKIP/OVERWRITE(set by default). It doesn't contain ant task changes, and added to review.
It is supposed that ant task will have one more optional attribute "mergemethod" with not defauilt value "skip":
<hbm2ddl mergemethod="skip"/>

> Provide a way to merge  files generated by exporters.
> -----------------------------------------------------
>
>                 Key: JBIDE-4268
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4268
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>    Affects Versions: 3.1.0.M1
>            Reporter: Dmitry Geraskov
>            Assignee: Max Rydahl Andersen
>            Priority: Blocker
>             Fix For: 3.2.next
>
>         Attachments: exporter_mergeMethod_patch.txt, patch.txt, patch2.txt
>
>
> Now exporter replaces previous file version.
> We need to call merging when file which will be generated already exists.
> The best place for such injection is ArtifactCollector as developer can easily specify subclass of this class and set it to exporter.
> We need only to provide such API.
> I' going to add method merge(...) to ArtifactCollector class and call it when necessary in template producer.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list