extracted custom rules from build.xml to custom_rules.xml and updated build.xml to r22