I think all we need to be able to do to support this is to make sure that whatever setting a user types in forge, e.g:

`set JBOSS_HOME=blah`

should override the system environment.

This does a few things for us:

  1. It means that users do not need to leave forge to change settings,
  2. It means that users can specify these settings in their ~/.forge/config file
  3. It means that eclipse can send settings to a running forge runtime
Does that address your concerns, Max?
~Lincoln


On Tue, Jul 19, 2011 at 8:36 AM, Max Rydahl Andersen <max.andersen@redhat.com> wrote:
I don't want you to read it from eclipse - I want eclipse to be able to tell you where it is ;)

i.e. in CDI terms I would like to be able to introduce a @producer method to return the proper results for the current context.

/max

On Jul 19, 2011, at 12:21, Paul Bakker wrote:

> In the Arquillian plugin I just read the environment property and use that as the default for the prompt. Because I just need the property only once to write it to a config file it's not stored anywhere in Forge. Now that I'm thinking about it, we should probably do the same in the as7 plugin; if the JBOSS_HOME env. property is empty we could let the user enter a location and that should be stored somewhere.
> I see two options here:
> 1) save all properties in the .forge directory, they should overwrite normal environment properties
> 2) save this kind of properties at the project level (either in the forge.xml file, or we can introduce a properties file) so you can, for example, use different server installations in different projects.
> Letting the user choose if it's a system level, or project levelsetting this would be even better.
>
> I have absolutely no idea how to check in Eclipse which servers are installed, so I also can't really imagine how to read that from Forge. Maybe scan configuration files in the "servers" project?
>
> Paul
>
>
>
> On Jul 19, 2011, at 12:10 PM, Max Rydahl Andersen wrote:
>
>> also a good example of info that when forge is running within eclipse we can tell if which server (if any) are setup as the default target.....
>>
>> Any ideas on how we can hook that in ?
>>
>> /max
>>
>> On Jul 18, 2011, at 23:58, Lincoln Baxter, III wrote:
>>
>>> http://vimeo.com/26562733
>>>
>>> How do you think we should resolve the JBOSS_HOME requirement issue? Forge config to override system environment?
>>>
>>> --
>>> Lincoln Baxter, III
>>> http://ocpsoft.com
>>> http://scrumshark.com
>>> "Keep it Simple"
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>> /max
>> http://about.me/maxandersen
>>
>>
>>
>

/max
http://about.me/maxandersen






--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"