I have this in my build.xml to change my api url from localhost to the production url:

Code:
    <target name="-after-build">
        <replaceregexp
                file="${basedir}/build/production/MyApp/app.js"
                match="http://localhost:3000"
                replace="https://myproductionapp.com" />
    </target>
It doesn't seem to be running this though.is there anything I'm doing wrong? I could have sworn this was working a while ago, but I moved up a couple version.