Hi There,
Does NANT provides the functionality of passing arguments to targets?
We have some 40 solution files and we are developing build file for each
solution. Also, we are using solution tasks within <trycatch> block and we want
to shoot a mail in <catch> block for every solution..something like below..
<trycatch>
<try>
<solution configuration = '${build.config}' solutionfile =
'sdkbuilder.sln' >
</solution>
</try>
<catch property = 'exception'>
<if test = "${exception == 'Project build failed.'}">
<call target = 'sendmail' />
</if>
</catch>
</trycatch>
<target name = 'sendmail' verbose = 'true'>
<mail
from = '${mail.sender}'
tolist = '${mail.receiver}'
subject = 'BUILD FAILED FOR SDKBUILDER.SLN file'
mailhost = '${mail.mailhost}'>
</mail>
</target>
Now, what I want is to declare <sendmail> target to a global file and pass
the subject line for every solution to sendmail target.
The other solution I can think off is writing a VB Script, calling it thru
<exec> and passing it the argument; but I want to use mail target and so
seeking help from you people.
Please let me know if it's possible?
Thanking you!
Rajiv Kr. Srivastava
---------------------------------
Check out what you're missing if you're not on Yahoo! Messenger
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users