Commit Graph

142 Commits

Author SHA1 Message Date
Daniel Halperin 62184c38eb Always refresh grammars with changed dependencies
The buildContext.hasDelta function is ignorant of importants. Since we have more advanced
dependency analysis, stop relying on hasDelta and instead just refresh grammars where we
know the dependencies have changed.
2017-07-19 18:03:36 -07:00
Daniel Halperin 7a882f7d5b Add test for multiple imports 2017-07-11 20:59:01 -07:00
Daniel Halperin d58e7e31bf GrammarDependencies: include all imports
For some reason, the grammar import dependency analysis only included
the first import on a line. This does not work so well...
2017-07-11 20:59:01 -07:00
Daniel Halperin a9dfca3666 isDependencyChanged: consider equal timestamps as out of date
Some systems have low-granularity timestamps, so that file modification
dates are rounded to seconds. This causes false negatives when detecting
if a grammar needs to be recompiled if it changes a second after producing
its tokens.

This likely only causes an issue for tests that frequently mutate files;
real humans are unlikely to compile within 1s of changing a grammar.
Still, this seems a cleaner solution that hacking the failing test to use
force a different modification time, as there will almost never be false
positives.

This fixes the failing test after making the test correct.
2017-07-11 20:59:01 -07:00
Daniel Halperin b09e30c6ca Make the lexer test possible to pass
Adding a newline should actually not change the generated lexer.
2017-07-11 20:59:01 -07:00
Daniel Halperin 41889939d6 Make the Antlr4MojoTest restore state between tests
Otherwise, we could pick up stale changes from prior tests.
2017-07-11 20:42:41 -07:00
parrt 62baf4bd0a [maven-release-plugin] prepare for next development iteration 2017-03-30 14:11:59 -07:00
parrt d4d7e3d3bc [maven-release-plugin] prepare release 4.7 2017-03-30 14:11:49 -07:00
parrt b5648f405b tweak documentation about various targets 2017-03-30 10:44:28 -07:00
parrt 6215f18ec3 rename 4.6.1 to 4.7 everywhere 2017-02-23 14:48:58 -08:00
Sam Harwell 5d4efafe8e Support using the Maven plugin to generate test sources
Fixes #1579
2017-01-07 10:58:43 -06:00
parrt 23313ee44e [maven-release-plugin] prepare for next development iteration 2016-12-15 14:25:41 -08:00
parrt aacd2a2c95 [maven-release-plugin] prepare release 4.6 2016-12-15 14:25:36 -08:00
parrt 71e926e143 set version 2016-12-10 15:41:31 -08:00
parrt 2021f59477 clean up links 2016-12-10 15:38:12 -08:00
parrt 2c99f187a0 make it read "Copyright (c) 2012-2016 The ANTLR Project" 2016-12-08 11:43:06 -08:00
parrt 1b1a9862c4 contributors->authors 2016-12-08 11:43:06 -08:00
parrt 61e8eba4fc fix typo 2016-12-08 11:43:06 -08:00
parrt 891915de84 Update copyright on java, xml files. Make BSD license conform to standard. 2016-12-08 11:40:30 -08:00
Terence Parr 8ed1105290 Merge pull request #1353 from marcohu/fix_1233
Grammar dependency management for Maven plugin
2016-11-21 11:21:58 -08:00
parrt df89ad6180 don't require output encoding in antlr4 mvn plugin 2016-11-21 11:05:31 -08:00
Marco Hunsicker cb785d5d1e Use method to strip quotes. This could be factored out as it seems generally usefull 2016-11-20 19:21:54 +01:00
Marco Hunsicker 89e3f063c9 Remove path from grammar name when present 2016-11-20 19:19:53 +01:00
Marco Hunsicker d9af7896a7 Don't require imports directory 2016-11-20 19:05:14 +01:00
Marco Hunsicker bfc8bf0459 Ensure valid output encoding 2016-11-20 19:03:46 +01:00
Marco Hunsicker a077d3d072 Merge branch 'master' of https://github.com/antlr/antlr4 into fix_1233 2016-11-20 12:49:39 +01:00
parrt 34f0c66a89 Fixes #1342. 2016-11-19 16:00:17 -08:00
Marco Hunsicker 31f3a57a6e Rewritten test to make it threadsafe (and Travis happy) 2016-11-18 20:19:23 +01:00
Marco Hunsicker 81efb0e366 Merge branch 'master' of https://github.com/antlr/antlr4 into fix_1233 2016-11-18 17:53:54 +01:00
Marco Hunsicker 00347217ed More cleanup; use save Collection comparison, fix Javadoc 2016-11-17 23:27:09 +01:00
Marco Hunsicker 5f5a8949f6 Handle removed dependency 2016-11-17 23:18:04 +01:00
parrt 08e9776a4a shift template-based runtime test to legacy, new mechanism uses annotation to get multi-line strings into java. all tests pass minus about 15 in C# 2016-11-15 11:08:19 -08:00
Marco Hunsicker 068ff9d3d6 Cleanup; explicitly handle checksum creation failure 2016-11-14 17:11:48 +01:00
Marco Hunsicker 11daaf9333 Use Java 7 compatible lifecycle plugin 2016-11-14 17:09:15 +01:00
Marco Hunsicker 5d8dcf019d Adds unit tests for the dependency management 2016-11-14 00:37:41 +01:00
Marco Hunsicker 7944fafcb2 Adds grammar dependency management to have grammars processed when references change 2016-11-14 00:35:27 +01:00
Marco Hunsicker c5f73abb44 Factor out helper method to make it reusable 2016-11-14 00:33:06 +01:00
parrt 95c850e5f8 set version in prep for 4.6 2016-11-05 16:48:36 -07:00
parrt b92f22769e [maven-release-plugin] prepare for next development iteration 2016-03-30 16:25:49 -07:00
parrt 567fcc6311 [maven-release-plugin] prepare release antlr4-master-4.5.3 2016-03-30 16:25:45 -07:00
parrt 08f3ad798e [maven-release-plugin] prepare for next development iteration 2016-01-29 15:29:01 -08:00
parrt c5a296596d [maven-release-plugin] prepare release 4.5.2 2016-01-29 15:28:57 -08:00
parrt fa6f674e33 [maven-release-plugin] rollback the release of 4.5.2 2016-01-29 15:27:40 -08:00
parrt 009f3cac3a [maven-release-plugin] prepare release 4.5.2 2016-01-29 15:27:19 -08:00
parrt 6b31ceaa9d [maven-release-plugin] rollback the release of 4.5.2 2016-01-29 15:26:02 -08:00
parrt 6b3f9816cb [maven-release-plugin] prepare for next development iteration 2016-01-29 14:13:15 -08:00
parrt b446c50722 [maven-release-plugin] prepare release 4.5.2 2016-01-29 14:13:11 -08:00
Josh Chase 7d478b18ae Only run the maven plugin when needed. 2016-01-13 16:32:59 -08:00
parrt c07aa4ede1 [maven-release-plugin] prepare for next development iteration 2015-08-20 12:11:58 -07:00
parrt 3611fde621 [maven-release-plugin] prepare release 4.5.1-1 2015-08-20 12:11:55 -07:00