--- Dominique Devienne <[EMAIL PROTECTED]> wrote:
> > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> > On Mon, 9 May 2005, Matt Benson
> <[EMAIL PROTECTED]> wrote:
> > > Variable can accept a nested PropertySet OR have
> its
> > > key & value attributes set as usual
> > >
> As far as names are concerned, I'd go with the same
> name already used by
> the task with a 'set' suffix, i.e. for
> <java>/<junit>/<exec>, use
> <envset>.

My reason for wanting to nest the propertyset into a
regular <env> element is that these are passed by
<exec> and <java (w/ forking)> to an Environment
object.  This means that if the code is added to
Environment, so that:

<exec executable="foo">
  <env>
    <propertyset|whatever name we want here
refid="foo.properties" />
  </env>
</exec>

Any user of Environment.Variable (exec should be the
paradigm) automatically supports propertysets.  If
this  nesting approach--with whatever element name,
although I tend to use the add(...) IH methods--is
acceptable in general, I have got this working
already.

-Matt

> 
> With <syspropertyset> and <envset>, both using a
> mapper with a prefix,
> you can then easily configure the runtime
> environment of <junit> for
> example, without changing the build script, by
> defining properties
> (easily done in a user-specific way) like
> runtime-env.SOME_ENV_VAR and
> runtime.SOME_PROPERTY. --DD
>
----------------------------------------------------------------------
> This e-mail, including any attached files, may
> contain confidential and privileged information for
> the sole use of the intended recipient.  Any review,
> use, distribution, or disclosure by others is
> strictly prohibited.  If you are not the intended
> recipient (or authorized to receive information for
> the intended recipient), please contact the sender
> by reply e-mail and delete all copies of this
> message.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


                
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to