mocobeta opened a new pull request #479:
URL: https://github.com/apache/lucene/pull/479


   There are two Gradle tasks named "run": the one is defined in the 
"benchmark" project, and another one is in the "luke" project.
   
   `gradlew tasks` shows:
   ```
   Utility launchers tasks
   -----------------------
   run - Launches (spawns) Luke directly from the build process.
   ```
   
   When I run `gradlew run`, this actually invokes the `run` task that belongs 
to "benchmark" (and fails).
   ```
   > Task :lucene:benchmark:run FAILED
   Running algorithm from: 
/mnt/hdd/repo/lucene/lucene/benchmark/conf/micro-standard.alg
   ------------> config properties:
   analyzer = org.apache.lucene.analysis.standard.StandardAnalyzer
   compound = true
   content.source = 
org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource
   directory = FSDirectory
   doc.stored = true
   doc.term.vector = false
   doc.tokenized = true
   docs.dir = reuters21578
   log.queries = true
   log.step = 500
   max.buffered = buf:10:10:100:100
   merge.factor = mrg:10:100:10:100
   query.maker = org.apache.lucene.benchmark.byTask.feeds.ReutersQueryMaker
   task.max.depth.log = 2
   work.dir = data
   -------------------------------
   java.lang.RuntimeException: java.nio.file.NoSuchFileException: 
data/reuters21578
           at 
org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource.setConfig(ReutersContentSource.java:70)
           at 
org.apache.lucene.benchmark.byTask.PerfRunData.<init>(PerfRunData.java:126)
           at 
org.apache.lucene.benchmark.byTask.Benchmark.<init>(Benchmark.java:57)
           at 
org.apache.lucene.benchmark.byTask.Benchmark.exec(Benchmark.java:113)
           at 
org.apache.lucene.benchmark.byTask.Benchmark.main(Benchmark.java:87)
   ```
   
   This quick-fix resolves the naming conflict. There could be a proper way to 
handle such conflicts, though.
   
   ```
   ./gradlew tasks
   
   Utility launchers tasks
   -----------------------
   runLuke - Launches (spawns) Luke directly from the build process.
   ```
   
   To avoid a too generic name for each task seems to be a good practice.
   https://discuss.gradle.org/t/what-occur-on-a-task-name-conflict/11693
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to