camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Orbaan <>
Subject RE: Copy current file in a folder
Date Thu, 08 Dec 2016 10:26:04 GMT
You could try stuff like this:

Date now = new Date();
long longTime = now.getTime();
return longTime >= file.getLastModified();

But you are asking basic Java questions which you could better google.

You could also try a cron.schedule on your "from" and only let your route be active during
a certain schedule.

-----Oorspronkelijk bericht-----
Van: axdz [] 
Verzonden: Thursday 8 December 2016 4:22
Onderwerp: Re: Copy current file in a folder


I tried to implement by using their timestamp.
Please tell me LastLastModified is timestamp or not?
With LastModified , I can not compare with 05:00.

public class FileFilters<T> implements GenericFileFilter<T> {

    public boolean accept(GenericFile<T> file) {
            System.out.println(file.getFileName() + ":" + file.getLastModified());
        return true;


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message