You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Andrew Eberbach (JIRA)" <ji...@apache.org> on 2007/01/07 16:22:27 UTC

[jira] Created: (MUSE-173) Maintain a list of files to overwrite

Maintain a list of files to overwrite
-------------------------------------

                 Key: MUSE-173
                 URL: https://issues.apache.org/jira/browse/MUSE-173
             Project: Muse
          Issue Type: Improvement
          Components: Tooling - Code Generation
            Reporter: Andrew Eberbach
         Assigned To: Andrew Eberbach
             Fix For: 2.2.0


When regenerating into a directory, extra care must be taken to not overwrite work. However, the current code generation only has an all-or-nothing approach: overwrite everything or overwrite nothing. 

This should be changed so that when generating code, a manifest of all of the files that will probably never have hand-written code in them should be created in the project directory root. Then, when regenerating there are three options:

1. Overwrite nothing
2. Overwrite everything
3. Overwrite only the files that are listen in the manifest

This has some nice features. 

1. By default, using the Muse-172 feature the concrete implementation classes would be left out of the manifest so that only the interface and the abstract class would be regenerated. 

2. If there were files that the user added to the project, they would also not get overwritten since they are not in the list of files.

3. If a user doesn't want a specific file to be regenerated they can just edit the manifest (it's a text file with one file per line) and take out the file. This should also support standard # comments.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Resolved: (MUSE-173) Maintain a list of files to overwrite

Posted by "Andrew Eberbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MUSE-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Eberbach resolved MUSE-173.
----------------------------------

    Resolution: Fixed

This is working now. Just need to update the docs.

> Maintain a list of files to overwrite
> -------------------------------------
>
>                 Key: MUSE-173
>                 URL: https://issues.apache.org/jira/browse/MUSE-173
>             Project: Muse
>          Issue Type: Improvement
>          Components: Tooling - Code Generation
>            Reporter: Andrew Eberbach
>         Assigned To: Andrew Eberbach
>             Fix For: 2.2.0
>
>
> When regenerating into a directory, extra care must be taken to not overwrite work. However, the current code generation only has an all-or-nothing approach: overwrite everything or overwrite nothing. 
> This should be changed so that when generating code, a manifest of all of the files that will probably never have hand-written code in them should be created in the project directory root. Then, when regenerating there are three options:
> 1. Overwrite nothing
> 2. Overwrite everything
> 3. Overwrite only the files that are listen in the manifest
> This has some nice features. 
> 1. By default, using the Muse-172 feature the concrete implementation classes would be left out of the manifest so that only the interface and the abstract class would be regenerated. 
> 2. If there were files that the user added to the project, they would also not get overwritten since they are not in the list of files.
> 3. If a user doesn't want a specific file to be regenerated they can just edit the manifest (it's a text file with one file per line) and take out the file. This should also support standard # comments.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org