From 6bd46ebff5421725b72926f9e2c61d321160a416 Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Tue, 5 Oct 2021 01:15:23 +0000 Subject: [PATCH] Update gitignore and update maven run configuration. Co-authored-by: sigonasr2 --- .gitignore | 4 +- .vscode/settings.json | 3 + pom.xml | 22 +++++++ run | 4 +- src/main/java/sig/App.java | 18 +++-- target/ffxivai-1.0-SNAPSHOT.jar | Bin 1791 -> 0 bytes target/ffxivai-1.0.jar | Bin 3517 -> 0 bytes target/maven-archiver/pom.properties | 4 -- .../default-testCompile/createdFiles.lst | 1 - .../default-testCompile/inputFiles.lst | 1 - .../2021-10-05T00-35-44_836.dumpstream | 3 - .../2021-10-05T00-36-26_156.dumpstream | 3 - .../2021-10-05T00-38-01_660.dumpstream | 3 - .../2021-10-05T00-39-02_258.dumpstream | 3 - .../2021-10-05T00-39-23_633.dumpstream | 3 - .../2021-10-05T00-41-13_566.dumpstream | 3 - target/surefire-reports/TEST-sig.AppTest.xml | 62 ------------------ target/surefire-reports/sig.AppTest.txt | 4 -- target/test-classes/sig/AppTest.class | Bin 453 -> 0 bytes 19 files changed, 41 insertions(+), 100 deletions(-) create mode 100644 .vscode/settings.json delete mode 100644 target/ffxivai-1.0-SNAPSHOT.jar delete mode 100644 target/ffxivai-1.0.jar delete mode 100644 target/maven-archiver/pom.properties delete mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst delete mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst delete mode 100644 target/surefire-reports/2021-10-05T00-35-44_836.dumpstream delete mode 100644 target/surefire-reports/2021-10-05T00-36-26_156.dumpstream delete mode 100644 target/surefire-reports/2021-10-05T00-38-01_660.dumpstream delete mode 100644 target/surefire-reports/2021-10-05T00-39-02_258.dumpstream delete mode 100644 target/surefire-reports/2021-10-05T00-39-23_633.dumpstream delete mode 100644 target/surefire-reports/2021-10-05T00-41-13_566.dumpstream delete mode 100644 target/surefire-reports/TEST-sig.AppTest.xml delete mode 100644 target/surefire-reports/sig.AppTest.txt delete mode 100644 target/test-classes/sig/AppTest.class diff --git a/.gitignore b/.gitignore index c5e82d7..ae8c437 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -bin \ No newline at end of file +bin +target +target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e0f15db --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index a0f9db8..051e374 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,28 @@ maven-clean-plugin 3.1.0 + + maven-assembly-plugin + + + + sig.App + + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + maven-resources-plugin diff --git a/run b/run index 8610fd1..153ed35 100755 --- a/run +++ b/run @@ -1,2 +1,2 @@ -mvn package -java -cp target/ffxivai-1.0.jar main.java.sig.App \ No newline at end of file +mvn clean compile assembly:single +java -jar target/ffxivai-1.0-jar-with-dependencies.jar \ No newline at end of file diff --git a/src/main/java/sig/App.java b/src/main/java/sig/App.java index bf15260..6b399bc 100644 --- a/src/main/java/sig/App.java +++ b/src/main/java/sig/App.java @@ -1,4 +1,4 @@ -package main.java.sig; +package sig; import java.awt.AWTException; import java.awt.Robot; @@ -13,11 +13,11 @@ import com.github.kwhat.jnativehook.keyboard.NativeKeyListener; import javax.swing.JFrame; -public class App{ +public class App implements NativeKeyListener{ public static double FRAMETIME=0; public static Robot r; public static JFrame f; - public static void nativeKeyPressed(NativeKeyEvent e) { + public void nativeKeyPressed(NativeKeyEvent e) { System.out.println("Key Pressed: " + NativeKeyEvent.getKeyText(e.getKeyCode())); if (e.getKeyCode() == NativeKeyEvent.VC_ESCAPE) { @@ -29,15 +29,15 @@ public class App{ } } - public static void nativeKeyReleased(NativeKeyEvent e) { + public void nativeKeyReleased(NativeKeyEvent e) { System.out.println("Key Released: " + NativeKeyEvent.getKeyText(e.getKeyCode())); } - public static void nativeKeyTyped(NativeKeyEvent e) { + public void nativeKeyTyped(NativeKeyEvent e) { System.out.println("Key Typed: " + e.getKeyText(e.getKeyCode())); } - public static void main(String[] args) { + App() { try { GlobalScreen.registerNativeHook(); } @@ -48,7 +48,7 @@ public class App{ System.exit(1); } - GlobalScreen.addNativeKeyListener(new GlobalKeyListenerExample()); + GlobalScreen.addNativeKeyListener(this); try { @@ -59,6 +59,10 @@ public class App{ RunInitialAnalysis(); f = new JFrame("FFXIV AI"); } + + public static void main(String[] args) { + App a = new App(); + } private static void RunInitialAnalysis() { long startTime = System.nanoTime(); for (int i=0;i<60;i++) { diff --git a/target/ffxivai-1.0-SNAPSHOT.jar b/target/ffxivai-1.0-SNAPSHOT.jar deleted file mode 100644 index b7c0828debb8b016638af523dae53ce0ab97e399..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1791 zcmWIWW@h1H;Nak3C}(jER{ME0E`ou9As&cDfY{eH#8KDN&rRRg(a+P(H8@1i*X^_K znbSVrx_TFRy>+$DojJcb$l!|cgQrD$UcNe>z86bZZ3!yS@$fn45&FSb$NOxs!L`j7 zjGsI$(mH!alkxPj^l2hbmOHovmFx}L)TqYLd%@V`(bGpynHU1R**TEy4*GiAMA0 zv)x~B*RFmr(rD(9sUq7QOpOZG`87+gUCnw-HM7BeiP9G~CB@=ByCNQazj$R?;fbSR z8|C)i%vp4H;^DK)FH8R0X|vy?QI%6Nd{zP1K^8^fjREIs^fWH6Tfcvr^M2=?&|6Z@ z?cHZAJ$$C_5YZH|zjaXfdH2V8xk-ULMM}S#`ih)Rz9YM)+2gE{(^kv0o6}5Nj#eaW z7C4`ktyvfA)5l{A%;J zQHL8o-kxQ=_xR3Yev5A%wbx`YmaV6H{i0>-U7C#!zAe7ZbMJjx!8`YYD`k^J zO3(e6R4~bzGe-U6Y6F+n1?3u|(tT0;UrqB?)D_5N@eW+uqm+?3(^)fRiQX2ce6LN; z*BiVpI%I7Wov5b0%H^k6YvTRA{uDp`SJ!PKPpU*A5;Clb~-o$w6`B&9AqMs-({C32uE3J%Oe#O(cCG1P@ z9GSP{;hF6&QrBL{8osFcsKZrr?Zd3X-DdMTre-JHmApQ4LUwS@UGZuwQ=wbD!H-|g zbo*TRrDxKy{5L;7sV85R434|%#-Ns%^Rv=qzI%W9&zoO+tNwRZlwTD+`s1Meo|Mwh zp4vz9YCcZhc=WB8*0P67_dA+B-(S;|^QU5IfBYxe&)+u&+6brJ*H-*Gd0Xw7U8T?8 zIUViKQ!StTvwHP^cMrAw;M|Lx${{%oR<5jcbqsLfu`I45=X(8jCr-Hh>j6Z+Q;r+@} z()?G3xykmA^A4~}k=+yE&B!FeEP}HP1UeTCmNbGWc)5dAB0@~yV!%~aLG%kSymg#~ zYyv)Qpt1`BK-vxhnQ)6?B^k)o*zE+BWe@<;{0_)O(+nxua2o(B+aLgBfIK5s0}v%0 zBK)wGbugorG)CYz2wL)?#|Ls;fzl2P0L^2;>oAach?ErI&B_MS$_|9jfev9}1@Qo3 CrCPxN diff --git a/target/ffxivai-1.0.jar b/target/ffxivai-1.0.jar deleted file mode 100644 index ce5ded0d25cd0e19cccc529dee8a5ab40097fd16..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3517 zcmai02{;s58y+;)#?X+xE@>~_OqXkk7F)(nmTY5f zFG+ThEo&oLix4A~e?R#P8^MBq&1vB)KCYl|KRCjT6SfyuVFc94w~U%UDtF0D~D;rDfW^(;jbqMvTdz0Of7lN*ZE%OpVT(?y=Pnz3I)V; z!jDoWC=<*8Lkt@`yiRUzO3s{Ae7s(GO)?VXt-}a6e*b10b!t<6S%yejUR3 zJ>(qTAI}g6rR9Q=iu=Ffd|aFvV(EEfj0Mwv{7~nP_jhCzuss;^bMXIW7ugx$7W_JT<{AkGvulG z8TK(IZ^I&9u%@f~Aw#Bv%7lvWFq7bZ$tw200>y=$>CgkD=kRg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P zt7%{HBv&_+`dpb*drxqGKXmUkjFEYIw|2Su)8WS+JO!4>o60S6gB8RwL9p9iiY3-b z*%uz&jN%AZsUi4l5r9y3X^{*ii{9+@6n>W+ZJ12R@}i`Enqc~qO1zcXP3c2se=Q5* z`W&OV7D$yM?}Af zFq^`n{HOLA$_VSiswKL#5!a+gvlQn<7Vvkf%KIxT0gsIy9mzPh^qE@*pprb(e-`~r z@m6lkyv|ilj@t9)&#e+0Tm^jn1})i4m;L5ImyS?xDxd6^h%4~Uc-8<%r~@>x6KX3@ zK*1M&>ncO;kJOy}_d(V}9nic`4Q?*7)(2RuHZBVxI40cs=%A2~Jaug0oci(ZvnOIn zMqN}chmem&qSr=QvIC&4cg;`D2w>Nfyk~od*JIP~q2C=`nm5~M zNzl8%M6U(L6Tejpk7$mIh?KHK(`ta;W&VFHco96k90|TIjy^d5O~+`YTWGR_VMHr5 zE5H`?%3g^a0=m21BDlUY!Isyh6K!tuPHy)*RZeKfPbv7}eHqWnPFMRDi4@yUxu7rSyP9to mJtN;v<*~&Fr)}@H+-~RFDi%Wwkd+SQqJ6q)FVBmwXX8IuYY(CT diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties deleted file mode 100644 index 9d13d11..0000000 --- a/target/maven-archiver/pom.properties +++ /dev/null @@ -1,4 +0,0 @@ -#Created by Apache Maven 3.8.1 -groupId=sig -artifactId=ffxivai -version=1.0 diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst deleted file mode 100644 index 2e8116d..0000000 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +++ /dev/null @@ -1 +0,0 @@ -sig/AppTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst deleted file mode 100644 index 8e5ee4d..0000000 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ /dev/null @@ -1 +0,0 @@ -/workspace/ffxivai/src/test/java/sig/AppTest.java diff --git a/target/surefire-reports/2021-10-05T00-35-44_836.dumpstream b/target/surefire-reports/2021-10-05T00-35-44_836.dumpstream deleted file mode 100644 index 7b4d0ae..0000000 --- a/target/surefire-reports/2021-10-05T00-35-44_836.dumpstream +++ /dev/null @@ -1,3 +0,0 @@ -# Created at 2021-10-05T00:35:45.115 -Picked up JAVA_TOOL_OPTIONS: -Xmx1879m - diff --git a/target/surefire-reports/2021-10-05T00-36-26_156.dumpstream b/target/surefire-reports/2021-10-05T00-36-26_156.dumpstream deleted file mode 100644 index ef9823e..0000000 --- a/target/surefire-reports/2021-10-05T00-36-26_156.dumpstream +++ /dev/null @@ -1,3 +0,0 @@ -# Created at 2021-10-05T00:36:26.369 -Picked up JAVA_TOOL_OPTIONS: -Xmx1879m - diff --git a/target/surefire-reports/2021-10-05T00-38-01_660.dumpstream b/target/surefire-reports/2021-10-05T00-38-01_660.dumpstream deleted file mode 100644 index b06068c..0000000 --- a/target/surefire-reports/2021-10-05T00-38-01_660.dumpstream +++ /dev/null @@ -1,3 +0,0 @@ -# Created at 2021-10-05T00:38:01.858 -Picked up JAVA_TOOL_OPTIONS: -Xmx1879m - diff --git a/target/surefire-reports/2021-10-05T00-39-02_258.dumpstream b/target/surefire-reports/2021-10-05T00-39-02_258.dumpstream deleted file mode 100644 index 6c3c1b8..0000000 --- a/target/surefire-reports/2021-10-05T00-39-02_258.dumpstream +++ /dev/null @@ -1,3 +0,0 @@ -# Created at 2021-10-05T00:39:02.461 -Picked up JAVA_TOOL_OPTIONS: -Xmx1879m - diff --git a/target/surefire-reports/2021-10-05T00-39-23_633.dumpstream b/target/surefire-reports/2021-10-05T00-39-23_633.dumpstream deleted file mode 100644 index 0023cfa..0000000 --- a/target/surefire-reports/2021-10-05T00-39-23_633.dumpstream +++ /dev/null @@ -1,3 +0,0 @@ -# Created at 2021-10-05T00:39:23.864 -Picked up JAVA_TOOL_OPTIONS: -Xmx1879m - diff --git a/target/surefire-reports/2021-10-05T00-41-13_566.dumpstream b/target/surefire-reports/2021-10-05T00-41-13_566.dumpstream deleted file mode 100644 index c79bc54..0000000 --- a/target/surefire-reports/2021-10-05T00-41-13_566.dumpstream +++ /dev/null @@ -1,3 +0,0 @@ -# Created at 2021-10-05T00:41:13.741 -Picked up JAVA_TOOL_OPTIONS: -Xmx1879m - diff --git a/target/surefire-reports/TEST-sig.AppTest.xml b/target/surefire-reports/TEST-sig.AppTest.xml deleted file mode 100644 index 1c86e8e..0000000 --- a/target/surefire-reports/TEST-sig.AppTest.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/target/surefire-reports/sig.AppTest.txt b/target/surefire-reports/sig.AppTest.txt deleted file mode 100644 index b6cae62..0000000 --- a/target/surefire-reports/sig.AppTest.txt +++ /dev/null @@ -1,4 +0,0 @@ -------------------------------------------------------------------------------- -Test set: sig.AppTest -------------------------------------------------------------------------------- -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 s - in sig.AppTest diff --git a/target/test-classes/sig/AppTest.class b/target/test-classes/sig/AppTest.class deleted file mode 100644 index b212b59ac7c9a49830374287f55f989663996430..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 453 zcmZvY%}xR_6opTRfzdJu0{*achc282ON`0H#MML-C78G?&_K!1A=8dNmn)46AHat) z-VP+VaC2`@&&}6+`u+3y1z><)0FR+=)I5sU>yb1zfX~ociWd>3LeHc7$x==&L+wgw zWv>}3{qr${f0NB5M+N&Ks;DtE6Q$){v6{$yBqph3XeZfJq+^jQr?;2BT`0rQNd7!I zWayejR;067n^&1XDZ3cu1tEG5g|=!X$I2*T#9C)oSe0o)w2~~JN6Uh?irnHujyAdh zI%Msf*ch4H5Jxy>;G$F;w%>ntLHJ`<-z!vVP-n%k)sbq5-dQ-b^t9PU7zMnPeGbpC~%kn7>} E7cB=^R{#J2