| Help with running different target based on user input? | Help with running different target based on user input? 2007-02-23 - By Priest, James (NIH/NIEHS) [C]
> -----Original Message----- > From: RADEMAKERS Tanguy [mailto:Tanguy.RADEMAKERS@(protected)]
> Ant is not a scripting language... assuming that "run script > four" is a target in your build file, you could call it from > within another target using the <antcall> task. You should > also look into the AntContrib third party tasks, since they > have an "if" task. > > Maybe if you gave us some more info on what you're trying to achieve?
Basically I have a series of sql scripts that I want to run...
Script1 and Script2 need to always run.
Script2 and Script3 are optional but there are some table dependencies - so for example if I don't run Script3, I can't run Script 4 without throwing an error.
I added an AntCall within Script3 to call Script4 and it seems to work!!!
Thanks again for the pointers!
Jim
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |