You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2019/06/02 00:18:46 UTC
[lucene-solr] 01/02: SOLR-13452: Add group and desc for email
tokenizer and give it it's own clean task since it's so expensive to build.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch jira/SOLR-13452_gradle_3
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 0eeec26b362672bbbe34eca4b1456a54336c85cd
Author: markrmiller <ma...@apache.org>
AuthorDate: Sat Jun 1 19:18:12 2019 -0500
SOLR-13452: Add group and desc for email tokenizer and give it it's own clean task since it's so expensive to build.
---
lucene/analysis/common/build.gradle | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/lucene/analysis/common/build.gradle b/lucene/analysis/common/build.gradle
index 6e082ee..69cc292 100644
--- a/lucene/analysis/common/build.gradle
+++ b/lucene/analysis/common/build.gradle
@@ -96,6 +96,9 @@ task jflexClassicAnalyzer(type: org.apache.lucene.gradle.JFlex) {
}
task jflexUAX29URLEmailTokenizer(type: org.apache.lucene.gradle.JFlex) {
+ group = 'Build Regenerate'
+ description = "Generates UAX29URLEmailTokenizer using jflex."
+
inputDir = new File("${projectDir}/src/java/org/apache/lucene/analysis/standard")
fileName = "UAX29URLEmailTokenizerImpl"
disableBufferExpansion = true
@@ -113,7 +116,7 @@ task cleanJflex() {
doLast {
ant.delete(failonerror: 'false') {
- // we exclude UAX29URLEmailTokenizerImpl until it is added back to regenerate
+ // we exclude UAX29URLEmailTokenizerImpl until/unless it is added back to regenerate
ant.fileset(dir: "src/java/org/apache/lucene/analysis/standard", includes: "**/*.java", excludes: "**/UAX29URLEmailTokenizerImpl.java") {
ant.containsregexp(expression: "generated.*by.*JFlex")
}
@@ -131,6 +134,20 @@ task cleanJflex() {
}
}
+task cleanJflexUAX29URLEmailTokenizer() {
+ group = 'Build Regenerate'
+ description = "Removes jflex generated artifacts."
+
+ doLast {
+ ant.delete(failonerror: 'false') {
+ // we exclude UAX29URLEmailTokenizerImpl until it is added back to regenerate
+ ant.fileset(dir: "src/java/org/apache/lucene/analysis/standard", includes: "**/UAX29URLEmailTokenizerImpl.java") {
+ ant.containsregexp(expression: "generated.*by.*JFlex")
+ }
+ }
+ }
+}
+
task regenerate {
dependsOn runJflex, unicodeData
}