Update gitignore and update maven run configuration.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
03804ff586
commit
6bd46ebff5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
bin
|
bin
|
||||||
|
target
|
||||||
|
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
|
||||||
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"java.configuration.updateBuildConfiguration": "automatic"
|
||||||
|
}
|
22
pom.xml
22
pom.xml
@ -37,6 +37,28 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
<version>3.1.0</version>
|
<version>3.1.0</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>sig.App</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
<descriptorRefs>
|
||||||
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
|
</descriptorRefs>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>make-assembly</id> <!-- this is used for inheritance merges -->
|
||||||
|
<phase>package</phase> <!-- bind to the packaging phase -->
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
||||||
<plugin>
|
<plugin>
|
||||||
|
4
run
4
run
@ -1,2 +1,2 @@
|
|||||||
mvn package
|
mvn clean compile assembly:single
|
||||||
java -cp target/ffxivai-1.0.jar main.java.sig.App
|
java -jar target/ffxivai-1.0-jar-with-dependencies.jar
|
@ -1,4 +1,4 @@
|
|||||||
package main.java.sig;
|
package sig;
|
||||||
|
|
||||||
import java.awt.AWTException;
|
import java.awt.AWTException;
|
||||||
import java.awt.Robot;
|
import java.awt.Robot;
|
||||||
@ -13,11 +13,11 @@ import com.github.kwhat.jnativehook.keyboard.NativeKeyListener;
|
|||||||
|
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
|
|
||||||
public class App{
|
public class App implements NativeKeyListener{
|
||||||
public static double FRAMETIME=0;
|
public static double FRAMETIME=0;
|
||||||
public static Robot r;
|
public static Robot r;
|
||||||
public static JFrame f;
|
public static JFrame f;
|
||||||
public static void nativeKeyPressed(NativeKeyEvent e) {
|
public void nativeKeyPressed(NativeKeyEvent e) {
|
||||||
System.out.println("Key Pressed: " + NativeKeyEvent.getKeyText(e.getKeyCode()));
|
System.out.println("Key Pressed: " + NativeKeyEvent.getKeyText(e.getKeyCode()));
|
||||||
|
|
||||||
if (e.getKeyCode() == NativeKeyEvent.VC_ESCAPE) {
|
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()));
|
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()));
|
System.out.println("Key Typed: " + e.getKeyText(e.getKeyCode()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
App() {
|
||||||
try {
|
try {
|
||||||
GlobalScreen.registerNativeHook();
|
GlobalScreen.registerNativeHook();
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ public class App{
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
GlobalScreen.addNativeKeyListener(new GlobalKeyListenerExample());
|
GlobalScreen.addNativeKeyListener(this);
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -59,6 +59,10 @@ public class App{
|
|||||||
RunInitialAnalysis();
|
RunInitialAnalysis();
|
||||||
f = new JFrame("FFXIV AI");
|
f = new JFrame("FFXIV AI");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
App a = new App();
|
||||||
|
}
|
||||||
private static void RunInitialAnalysis() {
|
private static void RunInitialAnalysis() {
|
||||||
long startTime = System.nanoTime();
|
long startTime = System.nanoTime();
|
||||||
for (int i=0;i<60;i++) {
|
for (int i=0;i<60;i++) {
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,4 +0,0 @@
|
|||||||
#Created by Apache Maven 3.8.1
|
|
||||||
groupId=sig
|
|
||||||
artifactId=ffxivai
|
|
||||||
version=1.0
|
|
@ -1 +0,0 @@
|
|||||||
sig/AppTest.class
|
|
@ -1 +0,0 @@
|
|||||||
/workspace/ffxivai/src/test/java/sig/AppTest.java
|
|
@ -1,3 +0,0 @@
|
|||||||
# Created at 2021-10-05T00:35:45.115
|
|
||||||
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Created at 2021-10-05T00:36:26.369
|
|
||||||
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Created at 2021-10-05T00:38:01.858
|
|
||||||
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Created at 2021-10-05T00:39:02.461
|
|
||||||
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Created at 2021-10-05T00:39:23.864
|
|
||||||
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Created at 2021-10-05T00:41:13.741
|
|
||||||
Picked up JAVA_TOOL_OPTIONS: -Xmx1879m
|
|
||||||
|
|
@ -1,62 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd" name="sig.AppTest" time="0.025" tests="1" errors="0" skipped="0" failures="0">
|
|
||||||
<properties>
|
|
||||||
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
|
|
||||||
<property name="java.specification.version" value="11"/>
|
|
||||||
<property name="sun.cpu.isalist" value=""/>
|
|
||||||
<property name="sun.jnu.encoding" value="UTF-8"/>
|
|
||||||
<property name="java.class.path" value="/workspace/ffxivai/target/test-classes:/workspace/ffxivai/target/classes:/workspace/m2-repository/junit/junit/4.11/junit-4.11.jar:/workspace/m2-repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/workspace/m2-repository/com/1stleg/jnativehook/2.1.0/jnativehook-2.1.0.jar:"/>
|
|
||||||
<property name="java.vm.vendor" value="Azul Systems, Inc."/>
|
|
||||||
<property name="sun.arch.data.model" value="64"/>
|
|
||||||
<property name="java.vendor.url" value="http://www.azul.com/"/>
|
|
||||||
<property name="user.timezone" value=""/>
|
|
||||||
<property name="java.vm.specification.version" value="11"/>
|
|
||||||
<property name="os.name" value="Linux"/>
|
|
||||||
<property name="sun.java.launcher" value="SUN_STANDARD"/>
|
|
||||||
<property name="user.country" value="US"/>
|
|
||||||
<property name="sun.boot.library.path" value="/home/gitpod/.sdkman/candidates/java/11.0.12.fx-zulu/lib"/>
|
|
||||||
<property name="sun.java.command" value="/workspace/ffxivai/target/surefire/surefirebooter9651881617294522049.jar /workspace/ffxivai/target/surefire 2021-10-05T00-41-13_566-jvmRun1 surefire16651463831520907244tmp surefire_017591263050369366149tmp"/>
|
|
||||||
<property name="jdk.debug" value="release"/>
|
|
||||||
<property name="surefire.test.class.path" value="/workspace/ffxivai/target/test-classes:/workspace/ffxivai/target/classes:/workspace/m2-repository/junit/junit/4.11/junit-4.11.jar:/workspace/m2-repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/workspace/m2-repository/com/1stleg/jnativehook/2.1.0/jnativehook-2.1.0.jar:"/>
|
|
||||||
<property name="sun.cpu.endian" value="little"/>
|
|
||||||
<property name="user.home" value="/home/gitpod"/>
|
|
||||||
<property name="user.language" value="en"/>
|
|
||||||
<property name="java.specification.vendor" value="Oracle Corporation"/>
|
|
||||||
<property name="java.version.date" value="2021-07-20"/>
|
|
||||||
<property name="java.home" value="/home/gitpod/.sdkman/candidates/java/11.0.12.fx-zulu"/>
|
|
||||||
<property name="file.separator" value="/"/>
|
|
||||||
<property name="basedir" value="/workspace/ffxivai"/>
|
|
||||||
<property name="java.vm.compressedOopsMode" value="32-bit"/>
|
|
||||||
<property name="line.separator" value=" "/>
|
|
||||||
<property name="java.specification.name" value="Java Platform API Specification"/>
|
|
||||||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
|
||||||
<property name="jdk.vendor.version" value="Zulu11.50+19-CA"/>
|
|
||||||
<property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
|
|
||||||
<property name="surefire.real.class.path" value="/workspace/ffxivai/target/surefire/surefirebooter9651881617294522049.jar"/>
|
|
||||||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
|
|
||||||
<property name="java.runtime.version" value="11.0.12+7-LTS"/>
|
|
||||||
<property name="user.name" value="gitpod"/>
|
|
||||||
<property name="path.separator" value=":"/>
|
|
||||||
<property name="os.version" value="5.4.0-1051-gke"/>
|
|
||||||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
|
||||||
<property name="file.encoding" value="UTF-8"/>
|
|
||||||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
|
|
||||||
<property name="java.vendor.version" value="Zulu11.50+19-CA"/>
|
|
||||||
<property name="localRepository" value="/workspace/m2-repository"/>
|
|
||||||
<property name="java.vendor.url.bug" value="http://www.azul.com/support/"/>
|
|
||||||
<property name="java.io.tmpdir" value="/tmp"/>
|
|
||||||
<property name="java.version" value="11.0.12"/>
|
|
||||||
<property name="user.dir" value="/workspace/ffxivai"/>
|
|
||||||
<property name="os.arch" value="amd64"/>
|
|
||||||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
|
|
||||||
<property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
|
|
||||||
<property name="sun.os.patch.level" value="unknown"/>
|
|
||||||
<property name="java.library.path" value="/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib"/>
|
|
||||||
<property name="java.vm.info" value="mixed mode"/>
|
|
||||||
<property name="java.vendor" value="Azul Systems, Inc."/>
|
|
||||||
<property name="java.vm.version" value="11.0.12+7-LTS"/>
|
|
||||||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
|
|
||||||
<property name="java.class.version" value="55.0"/>
|
|
||||||
</properties>
|
|
||||||
<testcase name="shouldAnswerWithTrue" classname="sig.AppTest" time="0.002"/>
|
|
||||||
</testsuite>
|
|
@ -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
|
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user