fix log4j.properties, return compilation outcome as string