Convert to Maven

This commit is contained in:
Maschell 2019-04-15 11:45:15 +02:00
parent 80aea7b989
commit fc301d3737
33 changed files with 130 additions and 112 deletions

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="output" path="bin"/>
</classpath>

4
.gitignore vendored
View File

@ -54,3 +54,7 @@ updatetitles.csv
jar/tmp*
src/de/mas/jnustool/gui/UpdateChooserSpecial.java
src/de/mas/jnustool/StarterSpecial.java
/target/
.settings/
.project
.classpath

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>JNusTool</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>
</projectDescription>

View File

@ -1,11 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# Build
`mvn package`

46
pom.xml Normal file
View File

@ -0,0 +1,46 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.mas.wiiu.jnus</groupId>
<artifactId>JNUSTool</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<archive>
<manifest>
<mainClass>de.mas.wiiu.jnus.jnustool.Starter</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<!-- Stick jar in root dir, if you want -->
<outputDirectory>${jar_dir}</outputDirectory>
<finalName>${project.artifactId}-${project.version}-nightly</finalName>
</configuration>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Binary file not shown.

View File

@ -1,12 +1,12 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
import de.mas.jnustool.util.Downloader;
import de.mas.jnustool.util.Settings;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Downloader;
import de.mas.wiiu.jnus.jnustool.util.Settings;
import de.mas.wiiu.jnus.jnustool.util.Util;
/**
* Content file of the NUSTitle. Holds the encrpyted files
*

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.util.concurrent.Callable;

View File

@ -1,6 +1,6 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Util;
/**
* Stores informations of the content [...]
*

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.util.Collection;
import java.util.TreeMap;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.File;
import java.io.IOException;
@ -6,11 +6,11 @@ import java.nio.file.Files;
import java.util.Arrays;
import java.util.List;
import de.mas.jnustool.util.Decryption;
import de.mas.jnustool.util.Downloader;
import de.mas.jnustool.util.HashUtil;
import de.mas.jnustool.util.Settings;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Decryption;
import de.mas.wiiu.jnus.jnustool.util.Downloader;
import de.mas.wiiu.jnus.jnustool.util.HashUtil;
import de.mas.wiiu.jnus.jnustool.util.Settings;
import de.mas.wiiu.jnus.jnustool.util.Util;
public class FEntry implements IHasName{
private FST fst;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.util.concurrent.Callable;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.File;
import java.io.IOException;
@ -10,7 +10,7 @@ import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Util;
public class FST {
private TitleMetaData tmd;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
public interface IHasName {
public String getName();

View File

@ -1,10 +1,10 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import de.mas.jnustool.gui.NUSGUI;
import de.mas.jnustool.util.Settings;
import de.mas.wiiu.jnus.jnustool.gui.NUSGUI;
import de.mas.wiiu.jnus.jnustool.util.Settings;
public class Logger {

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.ByteArrayInputStream;
import java.io.File;
@ -20,11 +20,11 @@ import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import de.mas.jnustool.util.Decryption;
import de.mas.jnustool.util.Downloader;
import de.mas.jnustool.util.NUSTitleInformation;
import de.mas.jnustool.util.Settings;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Decryption;
import de.mas.wiiu.jnus.jnustool.util.Downloader;
import de.mas.wiiu.jnus.jnustool.util.NUSTitleInformation;
import de.mas.wiiu.jnus.jnustool.util.Settings;
import de.mas.wiiu.jnus.jnustool.util.Util;
public class NUSTitle {
private TitleMetaData tmd;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
public interface ProgressUpdateListener {
/**

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.File;
import java.io.IOException;
@ -10,12 +10,12 @@ import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;
import java.util.concurrent.atomic.AtomicInteger;
import de.mas.jnustool.gui.NUSGUI;
import de.mas.jnustool.gui.UpdateChooser;
import de.mas.jnustool.util.NUSTitleInformation;
import de.mas.jnustool.util.Settings;
import de.mas.jnustool.util.UpdateListManager;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.gui.NUSGUI;
import de.mas.wiiu.jnus.jnustool.gui.UpdateChooser;
import de.mas.wiiu.jnus.jnustool.util.NUSTitleInformation;
import de.mas.wiiu.jnus.jnustool.util.Settings;
import de.mas.wiiu.jnus.jnustool.util.UpdateListManager;
import de.mas.wiiu.jnus.jnustool.util.Util;
public class Starter {
public static void main(String[] args) {

View File

@ -1,12 +1,12 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Arrays;
import de.mas.jnustool.util.Decryption;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Decryption;
import de.mas.wiiu.jnus.jnustool.util.Util;
public class TIK {
public static int KEY_LENGTH = 16;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool;
package de.mas.wiiu.jnus.jnustool;
import java.io.File;
import java.io.FileOutputStream;
@ -8,7 +8,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import de.mas.jnustool.util.Util;
import de.mas.wiiu.jnus.jnustool.util.Util;
/**
* The TitleMetaData (TMD) stores information of the NUSTitle. [...]
*

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.gui;
package de.mas.wiiu.jnus.jnustool.gui;
/**
* Based on
* http://stackoverflow.com/questions/21847411/java-swing-need-a-good-quality-developed-jtree-with-checkboxes/21851201#21851201
@ -25,8 +25,8 @@ import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
import de.mas.jnustool.FEntry;
import de.mas.jnustool.NUSTitle;
import de.mas.wiiu.jnus.jnustool.FEntry;
import de.mas.wiiu.jnus.jnustool.NUSTitle;
public class JCheckBoxTree extends JTree {

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.gui;
package de.mas.wiiu.jnus.jnustool.gui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
@ -17,11 +17,11 @@ import javax.swing.ScrollPaneConstants;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreePath;
import de.mas.jnustool.FEntry;
import de.mas.jnustool.Logger;
import de.mas.jnustool.NUSTitle;
import de.mas.jnustool.Progress;
import de.mas.jnustool.ProgressUpdateListener;
import de.mas.wiiu.jnus.jnustool.FEntry;
import de.mas.wiiu.jnus.jnustool.Logger;
import de.mas.wiiu.jnus.jnustool.NUSTitle;
import de.mas.wiiu.jnus.jnustool.Progress;
import de.mas.wiiu.jnus.jnustool.ProgressUpdateListener;
public class NUSGUI extends JFrame {

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.gui;
package de.mas.wiiu.jnus.jnustool.gui;
import java.awt.BorderLayout;
import java.awt.Component;
@ -38,12 +38,12 @@ import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.table.TableCellEditor;
import de.mas.jnustool.Logger;
import de.mas.jnustool.Progress;
import de.mas.jnustool.ProgressUpdateListener;
import de.mas.jnustool.Starter;
import de.mas.jnustool.util.NUSTitleInformation;
import de.mas.jnustool.util.Settings;
import de.mas.wiiu.jnus.jnustool.Logger;
import de.mas.wiiu.jnus.jnustool.Progress;
import de.mas.wiiu.jnus.jnustool.ProgressUpdateListener;
import de.mas.wiiu.jnus.jnustool.Starter;
import de.mas.wiiu.jnus.jnustool.util.NUSTitleInformation;
import de.mas.wiiu.jnus.jnustool.util.Settings;
public class UpdateChooser extends JPanel {
/**

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
public class ByteArrayBuffer {
private byte[] buffer;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.ByteArrayOutputStream;
import java.io.File;
@ -25,11 +25,11 @@ import javax.crypto.spec.SecretKeySpec;
import org.omg.Messaging.SyncScopeHelper;
import de.mas.jnustool.Content;
import de.mas.jnustool.FEntry;
import de.mas.jnustool.Logger;
import de.mas.jnustool.Progress;
import de.mas.jnustool.TIK;
import de.mas.wiiu.jnus.jnustool.Content;
import de.mas.wiiu.jnus.jnustool.FEntry;
import de.mas.wiiu.jnus.jnustool.Logger;
import de.mas.wiiu.jnus.jnustool.Progress;
import de.mas.wiiu.jnus.jnustool.TIK;
public class Decryption {
Cipher cipher2;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
@ -8,9 +8,9 @@ import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import de.mas.jnustool.FEntry;
import de.mas.jnustool.Logger;
import de.mas.jnustool.Progress;
import de.mas.wiiu.jnus.jnustool.FEntry;
import de.mas.wiiu.jnus.jnustool.Logger;
import de.mas.wiiu.jnus.jnustool.Progress;
public class Downloader {
private static Downloader instance;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.File;
import java.io.FileInputStream;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.Serializable;
import java.util.ArrayList;

View File

@ -1,11 +1,11 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import de.mas.jnustool.Logger;
import de.mas.wiiu.jnus.jnustool.Logger;
public class Settings {
public static boolean downloadContent = false;

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.BufferedReader;
import java.io.BufferedWriter;
@ -37,9 +37,9 @@ import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import de.mas.jnustool.FEntry;
import de.mas.jnustool.Logger;
import de.mas.jnustool.NUSTitle;
import de.mas.wiiu.jnus.jnustool.FEntry;
import de.mas.wiiu.jnus.jnustool.Logger;
import de.mas.wiiu.jnus.jnustool.NUSTitle;
public class UpdateListManager {
public static List<NUSTitleInformation> getTitles() {

View File

@ -1,4 +1,4 @@
package de.mas.jnustool.util;
package de.mas.wiiu.jnus.jnustool.util;
import java.io.BufferedWriter;
import java.io.File;