@echo off if NOT "%R_HOME%"=="" GOTO rfound :norfound echo [Script] R_HOME not found > debug.txt 2>&1 goto startisis :rfound echo [Script] R_HOME found with value %R_HOME% > debug.txt 2>&1 echo [Script] Contenu de %R_HOME%\bin >> debug.txt 2>&1 dir "%R_HOME%\bin" >> debug.txt 2>&1 goto startisis :startisis echo [Script] Isis starting... echo [Script] Path = %Path% >> debug.txt 2>&1 java -Xmx1024M -Djava.library.path=jri -DR.type=jni -jar ${project.build.finalName}.${project.packaging} %1 %2 %3 %4 %5 %6 %7 %8 %9 >> debug.txt 2>&1 goto end :end