Discussions

General J2EE: ANT - how to Pick the last modified file?

  1. Hi, Please can any one guide me to pick the last modified file in the given directory using ANT scripts. I am preparing script to compile the PL/SQLs , which we are developing in Eclipse. If the developer create/update any file, only that file should pick for compilation at Database. Thanks, Mahendran..
  2. Hi,
    Please can any one guide me to pick the last modified file in the given directory using ANT scripts.

    I am preparing script to compile the PL/SQLs , which we are developing in Eclipse. If the developer create/update any file, only that file should pick for compilation at Database.

    Thanks,
    Mahendran..
    to select files use a fileset with the selector date. so you can select a file that is new or modified since a explicit date. or try it with the modified selector. but with selectors it is possible to pick zero to many files. i dont know how to pick only one file.