개발
-
[Java] Creating a Fat Jar or Executable jar in Gradle개발 2019. 7. 26. 19:49
Dependencies가 모두 포함된 jar를 만들어야할 때는 아래와 같이 dsl을 추가한다. reference1: https://www.baeldung.com/gradle-fat-jar Creating a Fat Jar in Gradle | Baeldung Find out how to build a fat jar using Gradle. www.baeldung.com reference2: https://gyrfalcon.tistory.com/entry/Gradle-Executable-jar Gradle 에서 Executable jar 만들기 Gradle 프로젝트에서 Executable Jar를 만드는 방법!! 1. Main class를 만든다. 간단하게 콘솔에 텍스트를 찍는 메인 클라스를 만들었다. d..
-
[Windows] 윈도우 파일 및 폴더 삭제 명령어개발 2019. 7. 26. 19:43
reference: https://www.ghacks.net/2017/07/18/how-to-delete-large-folders-in-windows-super-fast/ How to delete large folders in Windows super fast - gHacks Tech News Find out how to delete huge folders with thousands of files and folders super fast on any version of the Microsoft Windows operating system. www.ghacks.net DEL /F/Q/S *.* > NUL /F -- forces the deletion of read-only files. /Q -- enab..
-
[Java] System Properties개발 2019. 7. 26. 14:52
java.version : Java 버전 java.vendor : Java 공급자 java.vendor.url : Java 공급자 URL java.home : Java가 위치한 디렉터리 java.class.version : Java 클래스의 버전 ( 48(1.4), 49(1.5), 50(1.6), 51(1.7), 52(1.8) ... java.class.path : App ClassLoader에 로딩된 클래스 경로 java.ext.dir : Ext ClassLoader에 로드할 클래스가 위치한 경로 os.name : OS명 의 이름 os.arch : OS 아키텍처 os.version : OS 버전 file.separator : 파일 구분자 /(Unix계열), \(Windows) ※ File 클래스의 se..
-
[Java] How to detect OS in Java개발 2019. 7. 22. 21:16
public class OSValidator { private static String OS = System.getProperty("os.name").toLowerCase(); public static void main(String[] args) { System.out.println(OS); if (isWindows()) { System.out.println("This is Windows"); } else if (isMac()) { System.out.println("This is Mac"); } else if (isUnix()) { System.out.println("This is Unix or Linux"); } else if (isSolaris()) { System.out.println("This ..
-
[Java] gradle source, java doc 같이 배포하기개발 2019. 7. 22. 11:49
reference: https://stackoverflow.com/questions/28404149/how-to-download-javadocs-and-sources-for-jar-using-gradle-2-0 For Eclipse: apply plugin: 'java' apply plugin: 'eclipse' eclipse { classpath { downloadJavadoc = true downloadSources = true } } For IntelliJ & Android Studio apply plugin: 'java' apply plugin: 'idea' idea { module { downloadJavadoc = true downloadSources = true } } run: gradle ..
-
[Mac] JAVA_HOME Mac 설정개발 2019. 6. 13. 15:59
OSX에서 JAVA_HOME이 명시적으로 필요한 경우 아래 내용을 bash_profile에 추가한다. export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:$JAVA_HOME" alias setJava8='export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)' alias setJava10='export JAVA_HOME=$(/usr/libexec/java_home -v 10)'
-
JDK + OSX 환경 Proxy 등록개발 2019. 6. 13. 15:58
1. ~/.bash_profile 아래 내용 추가 httpProxyServer=127.0.0.1:8080 httpsProxyServer=127.0.0.1:8080 export http_proxy=$httpProxyServer export HTTP_PROXY=$httpsProxyServer export https_proxy=$httpProxyServer export HTTPS_PROXY=$httpsProxyServer export no_proxy=localhost,127.0.0.1,*.local,169.254/16 export NO_PROXY=localhost,127.0.0.1,*.local,169.254/16 2. https://bcuts.tistory.com/52 링크에서 인증서 등록 JDK 인증서 등..