ErickErickson commented on issue #1186: LUCENE-9134: Port ant-regenerate tasks 
to Gradle build
URL: https://github.com/apache/lucene-solr/pull/1186#issuecomment-576393583
 
 
   Thanks for the tip. Maybe after banging my head against this wall for a 
couple of hours I finally understand what the doLast{} bit is about. I’d broken 
out some tasks in the gradle file to do things like clean regenerated files 
first but _not_ wrapped them in doLast{} blocks, so they were being executed at 
config time, and removing things that subsequently didn’t get rebuilt because 
there was no execution phase on that task.
   
   Straightened out now.
   
   You know, if I actually read the damn output when I added printlns into the 
tasks under the "> Configure project :lucene:core” section and figured it out 
faster. Siiigggghhhh..
   
   Erick
   
   
   > On Jan 20, 2020, at 1:33 PM, Dawid Weiss <notificati...@github.com> wrote:
   > 
   > Looking at the patch this task should not be triggered when you run 
./gradlew assemble... You don't need to complicate it with onlyIf or any such 
directives - a task is only triggered if it's attached to something executed in 
the task graph.
   > 
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   > 
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to