It would be nice if call target could accept parameters. Also if you could
specify a file the target is located in then there would be increased
encapsulation. Then code would be easier to maintain. Also if the target
could return a value. If there is something like this already then let me
know.

Example:
<property name="BuildReturnValue" />
<call target="build" fromfile="BuildTarget.build" return="BuildReturnValue">
        <parameter name="strSolutionFile" value="MySolution.sln">
</call>

<ifnot test=${BuildReturnValue= 'true'}>
        ...
</ifnot>

BuildTarget.build file contents:
<!-- maybe not have the project for root element? -->
<target name="build">
        <parameter name="strSolutionFile" />
        <solution configuration="debug" solutionfile="${strSolutionFile}"/>
        <return value="true"/>
</target>

I haven't gave this much thought but I think you will get the idea. Maybe
make a function target? Anyways I just want to get somebodies wheels
turning.

Thanks,
Bruce Leggett
Software Engineer
Advanced Systems Technology, Inc.
850.475.4006
BEGIN:VCARD
VERSION:2.1
N:Leggett;Bruce
FN:Bruce Leggett
ORG:Advanced System Technologies
TITLE:Software Engineer
TEL;WORK;VOICE:850-475-4006
ADR;WORK:;;;Pensacola;FL
LABEL;WORK:Pensacola, FL
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20040730T225912Z
END:VCARD

Reply via email to