Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

outofdate and missing files

Help
2004-12-17
2013-04-24
  • Bill Poitras
    Bill Poitras
    2004-12-17

    I am trying to use outofdate to help me figure out if I need to run a perl script to generate several java files:

        <outofdate>
          <sourcefiles>
            <pathelement path="${input.file}"/>
          </sourcefiles>
          <targetfiles>
            <fileset dir="${output.dir}">
              <patternset refid="outputFileSet"/>
            </fileset>
          </targetfiles>
          <sequential>
             <gen-my-files-task>
          </sequential>
        </outofdate>

    Basically I want this to run if any of java files secified in the patternset are either missing or out of date relative to ${input.file}.

    What happens is when I touch ${input.file} the files get regenerated as expected.  But if I delete any or all of the ouput files, they are considered up to date.  Any idea how to fix this?