From 6448b69a5cc72848db4e9b1d9a5d1851b35226fa Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 13:40:28 +0800 Subject: [PATCH 1/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 2 ++ read-env-variable-system-property/solution.sh | 3 +++ system-out-system-err/solution.sh | 2 ++ 3 files changed, 7 insertions(+) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index 292074f..a129aa7 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -7,3 +7,5 @@ # First argument is blank: true # Second argument is blank: true # Third argument is blank: false +javac -cp commons-lang3-3.9.jar StringIsBlank.java +java -cp 'commons-lang3-3.9.jar;.' StringIsBlank '' ' ' '*' diff --git a/read-env-variable-system-property/solution.sh b/read-env-variable-system-property/solution.sh index 1dfb638..200b68d 100644 --- a/read-env-variable-system-property/solution.sh +++ b/read-env-variable-system-property/solution.sh @@ -6,3 +6,6 @@ # 使得该java命令输出: # Environment variable AAA: $A; # System property BBB: ' +export AAA='$A;' +javac ReadEnvironmentVariableAndSystemProperty.java +java -DBBB="'" ReadEnvironmentVariableAndSystemProperty diff --git a/system-out-system-err/solution.sh b/system-out-system-err/solution.sh index 5cdeb2b..13d9256 100644 --- a/system-out-system-err/solution.sh +++ b/system-out-system-err/solution.sh @@ -2,3 +2,5 @@ # 请在这里编写两条命令: # 1. 在当前目录中,使用javac命令编译PrintSystemOutSystemErr.java # 2. 在当前目录中,使用java命令运行PrintSystemOutSystemErr,使其标准输出和标准错误都重定向到当前目录下一个名为output.txt的文件中 +javac PrintSystemOutSystemErr.java +java PrintSystemOutSystemErr > output.txt 2>&1 From 528b876876912167c13b155dc7bef250366cac79 Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 13:44:03 +0800 Subject: [PATCH 2/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index a129aa7..646fb86 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -8,4 +8,4 @@ # Second argument is blank: true # Third argument is blank: false javac -cp commons-lang3-3.9.jar StringIsBlank.java -java -cp 'commons-lang3-3.9.jar;.' StringIsBlank '' ' ' '*' +java -cp commons-lang3-3.9.jar;. StringIsBlank '' ' ' '*' From a75020ec2173a7fcf3742f3f91d59af7929b88a7 Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 15:05:14 +0800 Subject: [PATCH 3/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index 646fb86..7df62b7 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -8,4 +8,5 @@ # Second argument is blank: true # Third argument is blank: false javac -cp commons-lang3-3.9.jar StringIsBlank.java -java -cp commons-lang3-3.9.jar;. StringIsBlank '' ' ' '*' +java -cp commons-lang3-3.9.jar:. StringIsBlank "" ' ' '*' + From 0b09102a364bc4d33cb0e62fa392966cf7e56e0e Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 15:06:20 +0800 Subject: [PATCH 4/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index 7df62b7..8d37c79 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -8,5 +8,5 @@ # Second argument is blank: true # Third argument is blank: false javac -cp commons-lang3-3.9.jar StringIsBlank.java -java -cp commons-lang3-3.9.jar:. StringIsBlank "" ' ' '*' +java -cp commons-lang3-3.9.jar StringIsBlank "" " " "*" From a08d5c66da80e77ecc3076f2e2b99cbff5486929 Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 15:07:12 +0800 Subject: [PATCH 5/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index 8d37c79..47fd5fe 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -8,5 +8,5 @@ # Second argument is blank: true # Third argument is blank: false javac -cp commons-lang3-3.9.jar StringIsBlank.java -java -cp commons-lang3-3.9.jar StringIsBlank "" " " "*" +java -cp commons-lang3-3.9.jar StringIsBlank "" " " '*' From fd6bf1345d7c65c8a4e52ad1e0c8ff0ec0002826 Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 15:34:44 +0800 Subject: [PATCH 6/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=20=E5=8C=85=E5=90=AB=E7=A9=BA=E6=A0=BC=E7=94=A8?= =?UTF-8?q?=E5=8F=8C=E5=BC=95=E5=8F=B7=EF=BC=8C*=E5=8F=B7=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=8D=95=E7=8B=AC=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index 47fd5fe..322c347 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -8,5 +8,5 @@ # Second argument is blank: true # Third argument is blank: false javac -cp commons-lang3-3.9.jar StringIsBlank.java -java -cp commons-lang3-3.9.jar StringIsBlank "" " " '*' +java -cp 'commons-lang3-3.9.jar;.' StringIsBlank '' "" ' *' From 4216cc97406dbce851a43017e43a3900f539485b Mon Sep 17 00:00:00 2001 From: TangsongyuanmingQingHAD Date: Mon, 6 Jan 2020 15:37:50 +0800 Subject: [PATCH 7/7] =?UTF-8?q?windows=E6=8F=90=E4=BA=A4gitbash=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=20=E5=8C=85=E5=90=AB=E7=A9=BA=E6=A0=BC=E7=94=A8?= =?UTF-8?q?=E5=8F=8C=E5=BC=95=E5=8F=B7=EF=BC=8C*=E5=8F=B7=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=8D=95=E7=8B=AC=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile-run-with-classpath/solution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-run-with-classpath/solution.sh b/compile-run-with-classpath/solution.sh index 322c347..8da59d1 100644 --- a/compile-run-with-classpath/solution.sh +++ b/compile-run-with-classpath/solution.sh @@ -8,5 +8,5 @@ # Second argument is blank: true # Third argument is blank: false javac -cp commons-lang3-3.9.jar StringIsBlank.java -java -cp 'commons-lang3-3.9.jar;.' StringIsBlank '' "" ' *' +java -cp commons-lang3-3.9.jar;. StringIsBlank '' "" ' *'