makes a maven project out of it

This commit is contained in:
Tristan 2025-01-06 18:06:47 +01:00
parent 69a2b91868
commit 9823b366fe
58 changed files with 138 additions and 137 deletions

View file

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-core-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-extensions-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-streammanagement-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-xmlparser-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-xmlparser-xpp3-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/xmlpull-1.1.3.1.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/xpp3_min-1.1.4c.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-experimental-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-java8-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-resolver-javax-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-tcp-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/minidns-core-1.1.0.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/jxmpp-core-1.1.0.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/jxmpp-repl-1.1.0.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/jxmpp-stringprep-libidn-1.1.0.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/jxmpp-util-cache-1.1.0.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-im-4.4.8.jar"/>
<classpathentry kind="lib" path="c:/Users/tzur/development/MamLoader/MamHistoryLoader/libs/3rdParty/smack/smack-sasl-javax-4.4.8.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ bin
dist dist
build build
.gradle .gradle
target

View file

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MamHistoryLoader</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1735908922007</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>

15
.vscode/launch.json vendored
View file

@ -4,30 +4,19 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"type": "java", "type": "java",
"name": "Current File", "name": "Current File",
"request": "launch", "request": "launch",
"mainClass": "${file}" "mainClass": "${file}"
}, },
{ {
"type": "java", "type": "java",
"name": "MamLoader", "name": "MamLoader",
"request": "launch", "request": "launch",
"mainClass": "de.thedevstack.xmpp.mamloader.MamLoader", "mainClass": "de.thedevstack.xmpp.mamloader.MamLoader"
"projectName": "MamHistoryLoader",
"args": "tristan@jabber.mail-zur.de lookshe@jabber.thehappy.de -limit 10"
},
{
"type": "java",
"name": "MamLoader oldest message",
"request": "launch",
"mainClass": "de.thedevstack.xmpp.mamloader.MamLoader",
"projectName": "MamHistoryLoader",
"args": "tristan@jabber.mail-zur.de lookshe@jabber.thehappy.de -limit -1"
} }
] ]
} }

19
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "verify",
"type": "shell",
"command": "mvn -B verify",
"group": "build"
},
{
"label": "test",
"type": "shell",
"command": "mvn -B test",
"group": "test"
}
]
}

View file

@ -1,26 +0,0 @@
plugins {
id 'application'
}
repositories {
mavenCentral()
}
apply plugin: 'application'
application {
mainClass = 'de.thedevstack.xmpp.mamloader.MamLoader'
}
dependencies {
implementation "org.jxmpp:jxmpp-core:1.1.0"
implementation "org.igniterealtime.smack:smack-java8:4.4.8"
// Optional for XMPPTCPConnection
implementation "org.igniterealtime.smack:smack-tcp:4.4.8"
// Optional for XMPP-IM (RFC 6121) support (Roster, Threaded Chats, )
implementation "org.igniterealtime.smack:smack-im:4.4.8"
// Optional for XMPP extensions support
implementation "org.igniterealtime.smack:smack-extensions:4.4.8"
// Optional for XMPP extensions support
implementation "org.igniterealtime.smack:smack-experimental:4.4.8"
}

View file

@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project MamHistoryLoader with libraries in sub-folder">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="${dir.buildfile}/.."/>
<property name="dir.jarfile" value="${dir.buildfile}/dist"/>
<property name="dir.libs" value="${dir.jarfile}/libs"/>
<target name="create_run_jar">
<delete dir="${dir.libs}"/>
<mkdir dir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-core-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-extensions-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/jxmpp-core-0.5.0.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/jxmpp-jid-0.5.0.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/xmlpull-1.1.3.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/xpp3_min-1.1.4c.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-experimental-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-java7-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-resolver-minidns-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-tcp-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/minidns-core-0.2.4.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/minidns-hla-0.2.4.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/minidns-iterative-resolver-0.2.4.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/minidns-dnssec-0.2.4.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/jxmpp-util-cache-0.5.0.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-im-4.2.1.jar" todir="${dir.libs}"/>
<copy file="${dir.buildfile}/libs/3rdParty/smack/smack-sasl-javax-4.2.1.jar" todir="${dir.libs}"/>
<manifestclasspath property="mamloader.manifest.classpath" jarfile="${dir.jarfile}/MAMLoader.jar">
<classpath>
<fileset dir="${dir.libs}" includes="*.jar" />
</classpath>
</manifestclasspath>
<jar destfile="${dir.jarfile}/MAMLoader.jar">
<manifest>
<attribute name="Main-Class" value="de.thedevstack.xmpp.mamloader.MamLoader"/>
<attribute name="Class-Path" value="${mamloader.manifest.classpath}"/>
</manifest>
<fileset dir="${dir.buildfile}/bin"/>
</jar>
</target>
</project>

View file

@ -1 +0,0 @@
org.gradle.java.home=c:\\Program Files\\Microsoft\\jdk-21.0.5.11-hotspot\\

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

78
pom.xml Normal file
View file

@ -0,0 +1,78 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.thedevstack.xmpp.mamloader</groupId>
<artifactId>mamhistoryloader</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>mamhistoryloader</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-java8</artifactId>
<version>4.4.8</version>
</dependency>
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-tcp</artifactId>
<version>4.4.8</version>
</dependency>
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-im</artifactId>
<version>4.4.8</version>
</dependency>
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-extensions</artifactId>
<version>4.4.8</version>
</dependency>
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-experimental</artifactId>
<version>4.4.8</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<mainClass>de.thedevstack.xmpp.mamloader.MamLoader</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>de.thedevstack.xmpp.mamloader.MamLoader</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View file

@ -0,0 +1,38 @@
package de.thedevstack.xmpp;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}