Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 16 05:40

    jmrozanec on master

    Update README.md (compare)

  • Nov 14 21:53

    jmrozanec on master

    Add alternative pom.xml, with u… (compare)

  • Nov 14 21:44

    jmrozanec on master

    Update pom.xml -> 9.1.7-SNAPSHO… (compare)

  • Nov 14 21:40

    jmrozanec on 9.1.6

    (compare)

  • Nov 14 21:39

    jmrozanec on master

    Update pom.xml towards JDK8, fo… pom.xml -> 9.1.6 (compare)

  • Nov 14 21:28

    jmrozanec on master

    Issue #493: update code towards… (compare)

  • Oct 30 13:12

    jmrozanec on master

    Resolve RCE vulnerability. Mak… Merge pull request #494 from Ni… (compare)

  • Oct 30 13:11

    jmrozanec on master

    Update CronValidator.java Merge pull request #493 from pw… (compare)

  • Oct 30 13:11

    jmrozanec on master

    Fix mapping of interval for the… Merge branch 'hibnico-fix-inter… (compare)

  • Oct 15 07:21

    jmrozanec on master

    fixed some tests in italian Merge pull request #492 from al… (compare)

  • Oct 10 19:05

    jmrozanec on master

    Update pom.xml with JDK 16. (compare)

  • Oct 10 18:53

    jmrozanec on master

    #446 when dst overlaps, skip du… Merge pull request #490 from In… (compare)

  • Oct 10 18:53

    jmrozanec on master

    Enable unit tests for #430 and … Merge pull request #489 from In… (compare)

  • Oct 10 18:52

    jmrozanec on master

    See #480 The unit test didn't … retain only jdk 16 github test … Merge pull request #488 from In… (compare)

  • Oct 10 18:52

    jmrozanec on master

    test for java 17 Merge pull request #487 from al… (compare)

  • Oct 06 07:32

    jmrozanec on master

    Merge pull request #3 from jmro… Merge branch 'jmrozanec:master'… removed unused import and 3 more (compare)

  • Oct 03 06:22

    jmrozanec on master

    Describe "always ..." for HHMMSS Update .gitignore. Update pom.x… Merge branch 'mccartney-fixing-… (compare)

  • Sep 13 10:00

    jmrozanec on master

    Issue 480 test sout -> logger Merge remote-tracking branch 'o… and 1 more (compare)

  • Jun 28 07:57

    jmrozanec on master

    Add an Automatic-Module-Name T… Merge pull request #479 from oc… (compare)

  • May 02 08:32

    jmrozanec on master

    Add test for issue #477 Merge pull request #478 from ar… (compare)

