There is no way to check but this should work <call target="name" failonerror="false"/>
This will call, but not fail... :) > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nant-developers- > [EMAIL PROTECTED]] On Behalf Of Kevin Dente > Sent: Thursday, June 27, 2002 11:24 AM > To: Nant developer's list > Subject: [nant-dev] Calling a target if it exists > > Sorry if I'm missing something obvious, but is there a > way to call a target only if it is defined? Most of > the conditional stuff seems to be around property > values set to true or false. > > What I'm doing is creating a build file which sets up > some default targets and will get included via the > Include task. I'd like to call a target if it's > defined in the merged project, but skip it if it isn't > there. I can fall back to setting a property if I have > to, but I'd rather not if there's a cleaner way. > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Nant-developers mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
