mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix IDEA plugin build
This commit is contained in:
parent
7588962212
commit
c7e7e3b3f0
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2017 Alexey Andreev.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
package org.teavm.idea.jps.util;
|
|
||||||
|
|
||||||
import java.io.PrintWriter;
|
|
||||||
import java.io.StringWriter;
|
|
||||||
|
|
||||||
public final class ExceptionUtil {
|
|
||||||
private ExceptionUtil() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String exceptionToString(Throwable e) {
|
|
||||||
StringWriter writer = new StringWriter();
|
|
||||||
PrintWriter output = new PrintWriter(writer);
|
|
||||||
e.printStackTrace(output);
|
|
||||||
output.close();
|
|
||||||
return writer.toString();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -81,9 +81,9 @@ public class TeaVMBuilder extends TargetBuilder<BuildRootDescriptor, TeaVMBuildT
|
||||||
|
|
||||||
build.perform(target.getModule(), target);
|
build.perform(target.getModule(), target);
|
||||||
} catch (BuildException e) {
|
} catch (BuildException e) {
|
||||||
context.processMessage(CompilerMessage.createInternalBuilderError("TeaVM", e.getCause()));
|
context.processMessage(new CompilerMessage("TeaVM", e.getCause()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
context.processMessage(CompilerMessage.createInternalBuilderError("TeaVM", e));
|
context.processMessage(new CompilerMessage("TeaVM", e));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.teavm.idea.jps.util;
|
package org.teavm.idea;
|
||||||
|
|
||||||
import com.intellij.ide.plugins.IdeaPluginDescriptor;
|
import com.intellij.ide.plugins.IdeaPluginDescriptor;
|
||||||
import com.intellij.ide.plugins.PluginManager;
|
import com.intellij.ide.plugins.PluginManager;
|
|
@ -22,7 +22,6 @@ import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.teavm.idea.jps.model.TeaVMJpsWorkspaceConfiguration;
|
import org.teavm.idea.jps.model.TeaVMJpsWorkspaceConfiguration;
|
||||||
import org.teavm.idea.jps.util.DaemonUtil;
|
|
||||||
import org.teavm.tooling.daemon.BuildDaemon;
|
import org.teavm.tooling.daemon.BuildDaemon;
|
||||||
import org.teavm.tooling.daemon.DaemonInfo;
|
import org.teavm.tooling.daemon.DaemonInfo;
|
||||||
import org.teavm.tooling.daemon.DaemonLog;
|
import org.teavm.tooling.daemon.DaemonLog;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user