[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2338) allow seam-gen to manage multiple projects

Dan Allen (JIRA) jira-events at lists.jboss.org
Thu Oct 9 04:01:20 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBSEAM-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12433193#action_12433193 ] 

Dan Allen commented on JBSEAM-2338:
-----------------------------------

As you know, I have been moving build.properties to the file seam-gen.properties in the root of the project since last spring (really since Seam 2.0). Up until now, we just haven't done anything about it.

Here is how I solved this problem. First and foremost, i have unlocked us from having to run the seam script from the Seam distribution directory. Now you can run it out of any directory on the computer and it will work as it does today (meaning your current working directory can be anywhere).

If your current working directory happens to be a directory that has a seam-gen.properties file AND and build.xml file, then the seam script recognizes that you are in a Seam project and operates using the seam-gen.properties file in that directory rather than the seam-gen/build.properties from the Seam distribution.

On top of that, the outputs after the generate command are aware of whether you are running the seam script outside a project or inside a project and thus tell you to use seam or ant respectively. For example, if you run generate from within a project, it will tell you to run "ant restart" (instead of "seam restart").

> allow seam-gen to manage multiple projects
> ------------------------------------------
>
>                 Key: JBSEAM-2338
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-2338
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Tools
>    Affects Versions: 2.0.0.GA
>            Reporter: Dan Allen
>            Assignee: Dan Allen
>             Fix For: 2.1.0.GA
>
>         Attachments: JBSEAM-2338-v1.txt
>
>   Original Estimate: 10 minutes
>  Remaining Estimate: 10 minutes
>
> Currently seam-gen only has the ability to manage one project at a time. This limitation is due to the fact that it sources build.properties from the seam-gen directory to read settings about the managed project. I propose that we make the name of the settings file dynamic so that it is possible for seam-gen to select it based on the name of a property supplied to the command line.
> Example:
> ./seam -Dbuild=projecta explode
> ./seam explode
> The first command would source build-projecta.properties. The second command would fall back to the existing behavior and source build.properties.

-- 
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 seam-issues mailing list