Hi Sandeep.

I've done something similar to what you describe - but entirely in NAnt.
No external configuration file.

I can't post my .build file, but it worked something like this:

First, create targets that set properties to describe your target
environments.

In my case, I had these targets:

  o  dev
  o  test.a
  o  test.b
  o  test.c
  o  production

Each target defines a number of properties that relate to the specified
environment. For example, database.connection is the connection string
to for the database.


Second, create targets to do the actual deployment. These targets are
the consumers of the properties defined by the first set of targets.

For example, the target database.rebuild would drop, recreate and
populate the database for a system.


Once both sets of targets were defined, using them was just a matter of
composing the appropriate pair on the commandline:

; Rebuild the development database
C:> nant dev database.rebuild

; Deploy the latest build into the test.b environment
C:> nant test.b deploy.latest

And so on.

Hope this helps,
Bevan.



******************************************************************************
"This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand."
******************************************************************************





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to