HannesWell commented on pull request #124: URL: https://github.com/apache/felix-dev/pull/124#issuecomment-1003575734
> > > > But except this case, I don't know how to disable the write of compiled class files into target/classes directory? > > > > > > > > > I mean that writing into a directory also updates the directory timestamp! > > > > > > Ah, sorry I didn't understand that. That's not a problem because the `newer()` methods walks the entire file-tree and checks each (transitively) contained file if a checked path is a directory. For windows I don't even know if it is possible to update the timestamp of the containing directory if a contained element changes. At least by default this does not happen. > > Okay it seems I misread your comment then, I though you have proposed to only check the timestmap of the folder instead of its contents. No no. Sorry for being unclear. My proposal is to skip the `buildContext.newScanner(directory)` in anyJavaSourceFileTouchedSinceLastBuild() (and maybe rename the method accordingly), which scans for new java files since the last build (if I understood the doc correctly). But this should go into a separate clean-up change as suggested in my first comment. -- 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]
