From 588995f36d66d26ec39db49fc64e1787404bd4df Mon Sep 17 00:00:00 2001 From: Bruce0203 Date: Mon, 7 Aug 2023 02:41:11 +0900 Subject: [PATCH] init --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ed6295..01a1012 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,7 +67,7 @@ jobs: java-version: 11 - name: set properties value of server run: | - type nul > Prop.java + copy NUL Prop.java echo "import java.io.File;import java.io.FileInputStream;import java.util.Arrays;import java.util.Iterator;import java.util.Properties;public class Prop {public static void main(String[] args) throws Exception {Iterator iterator = Arrays.stream(args).iterator();if (!iterator.hasNext()) return;String fileName = iterator.next();File file = new File(fileName);Properties props = new Properties();props.load(new FileInputStream(file));while (true) {if (!iterator.hasNext()) return;String key = iterator.next();if (!iterator.hasNext()) return;String value = iterator.next();props.setProperty(key, value);}}}" > Prop.java java Prop.java gradle.properties server ${{ env.url }} java Prop.java gradle.properties version v0.0.${{github.run_number}}