Ant replace task doesn't run

Hello,

I have a problem with the ant plugin in Idea 8.1. I am using a complex ant script to build the project which works just fine from command line. The same script doesn't work when run from Idea. It always blocks at a classic ant "replace" task. I even told it to use the same ant environment I was using in command line and still nothing.. Any ideas?

Here is the task in question:

        <replace
            file="build/server/WEB-INF/classes/hibernate.cfg.xml"
            propertyFile="src/environment.properties">
              <replacefilter
                token="@connection.url@"
                property="connection.url.${environment}" />
              <replacefilter
                token="@connection.driver_class@"
                property="connection.driver_class.${environment}" />
              <replacefilter
                token="@connection.username@"
                property="connection.username.${environment}" />
            <replacefilter
                token="@connection.password@"
                   property="connection.password.${environment}" />
            <replacefilter
                token="@dialect@"
                   property="dialect.${environment}" />           
        </replace>      

0
1 comment

I am having the same problem in Idea 8.1.3 and in Idea 9M1.  Does anybody have an idea as to what is going on?  I am using ant 1.7.1.

0

Please sign in to leave a comment.