eumesmo

JavaFX_deployer_For_class

Aug 1st, 2015
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.45 KB | None | 0 0
  1. @echo off
  2. setlocal ENABLEDELAYEDEXPANSION
  3. setlocal  ENABLEEXTENSIONS
  4. ::jfx like
  5. ::started pakages javafx 2.2.8
  6. ::inicializaçao de classes simples
  7. ::bem10jfx.blogspot.com
  8. ::knbjfxbr.blogspot.com
  9. :ini
  10. if exist *.class erase /f *.class
  11. if exist a.txt erase /f a.txt
  12. cls
  13. ^echo.
  14. ^echo.
  15. set set =set &set echo=echo%set ultimaOcr=ultima opçao %EscOpc%
  16. ^%echo%. %ultimaOcr%
  17. ^set javafxc=javac.exe
  18. ^set javafxHight=java.exe
  19. ^echo. Escolha as opçoes  
  20. ^echo.
  21. ^echo. Criar Class[1] CriarJar[2]
  22. ^echo. Iniciar Fonte [3]
  23. ^echo.
  24. set /p EscOpc=
  25. if "%EscOpc%"=="1" goto oneInst
  26. if "%EscOpc%"=="2" goto twoInst
  27. if "%EscOpc%"=="3" goto treInst
  28. @if errorlevel 1 cls&echo.&echo. error na ocorrencia&pause&goto ini
  29. pause>null
  30. :oneInst
  31. set /p EscOpc1="Arraste a fonte aqui_"
  32. call  %~ftza1 :clss&goto ini
  33. :twoInst
  34. :: process earthrise
  35. :treInst
  36. set /p EscOpc3="Arraste a fonte aqui_"
  37. echo inicianado leitura!
  38. call  %~ftza1 :initStarted&goto ini
  39. pause
  40. goto ini
  41. :clss
  42. "C:\Program Files\Java\jdk1.8.0_60\bin\%javafxc%" -d . "%EscOpc1%"
  43. dir /b "*.class"
  44. pause>nul&^pause
  45. goto :EOF
  46. :initStarted
  47. echo Atenção classe Inicializada
  48. "C:\Program Files\Java\jdk1.8.0_60\bin\%javafxc%" -d . "%EscOpc3%"
  49. dir /b "*.class">>a.txt
  50. FOR /F %%k IN ( a.txt ) DO ( echo.&^set entry=%%k
  51. ^%echo%. --package--%entry:~0,5%---classe--%%k
  52. )
  53. "C:\Program Files\Java\jdk1.8.0_60\bin\%javafxHight%"  "%entry:~0,5%"
  54. echo leitura concluida
  55. pause>nul&^pause
  56. goto EOF
  57. exit
  58. :EOF
Advertisement
Add Comment
Please, Sign In to add comment