◈ compile (Eclipse Builder Configuration)
compile_java.cmd ${project_loc} 864 ${project_classpath} utf-8
@setlocal @echo off pushd %~1 set jdk8_32="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.32bit_v1.8.0\bin" set jdk8_64="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.64bit_v1.8.0\bin" set jdk11_32="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.32bit_v11.0\bin" set jdk11_64="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.64bit_v11.0\bin" set jdk17_32="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.32bit_v17.0\bin" set jdk17_64="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.64bit_v17.0\bin" if %~2 == 832 ( set jdk_home=%jdk8_32% ) else if %~2 == 864 ( set jdk_home=%jdk8_64% ) else if %~2 == 1132 ( set jdk_home=%jdk11_32% ) else if %~2 == 1164 ( set jdk_home=%jdk11_64% ) else if %~2 == 1732 ( set jdk_home=%jdk17_32% ) else if %~2 == 1764 ( set jdk_home=%jdk17_64% ) forfiles /p %~1\src /s /m *.java /c "cmd /c %jdk_home:~1,-1%\javac -d %3 -encoding %4 @path -verbose" exit |
◈ archive (Eclipse External Build Tool Configuration)
archive_class.cmd ${project_loc} 864 ${project_name} ${java_type_name} ${project_classpath}
@setlocal @echo off pushd %~1 set jdk8_32="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.32bit_v1.8.0\bin" set jdk8_64="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.64bit_v1.8.0\bin" set jdk11_32="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.32bit_v11.0\bin" set jdk11_64="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.64bit_v11.0\bin" set jdk17_32="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.32bit_v17.0\bin" set jdk17_64="C:\ECLIPSE\JDK\Eclipse\temurin.jdk.hotspot.windows.64bit_v17.0\bin" if %~2 == 832 ( set jdk_home=%jdk8_32% ) else if %~2 == 864 ( set jdk_home=%jdk8_64% ) else if %~2 == 1132 ( set jdk_home=%jdk11_32% ) else if %~2 == 1164 ( set jdk_home=%jdk11_64% ) else if %~2 == 1732 ( set jdk_home=%jdk17_32% ) else if %~2 == 1764 ( set jdk_home=%jdk17_64% ) if not exist %~1\jar\ ( mkdir %~1\jar ) %jdk_home:~1,-1%\jar cvfe %~1\jar\%~3.jar %~4 -C %~5 . exit |
'Programming' 카테고리의 다른 글
Eclise's the variables (1) | 2023.11.22 |
---|