forked from JavaTX/JavaCompilerCore
Merge branch 'bigRefactoring' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into bigRefactoring
This commit is contained in:
commit
def76724b5
Binary file not shown.
BIN
doc/Studienarbeiten_Bachelorarbeiten/S2022_Daniel_Holle.pdf
Normal file
BIN
doc/Studienarbeiten_Bachelorarbeiten/S2022_Daniel_Holle.pdf
Normal file
Binary file not shown.
38
pom.xml
38
pom.xml
@ -53,7 +53,9 @@ http://maven.apache.org/maven-v4_0_0.xsd">
|
|||||||
<version>3.8.0</version>
|
<version>3.8.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<compilerArgs>--enable-preview</compilerArgs>
|
<compilerArgs>--enable-preview</compilerArgs>
|
||||||
</configuration>
|
<source>19</source>
|
||||||
|
<target>19</target>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.antlr</groupId>
|
<groupId>org.antlr</groupId>
|
||||||
@ -68,7 +70,39 @@ http://maven.apache.org/maven-v4_0_0.xsd">
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>de.dhbwstuttgart.core.ConsoleInterface</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>de.dhbwstuttgart.core.ConsoleInterface</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
<descriptorRefs>
|
||||||
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
|
</descriptorRefs>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
10
src/main/java/Main.java
Normal file
10
src/main/java/Main.java
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import de.dhbwstuttgart.core.ConsoleInterface;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws IOException, ClassNotFoundException {
|
||||||
|
ConsoleInterface.main(args);
|
||||||
|
}
|
||||||
|
}
|
@ -2,10 +2,7 @@ package de.dhbwstuttgart.core;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
public class ConsoleInterface {
|
public class ConsoleInterface {
|
||||||
private static final String directory = System.getProperty("user.dir");
|
private static final String directory = System.getProperty("user.dir");
|
||||||
|
|
||||||
@ -14,6 +11,15 @@ public class ConsoleInterface {
|
|||||||
List<File> classpath = new ArrayList<>();
|
List<File> classpath = new ArrayList<>();
|
||||||
String outputPath = null;
|
String outputPath = null;
|
||||||
Iterator<String> it = Arrays.asList(args).iterator();
|
Iterator<String> it = Arrays.asList(args).iterator();
|
||||||
|
if(args.length == 0){
|
||||||
|
System.out.println("No input files given. Get help with --help");
|
||||||
|
System.exit(1);
|
||||||
|
}else if(args.length == 1 && args[0].equals("--help")){
|
||||||
|
System.out.println("Usage: javatx [OPTION]... [FILE]...\n" +
|
||||||
|
"\t-cp\tSet Classpath\n" +
|
||||||
|
"\t-d\tSet destination directory");
|
||||||
|
System.exit(1);
|
||||||
|
}
|
||||||
while(it.hasNext()){
|
while(it.hasNext()){
|
||||||
String arg = it.next();
|
String arg = it.next();
|
||||||
if(arg.equals("-d")){
|
if(arg.equals("-d")){
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
public interface Fun1$$<R, T> {
|
|
||||||
public R apply(T t);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user