Skip to content

Commit

Permalink
make the release jar file much smaller
Browse files Browse the repository at this point in the history
nobody needed that junk
  • Loading branch information
mcmonkey4eva committed Jun 25, 2018
1 parent 9aa9860 commit 7d9ae7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,16 @@
<version>1.5.6</version>
<scope>provided</scope>
</dependency>
<!-- Removed due to jar space concerns, and minimal realistic need for this dependency anyway. -->
<!--
<dependency>
<groupId>org.abstractmeta</groupId>
<artifactId>compilation-toolbox</artifactId>
<version>0.3.2-MODIFIED</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
-->
<dependency>
<groupId>org.alicebot</groupId>
<artifactId>ab</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import net.aufdemrand.denizen.utilities.debugging.dB;
import net.aufdemrand.denizencore.interfaces.dExternal;
import net.aufdemrand.denizencore.utilities.CoreUtilities;
import org.abstractmeta.toolbox.compilation.compiler.JavaSourceCompiler;
import org.abstractmeta.toolbox.compilation.compiler.impl.JavaSourceCompilerImpl;
//import org.abstractmeta.toolbox.compilation.compiler.JavaSourceCompiler;
//import org.abstractmeta.toolbox.compilation.compiler.impl.JavaSourceCompilerImpl;
import org.bukkit.ChatColor;

import java.io.*;
Expand Down Expand Up @@ -44,6 +44,7 @@ public boolean accept(File dir, String name) {
@SuppressWarnings("unchecked")
public void loader() {

/*
dB.log("Loading external dependencies for run-time compiler.");
dependencies = new ArrayList<String>();
try {
Expand Down Expand Up @@ -116,12 +117,14 @@ public void loader() {
catch (Exception error) {
dB.echoError(error);
}
*/
}

public int i = 0;

public void runString(String input) {
try {
/*
i++;
JavaSourceCompiler javaSourceCompiler = new JavaSourceCompilerImpl();
JavaSourceCompiler.CompilationUnit compilationUnit = javaSourceCompiler.createCompilationUnit();
Expand All @@ -139,6 +142,8 @@ public void runString(String input) {
loadedClass.load();
loadedClass.run();
loadedClass.unload();
*/
dB.echoError("Run time compiler is temporarily disabled. If you need this functionality, please post an issue on GitHub or speak to mcmonkey on Discord.");
}
catch (Exception e) {
dB.echoError(e);
Expand Down

0 comments on commit 7d9ae7b

Please sign in to comment.