tags:

views:

37

answers:

1

I want to define a target using a property as part of its name attribute, but the property doesn't seem to resolve.

<property name="foo" value="FOO" />

<target name="${foo}.init.win32" />

<antcall target="${foo}.init.win32" />

The error I get is: Target "FOO.init.win32.x86" does not exist in the project.

I guess ANT doesn't allow this behavior?

+1  A: 

Yes, ant doesn't allow variable name of the target. Otherwise dependency calculation can be very difficult task

Ivan Nevostruev
thanks - I just re-worked it to where I wouldn't need the variable in the target Name attribute. It resulted in more fluff, but... oh well.
Michael