groovy execute process doesnt work
<p>i have the following groovy which for some reasons does not seems to be executing. If i paste the command directly on console then that command runs fine and give results.</p>

<pre><code>def process  = "find . -name '*.java' -o -name '*.jsff' -o -name '*.jspx' -not -path '*/noship/*' | xargs grep '${finalStr}'".execute()
    process.text.eachLine{
        println it  
    }
</code></pre>

<p>what is wrong here?</p>