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:45 UTC

[lucene-solr] branch jira/SOLR-13452_gradle_3 updated (2ab989d -> 23cc01b)

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a change to branch jira/SOLR-13452_gradle_3
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git.


    from 2ab989d  SOLR-13452: First pass at a testTimes target.
     new 0eeec26  SOLR-13452: Add group and desc for email tokenizer and give it it's own clean task since it's so expensive to build.
     new 23cc01b  SOLR-13452: Add group and desc for testTimes task.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 build.gradle                        |  3 ++-
 lucene/analysis/common/build.gradle | 19 ++++++++++++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)


[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.

Posted by ma...@apache.org.
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
 }


[lucene-solr] 02/02: SOLR-13452: Add group and desc for testTimes task.

Posted by ma...@apache.org.
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 23cc01b7f33ba16755bf37143d11d0f8b8c3fb1f
Author: markrmiller <ma...@apache.org>
AuthorDate: Sat Jun 1 19:18:29 2019 -0500

    SOLR-13452: Add group and desc for testTimes task.
---
 build.gradle | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index e6f801a..f603aa5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -135,7 +135,8 @@ configure(rootProject) {
   
   
   task testTimes(type: org.apache.lucene.gradle.JUnit4) {
-
+    group = 'Tests'
+    description = "Show the slowest tests (averages)."
   }
   
 }