JeetKunDoug commented on code in PR #14:
URL: 
https://github.com/apache/cassandra-analytics/pull/14#discussion_r1346297833


##########
build.gradle:
##########
@@ -68,9 +77,10 @@ tasks.idea.dependsOn(tasks.copyInspections)
 
 tasks.register('buildIgnoreRatList', Exec) {
   description 'Builds a list of ignored files for the rat task from the 
unversioned git files'
-  commandLine 'bash', '-c', 'git clean --force -d --dry-run -x | cut -c 14-'
+  commandLine 'bash', '-c', 'git clean --force -d --dry-run -x | grep -v 
"Would skip" | cut -c 14- && ' +
+          'git clean --force -d --dry-run -x | grep "Would skip" | cut -c 
23-\n'
   doFirst {
-    standardOutput new FileOutputStream("${buildDir}/.rat-excludes.txt")
+    standardOutput new FileOutputStream(".rat-excludes.txt")

Review Comment:
   For the historical record, the other reason I had originally changed this 
was if you did a `gradle clean` followed by `gradle rat` it would just fail 
because the build directory didn't exist - I addressed that in the build.gradle 
by ensuring the build directory exists so even if you just run `./gradlew rat` 
it'll work.



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