I've got a groovy script that works when I run it from within the ODI Studio 12.2.1. But I want to execute this script from the Windows command line for automated deployment, without use of ODI studio. I've found via google that in previous versions people either just used command "groovy <scriptname>", of they used java like on this forum: How do I run Groovy scripts as Java, from the command line? - Stack Overflow .
I've also tried setting the classpath like on this forum https://community.oracle.com/thread/3621145.
However when I try commands like this:
%ODI_JDK_HOME%>java -cp K:\apps\ODI\odi\sdk\lib\;K:\apps\ODI\oracle_common\modules\oracle.jdbc;K:\apps\ODI\oracle_common\modules\oracle.jps;"c:\Program Files\Java\jdk1.8.0_71\bin";. K:\ODI_deploy\applyPatchDAR.groovy
The following error is returned (like the above mentioned stack overflow forum post):
Error: Could not find or load main class K:\ODI_deploy\applyPatchDAR.groovy
I've also tried adding these paths to the %PATH%.
K:\apps\ODI\odi\sdk\lib;
K:\apps\ODI\oracle_common\modules\oracle.jdbc;
K:\apps\ODI\oracle_common\modules\oracle.jps;
Can anybody tell me how I should execute this script exactly? From which location, which classpath, path, etc. Or do I have to download groovy seperately? Thanks in advance.
Regards Eveline