jmrozanec
@jmrozanec
@/all we reached 700 commits at cron-utils! :clap: :clap: :clap:
jmrozanec
@jmrozanec
@/all Release 6.0.3 is out! Many thanks to @pangyikhei, @mallim, @dsavickas, @kensipe, @minidmnv, @breathermachine, @meincs, @mohanarpit, @hellorameshus1, @kauspatel, @yangdailin, @shangyilim, @lovepoem, @dkelkhoff, @AlexBes1, @RafaelAbreu05, @bertold, @velo, @notes-jj, @sdmoko, @zakrhol for reporting issues, contributing tests and fixes! Thanks! :smiley:
Gowtham Kittusamy
@gowtk
Hi am using cron util 5.0.5 and CronDescriptor showing wrong summary
Quartz expression '0 25 8 18 1/3 ? *' is described as 'at 08:25 at 18 day every March months'
In https://www.freeformatter.com/cron-expression-generator-quartz.htmlAt 08:25:00am, on the 18th day, every 3 months starting in January
jmrozanec
@jmrozanec
@gowtk thank you for reporting this. Won't you mind to open an issue at cron-utils and perhaps send us a PR with the test? Thanks! :smile:
jmrozanec
@jmrozanec
@/all we are proud to announce we have 2 new releases! 6.0.5 with all new fixes and enhancements still compatible with JDK7, and 7.0.0 which brings back JDK8 support, removes the Guava and org.threeten dependencies. Kudos to @SvenssonWeb, @meincs, @amanteaux and @Naxxos84 !
Xin Wang
@lovepoem
:clap: :clap: :clap:
Francis De Brabandere
@francisdb
👌
Matthias
@Naxos84
@jmrozanec I just created a PR for the checkstyle file for eclipse IDE. This file is taking the src/main/resources/checkstyle.xml
Matthias
@Naxos84
but obviously the travis build is failing but I don't know why.
jmrozanec
@jmrozanec
@Naxos84 thanks! will merge soon! Do not worry about the travis build: fails because as part of the build, we have an automatic release of SNAPSHOT versions, which works only when building master branch and that behavior was not adjusted yet. Thanks!
Matthias
@Naxos84
ok.
jmrozanec
@jmrozanec
@Naxos84 Merged!
Fredrik Svensson
@SvenssonWeb
@jmrozanec What needs to be added to fix these issues in Travic CI? As I see it, it causes all commits to fail right?
jmrozanec
@jmrozanec
@SvenssonWeb we may need to change the travis configurations for PR branches. Currently is setup in such a way, that any commit merged to master automatically performs a SNAPSHOT release to Maven central. But this is configured to work just on master, and thus fails when building PRs. Is not critical, but definitely we would like to see this fixed in some point of time. If someone can look into this, would be great.
Fredrik Svensson
@SvenssonWeb
@jmrozanec I'll take a swing at it. Adding an issue as well.
jmrozanec
@jmrozanec
@SvenssonWeb thanks!
Sorin Iulus
@soriniulus
Hello, I found a problem with the CronParser: an error is thrown when trying to parse the expression "0 0 0 24 1/12 ?". Any thoughts on this? This is a valid cron expression.
Matthias
@Naxos84
Hi sorin. What does the error message say?
Sorin Iulus
@soriniulus
Exception in thread "main" java.lang.IllegalArgumentException: Failed to parse '0 0 0 24 1/12 ?'. Period 12 not in range (0, 11]
at com.cronutils.parser.CronParser.parse(CronParser.java:100)
at com.tangoe.optimus.util.CronTest.main(CronTest.java:20)
Caused by: java.lang.IllegalArgumentException: Period 12 not in range (0, 11]
at com.cronutils.model.field.expression.visitor.ValidationFieldExpressionVisitor.isPeriodInRange(ValidationFieldExpressionVisitor.java:176)
at com.cronutils.model.field.expression.visitor.ValidationFieldExpressionVisitor.visit(ValidationFieldExpressionVisitor.java:125)
at com.cronutils.model.field.expression.visitor.ValidationFieldExpressionVisitor.visit(ValidationFieldExpressionVisitor.java:66)
at com.cronutils.model.field.expression.FieldExpression.accept(FieldExpression.java:44)
at com.cronutils.model.Cron.validate(Cron.java:92)
at com.cronutils.parser.CronParser.parse(CronParser.java:98)
... 1 more
Matthias
@Naxos84
That is what I was expecting before checking that your expression was valid at freeformatter.com
Why dont you use 0 0 0 24 1 ?
jmrozanec
@jmrozanec
@soriniulus may we ask you which cron definition do you use? Thank you for reporting this - may we ask you to file an issue with a test?
jmrozanec
@jmrozanec
@soriniulus we filed the issue under #281 Thank you for reporting it!
Sorin Iulus
@soriniulus
Hello, I added a comment under opened issue. You are right CronType.QUARTZ is used. I'm not sure if I can use 0 0 0 24 1, I'm not interesting in triggering the job in January or a specific month for that matter, I'm interested that that job is triggered every other n-th month .
Matthias
@Naxos84
If you check "0 0 0 24 1/12 ? " at https://www.freeformatter.com/cron-expression-generator-quartz.html the next execution dates are: Wed Jan 24 00:00:00 UTC 2018
Thu Jan 24 00:00:00 UTC 2019
Fri Jan 24 00:00:00 UTC 2020
Sun Jan 24 00:00:00 UTC 2021
Mon Jan 24 00:00:00 UTC 2022
Tue Jan 24 00:00:00 UTC 2023
Wed Jan 24 00:00:00 UTC 2024
Fri Jan 24 00:00:00 UTC 2025
Could please explain your usecase a little bit more. If possible give some expected "next execution dates"
Sorin Iulus
@soriniulus
One of the scenarios we need for our scheduler is to be able to define the recurrence as: "on the X-th day every other N-th months".
These two values X and N are user-input fields in the UI, X ranging from 1 to 28 and N ranging from 1 to 12.
The next execution date is computed based on the last succesful execution date, so for example:
If the last execution date was 2017-11-24 and the job should run on the 24th every other 3 months, then the next execution dates should be:
2018-02-24
2018-05-24
2018-08-24
Matthias
@Naxos84
@soriniulus ok. that makes it a little bit more clear. One more question:
Is "every other 12 month" OR "every other 13 months" OR even more really a valid use case?
Sorin Iulus
@soriniulus
@Naxos84 The short answer is "no". At least for the moment. But we need to cover these scenarios as well... you know clients ;)
Matthias
@Naxos84
you know clients Yes I do know. ;)
jmrozanec
@jmrozanec
@soriniulus can we add this details to another issue? The later description seems a feature request :smile: Thanks!
Sorin Iulus
@soriniulus
yes, of course :)
Sorin Iulus
@soriniulus
still, "every 13 months" won't be the case, we will not implement that, so for now we only need the 12 months recurrence
jmrozanec
@jmrozanec
@soriniulus no problem! If this is something we can tackle, please open an issue describing the case and tag it as a feature request :smile:
Matthias
@Naxos84
something seems to be wrong with the sonar-scanner command in travis build.
jmrozanec
@jmrozanec
@Naxos84 we will review the issue. Thanks!
Matthias
@Naxos84
sonar-scanner still exits with code 127
maybe consider adding jacoco-maven-plugin to pull requests too!?
Also consider using https://docs.travis-ci.com/user/sonarcloud/#SonarQube-Scanner-for-Maven
in .travis.yml instead of "sonar-scanner"
jmrozanec
@jmrozanec
@Naxos84 yesterday we reviewed the settings, included the jacoco goals along with the sonar-scanner and everything worked ok. If now is failing to build, please review the changes.
jmrozanec
@jmrozanec
@/all we reached 100 forks! 🎉🎉🎉🎉 Thank you all for supporting cron-utils! :smile:
Xin Wang
@lovepoem
👏👏👏
Matthias
@Naxos84
Happy new year to everyone!
jmrozanec
@jmrozanec
@/all Happy New Year! :smile:
jmrozanec
@jmrozanec
@/all New release available! Details available here Many thanks to @Naxos84 @SvenssonWeb @rhanton @jpotts2 @tanyona @meincs @curioustechizen ! :smile:
Anshul Garg
@garganshu
is there any cron-utils library which i can use in android studio
for my android project?
jmrozanec
@jmrozanec
@garganshu sure! You can use the versiones 6.x.y That should work well. Please let us know if you have any issues. You can expect a new release soon with the fix proposed at #309
Anshul Garg
@garganshu
I m new to android. So, can you tell me the steps on how to add on the library in my project?