Deal with the log4j file at compile time