Hello all,

I am working with trying get target execution based on the files
timestamp. According to what I read about 'uptodate', this is what I
should need.

Well, I get an error with Ant complaining that:

<path_to_my>/build.xml:22: Unexpected element "uptodate"

from here it dies.

I am running version 1.4.1 of Ant. I know that the other parts of my
build.xml file work, as I had just added the 'uptodate' task.

I attached my build.xml file...

Thanks,

Mike
<project name="test" default="audio">
        <property name="sfront" value="sfront" />
        
        <property name="filename" value="bach" />
        <property name="saolfile" value="${filename}.saol" />
        <property name="saslfile" value="${filename}.sasl" />
        <property name="midifile" value="${filename}.mid" />
        <property name="mp4file" value="${filename}.mp4" />
        <property name="aoutfile" value="${filename}.wav" />
        
        <property name="aoutmode" value="-aout ${aoutfile}" />
        <property name="ainmode" value="" />
        
        <property name="cc" value="gcc" />
        <property name="c_exec" value="${filename}" />
        <property name="c_optim" value="-O3" />
        <property name="cflags" value="${c_optim}" />
        
        <property name="iolink" value="" />
        <property name="redirect" value="" />
        
        <uptodate property="aoutfile_exsists" targetfile="${aoutfile}">
                <srcfiles dir="." includes="${saolfile}, ${saslfile}, ${midifile}" />
        </uptodate>
        
        <target name="audio" unless="${aoutfile_exsists}">
                <exec executable="${sfront}">
                        <arg line="${aoutmode} ${ainmode} -orc ${saolfile} -sco 
${saslfile} -midi ${midifile} -o ${c_exec}.c" />
                </exec>
                <exec executable="${cc}">
                        <arg line="${cflags} ${c_exec}.c -lm ${iolink} -o ${c_exec}" />
                </exec>
                <exec executable="./${c_exec}">
                        <arg line="${redirect}" />
                </exec>
        </target>
        
        
</project>


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

Reply via email to