Setup java build project

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 3 years ago
parent 9df6c7f9f1
commit 6e024e00ec
  1. 44
      .classpath
  2. 2
      .gitignore
  3. 34
      .project
  4. 4
      .settings/org.eclipse.core.resources.prefs
  5. 2
      .settings/org.eclipse.jdt.apt.core.prefs
  6. 9
      .settings/org.eclipse.jdt.core.prefs
  7. 4
      .settings/org.eclipse.m2e.core.prefs
  8. 3
      .vscode/settings.json
  9. 2
      coauthors.sh
  10. 5
      pom.xml
  11. 2
      run
  12. 16
      src/sig/SigRenderer.java

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

2
.gitignore vendored

@ -0,0 +1,2 @@
/bin/
/target/

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SigRenderer</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<filteredResources>
<filter>
<id>1635762766231</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

@ -0,0 +1,4 @@
eclipse.preferences.version=1
encoding//src/sig=UTF-8
encoding/<project>=UTF-8
encoding/src=UTF-8

@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=false

@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}

@ -37,5 +37,5 @@ if(/COMMIT_EDITMSG/g.test(commitMessage)){
}
EOF
chmod +x .git/hooks/prepare-commit-msg
cd LLSIG
cd /workspace/SigRenderer
echo "Environment is setup!"

@ -8,7 +8,7 @@
<artifactId>SigRenderer</artifactId>
<version>0</version>
<name>SigRenderer</name>
<name>sig.SigRenderer</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -26,6 +26,7 @@
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
@ -72,7 +73,7 @@
<configuration>
<archive>
<manifest>
<mainClass>main.java.LLSIG.LLSIG</mainClass>
<mainClass>sig.SigRenderer</mainClass>
</manifest>
</archive>
<descriptorRefs>

2
run

@ -1,2 +1,2 @@
mvn compile assembly:single
java -jar target/LLSIG-1.0-SNAPSHOT-jar-with-dependencies.jar
java -jar target/SigRenderer-0-jar-with-dependencies.jar

@ -0,0 +1,16 @@
package sig;
import javax.swing.JFrame;
import javax.vecmath.Vector3d;
public class SigRenderer {
Vector3d vec;
SigRenderer(JFrame f) {
vec = new Vector3d();
System.out.println(vec);
}
public static void main(String[] args) {
JFrame f = new JFrame("SigRenderer");
new SigRenderer(f);
}
}
Loading…
Cancel
Save