>> a) Why do you have "sometimes" the value for mainclass set 
>and sometimes not? 
>
>Because sometimes I'm building a DLL and sometimes an 
>executable depending on whether mainclass is set.
>
>> b) You could use conditional targets (<target if="mainclass">)
>
>But then I'd have to repeat the target twice. I don't want to do that.


Because you (should) know while implementing the buildfile what to
generate you can do

<presetdef name="dll">
    <csc --set-some-common-attributes-- />
</presetdef>
<presetdef name="exe">
    <dll mainclass="..."/>
</presetdef>

<dll .../>
<dll .../>
<exe .../>



Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to