You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "shaikhu (via GitHub)" <gi...@apache.org> on 2023/04/10 11:16:59 UTC

[GitHub] [lucene] shaikhu commented on a diff in pull request #12201: Github 10633 Update Javadoc comment to mention gradle instead of ant

shaikhu commented on code in PR #12201:
URL: https://github.com/apache/lucene/pull/12201#discussion_r1161643343


##########
lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java:
##########
@@ -147,9 +147,10 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
   //
   // -----
   //
-  // To generate backcompat indexes with the current default codec, run the following ant command:
-  //  ant test -Dtestcase=TestBackwardsCompatibility -Dtests.bwcdir=/path/to/store/indexes
-  //           -Dtests.codec=default -Dtests.useSecurityManager=false
+  // To generate backcompat indexes with the current default codec, run the following gradle
+  // command:
+  //  gradlew test -Dtestcase=TestBackwardsCompatibility -Dtests.bwcdir=/path/to/store/indexes

Review Comment:
   > I don't think `-Dtestcase` works with gradle, please refer to this: https://stackoverflow.com/questions/22505533/how-to-run-only-one-unit-test-class-using-gradle
   > 
   > Also maybe give the command a try to verify your change?
   
   Yes, you're correct it `-Dtestcase` doesn't work with Gradle. Testing locally the following command worked
   ```gradlew test --tests  TestBackwardsCompatibility```.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org