generate.bat 925 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @call "%~dp0config.bat" 0 > nul
  2. if [%~1]==[] (
  3. echo Aufruf: call generate.bat Beispiel.xml
  4. goto :eof
  5. )
  6. set DATEI=%XML%\%~n1.xml
  7. set GENLOG=%TASKS%\logs\%~n1.gen.log
  8. set TYP=Portal
  9. echo %1 | find /I "ver" > nul 2> nul && set TYP=Versand
  10. call teste_verzeichnis.bat %JAVA%
  11. call teste_verzeichnis.bat %DATEI%
  12. if errorlevel 42 exit /B 1
  13. echo == %TYP% "%~n1" ==
  14. %PHP%\php Tools\run.php generate duration2 %DATEI%
  15. if exist %GENLOG% (
  16. taskkill.exe /F /IM pwrplay.exe 2> nul
  17. taskkill.exe /F /IM java.exe 2> nul
  18. )
  19. :webcreator
  20. cd /d %PORTAL%\Web_MIS_Creator
  21. echo.
  22. echo * Erstelle Grafiken, PDF-Dateien und Scorecards
  23. %JAVA%\java.exe -cp jacob.jar;xerces.jar;Mail.jar;GlobalCube.jar;ij.jar de.globalcube.Generate %DATEI% ALL 1> %GENLOG% 2>&1 && echo * %TYP% erstellt.
  24. cd /d "%~dp0"
  25. :summary
  26. %PHP%\php Tools\run.php generate summary2 %DATEI% %TASKS%\logs\%~nx1.log
  27. echo.
  28. echo Fertiggestellt: %TIME:~0,5%
  29. echo.
  30. goto :eof