Apply multiple refaster templates in javac

81 views
Skip to first unread message

Srilakshmi Sankar

unread,
Aug 17, 2021, 8:29:22 AM8/17/21
to error-prone-discuss
Hi,

I am using v2.8.0 of error-prone, I have defined 2 to 3 refaster templates and wish to apply all of them in single command.

But able to run only one at a time.
Example: javac -cp ../lib/servlet.jar;../lib/javax.ws.rs-api-2.1.1.jar -XDcompilePolicy=byfile -processorpath C:/work/error-prone-2.8.0/core/target/error_prone_core-2.8.0-with-dependencies.jar "-Xplugin:ErrorProne -XepPatchChecks:refaster:filepath_rule.refaster -XepPatchLocation:sample/filepath" sample/Input_Path_Not_Canonicalized.java

Pl let me know reg below
1. How to apply multiple refaster rules in javac
2. How to apply refaster templates on multiple files in a  project folder
3. How to add refaster rule checks in maven build
4. Is it possible to get IN_PLACE modification on multple files applying multple rules

Thanks
Srila
Reply all
Reply to author
Forward
0 new messages