jmrozanec / cron-utils

Cron utils for parsing, validations and human readable descriptions as well as date/time interoperability.
http://cron-utils.com
Apache License 2.0
1.15k stars 262 forks source link

Migrate cron expression from Quartz To Spring #377

Closed tubean closed 5 years ago

tubean commented 5 years ago

Thank you for this tool. But I met an issue when I use CronMapper. It only supports migrate from Quartz to Unix or Cron4j. How can I migrate from Quartz to Spring expression?

jmrozanec commented 5 years ago

@tubean you can migrate to any cron expression, as long as you provide the target definition. Please let us know if further help is required or an issue for a bugfix must be created. Thanks! :smile:

tubean commented 5 years ago

@jmrozanec thank you for your reply. When I see class CronMapper, there are 4 methods fromCron4jToQuartz(), fromQuartzToCron4j(), fromQuartzToUnix() and fromUnixToQuartz() but not found any method which migrates from Quartz to Spring expression. Did you mean we can use the constructor of CronMapper to build the new one? But I am not sure how to define cronRules for it 😄

jmrozanec commented 5 years ago

@tubean you are right about the rules - are not intuitive. Let us check by EOD and provide an accurate answer 😄 Best!

jmrozanec commented 5 years ago

@tubean we are working on a fix for this. You can expect a new release with fixes on Friday 😄 Thank you for reporting it!

tubean commented 5 years ago

@jmrozanec Great! Thank you so much 👍

jmrozanec commented 5 years ago

@tubean this feature was added and a new version will be released today with it. Best!

jmrozanec commented 5 years ago

@tubean a new release is available with this feature. Best!

tubean commented 5 years ago

@jmrozanec Thanks!