Is there a way to check if a property as a value w/o an exception being thrown that it is not set?  I am using:

 

<if test=”${not property::exists(‘propA’)}”>

… set it

 

I would like to be able to check if it has a value though before I set it as well.

 

<if test=”${property::get-value (‘propA’) = “”}”>

… set it

 

BUT, the build fails b/c the property hasn’t been set.  Is there any plans to add a check for null?  Or anything like that?

 

Also…  We use Perforce and I needed a lot more functionality than the 2 tasks in NAnt now.  So I wrote ones for Label, LabelSync, Change, Submit, Revert, Edit, and updated Sync.  They are a little hacked together b/c I needed them to work, but I thought I would throw them out for some help.  Because Perforce has notions that the other supported CMs do not this stuff may not be very elegant.  Should I send it to one of the developers as it is a number of files?

 

Thanks.

-Brandon

 

Reply via email to