>
> I can successfully invoke the bteq tool via command line with the task
> below, but I am struggling with how to simulate the '<' redirection.
>
> task coreBuildDatabase( type: Exec ) {
> commandLine = ['bteq']
> }
>
> Does anyone have any ideas?
>
Set the 'standardInput' property. Didn't try this, but it should work:
task coreBuildDatabase(type: Exec) {
commandLine = ['bteq']
standardInput = new FileInputStream('install.sql) // or maybe
file('install.sql'), file(...) is Gradle method
}
LT
