[refactoring] Change access to publishing properties

Make code more readable changing from "project.ext.get('P')" to
"project.properties['P']", thus this avoids exceptions that would be
thrown and affect other tasks case some property was not found.