mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Minor fixes
This commit is contained in:
parent
ca8a9b95a1
commit
e557a25a04
|
@ -40,6 +40,7 @@
|
||||||
<module name="teavm-maven-plugin" />
|
<module name="teavm-maven-plugin" />
|
||||||
<module name="teavm-maven-webapp" />
|
<module name="teavm-maven-webapp" />
|
||||||
<module name="teavm-metaprogramming-api" />
|
<module name="teavm-metaprogramming-api" />
|
||||||
|
<module name="teavm-metaprogramming-impl" />
|
||||||
<module name="teavm-platform" />
|
<module name="teavm-platform" />
|
||||||
<module name="teavm-samples-async" />
|
<module name="teavm-samples-async" />
|
||||||
<module name="teavm-samples-benchmark" />
|
<module name="teavm-samples-benchmark" />
|
||||||
|
@ -69,6 +70,7 @@
|
||||||
<module name="teavm-maven-plugin" target="1.8" />
|
<module name="teavm-maven-plugin" target="1.8" />
|
||||||
<module name="teavm-maven-webapp" target="1.5" />
|
<module name="teavm-maven-webapp" target="1.5" />
|
||||||
<module name="teavm-metaprogramming-api" target="1.8" />
|
<module name="teavm-metaprogramming-api" target="1.8" />
|
||||||
|
<module name="teavm-metaprogramming-impl" target="1.8" />
|
||||||
<module name="teavm-platform" target="1.8" />
|
<module name="teavm-platform" target="1.8" />
|
||||||
<module name="teavm-samples" target="1.5" />
|
<module name="teavm-samples" target="1.5" />
|
||||||
<module name="teavm-samples-async" target="1.8" />
|
<module name="teavm-samples-async" target="1.8" />
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/all-deps/all-deps.iml" filepath="$PROJECT_DIR$/all-deps/all-deps.iml" />
|
<module fileurl="file://$PROJECT_DIR$/all-deps/all-deps.iml" filepath="$PROJECT_DIR$/all-deps/all-deps.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/metaprogramming/impl/impl.iml" filepath="$PROJECT_DIR$/metaprogramming/impl/impl.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/teavm.iml" filepath="$PROJECT_DIR$/teavm.iml" />
|
<module fileurl="file://$PROJECT_DIR$/teavm.iml" filepath="$PROJECT_DIR$/teavm.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/tools/chrome-rdp/teavm-chrome-rdp.iml" filepath="$PROJECT_DIR$/tools/chrome-rdp/teavm-chrome-rdp.iml" />
|
<module fileurl="file://$PROJECT_DIR$/tools/chrome-rdp/teavm-chrome-rdp.iml" filepath="$PROJECT_DIR$/tools/chrome-rdp/teavm-chrome-rdp.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/classlib/teavm-classlib.iml" filepath="$PROJECT_DIR$/classlib/teavm-classlib.iml" />
|
<module fileurl="file://$PROJECT_DIR$/classlib/teavm-classlib.iml" filepath="$PROJECT_DIR$/classlib/teavm-classlib.iml" />
|
||||||
|
@ -21,6 +20,7 @@
|
||||||
<module fileurl="file://$PROJECT_DIR$/tools/maven/plugin/teavm-maven-plugin.iml" filepath="$PROJECT_DIR$/tools/maven/plugin/teavm-maven-plugin.iml" />
|
<module fileurl="file://$PROJECT_DIR$/tools/maven/plugin/teavm-maven-plugin.iml" filepath="$PROJECT_DIR$/tools/maven/plugin/teavm-maven-plugin.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/tools/maven/webapp/teavm-maven-webapp.iml" filepath="$PROJECT_DIR$/tools/maven/webapp/teavm-maven-webapp.iml" />
|
<module fileurl="file://$PROJECT_DIR$/tools/maven/webapp/teavm-maven-webapp.iml" filepath="$PROJECT_DIR$/tools/maven/webapp/teavm-maven-webapp.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/metaprogramming/api/teavm-metaprogramming-api.iml" filepath="$PROJECT_DIR$/metaprogramming/api/teavm-metaprogramming-api.iml" />
|
<module fileurl="file://$PROJECT_DIR$/metaprogramming/api/teavm-metaprogramming-api.iml" filepath="$PROJECT_DIR$/metaprogramming/api/teavm-metaprogramming-api.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/metaprogramming/impl/teavm-metaprogramming-impl.iml" filepath="$PROJECT_DIR$/metaprogramming/impl/teavm-metaprogramming-impl.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/platform/teavm-platform.iml" filepath="$PROJECT_DIR$/platform/teavm-platform.iml" />
|
<module fileurl="file://$PROJECT_DIR$/platform/teavm-platform.iml" filepath="$PROJECT_DIR$/platform/teavm-platform.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/samples/teavm-samples.iml" filepath="$PROJECT_DIR$/samples/teavm-samples.iml" />
|
<module fileurl="file://$PROJECT_DIR$/samples/teavm-samples.iml" filepath="$PROJECT_DIR$/samples/teavm-samples.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/samples/async/teavm-samples-async.iml" filepath="$PROJECT_DIR$/samples/async/teavm-samples-async.iml" />
|
<module fileurl="file://$PROJECT_DIR$/samples/async/teavm-samples-async.iml" filepath="$PROJECT_DIR$/samples/async/teavm-samples-async.iml" />
|
||||||
|
|
|
@ -66,70 +66,6 @@
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.teavm</groupId>
|
|
||||||
<artifactId>teavm-maven-plugin</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-javascript-tests</id>
|
|
||||||
<goals>
|
|
||||||
<goal>testCompile</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<minifying>false</minifying>
|
|
||||||
<targetDirectory>${project.build.directory}/javascript-test</targetDirectory>
|
|
||||||
<debugInformationGenerated>true</debugInformationGenerated>
|
|
||||||
<sourceMapsGenerated>true</sourceMapsGenerated>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>generate-javascript-tck</id>
|
|
||||||
<goals>
|
|
||||||
<goal>testCompile</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<minifying>false</minifying>
|
|
||||||
<scanDependencies>true</scanDependencies>
|
|
||||||
<targetDirectory>${project.build.directory}/javascript-tck</targetDirectory>
|
|
||||||
<adapterClass>org.teavm.html4j.testing.KOTestAdapter</adapterClass>
|
|
||||||
<transformers>
|
|
||||||
<param>org.teavm.javascript.NullPointerExceptionTransformer</param>
|
|
||||||
</transformers>
|
|
||||||
<debugInformationGenerated>true</debugInformationGenerated>
|
|
||||||
<sourceMapsGenerated>true</sourceMapsGenerated>
|
|
||||||
<sourceFilesCopied>true</sourceFilesCopied>
|
|
||||||
<excludeWildcards>
|
|
||||||
<wildcard>**.GC*Test</wildcard>
|
|
||||||
</excludeWildcards>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>run-javascript-tests</id>
|
|
||||||
<goals>
|
|
||||||
<goal>test</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<skip>${teavm.test.skip}</skip>
|
|
||||||
<numThreads>${teavm.test.threads}</numThreads>
|
|
||||||
<seleniumURL>${teavm.test.selenium}</seleniumURL>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>run-javascript-tck</id>
|
|
||||||
<goals>
|
|
||||||
<goal>test</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<testDirectory>${project.build.directory}/javascript-tck</testDirectory>
|
|
||||||
<reportFile>${project.build.directory}/teavm-tck-report.json</reportFile>
|
|
||||||
<skip>true</skip>
|
|
||||||
<numThreads>${teavm.test.threads}</numThreads>
|
|
||||||
<seleniumURL>${teavm.test.selenium}</seleniumURL>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
|
<targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
|
||||||
<mainClass>org.teavm.samples.kotlin.KotlinPackage</mainClass>
|
<mainClass>org.teavm.samples.kotlin.HelloKt</mainClass>
|
||||||
<runtime>SEPARATE</runtime>
|
<runtime>SEPARATE</runtime>
|
||||||
<minifying>false</minifying>
|
<minifying>false</minifying>
|
||||||
<debugInformationGenerated>true</debugInformationGenerated>
|
<debugInformationGenerated>true</debugInformationGenerated>
|
||||||
|
|
|
@ -13,18 +13,12 @@
|
||||||
<pre>
|
<pre>
|
||||||
package org.teavm.samples.kotlin
|
package org.teavm.samples.kotlin
|
||||||
|
|
||||||
import org.teavm.jso.*
|
import org.teavm.jso.browser.*
|
||||||
import org.teavm.dom.browser.*
|
|
||||||
import org.teavm.dom.html.*
|
|
||||||
import org.teavm.dom.events.*
|
|
||||||
|
|
||||||
fun main(args : Array<String>) {
|
fun main(args : Array<String>) {
|
||||||
var window = JS.getGlobal() as Window;
|
val document = Window.current().document;
|
||||||
var document = window.getDocument();
|
|
||||||
|
|
||||||
document.getElementById("hello-kotlin").addEventListener("click", EventListener<MouseEvent>() {
|
document.getElementById("hello-kotlin").addEventListener("click") { Window.alert("Hello, developer!") }
|
||||||
window.alert("Hello, developer!");
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -84,11 +84,12 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>2.16</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludes>
|
<systemProperties>
|
||||||
<exclude>org/teavm/platform/**/*.java</exclude>
|
<teavm.junit.target>${project.build.directory}/js-tests</teavm.junit.target>
|
||||||
<exclude>org/teavm/jso/**/*.java</exclude>
|
<teavm.junit.js.runner>htmlunit</teavm.junit.js.runner>
|
||||||
</excludes>
|
</systemProperties>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<orderEntry type="module" module-name="teavm-platform" />
|
<orderEntry type="module" module-name="teavm-platform" />
|
||||||
<orderEntry type="module" module-name="teavm-jso-apis" />
|
<orderEntry type="module" module-name="teavm-jso-apis" />
|
||||||
<orderEntry type="module" module-name="teavm-jso-apis" production-on-test="" />
|
<orderEntry type="module" module-name="teavm-jso-apis" production-on-test="" />
|
||||||
<orderEntry type="module" module-name="impl" />
|
<orderEntry type="module" module-name="teavm-metaprogramming-impl" />
|
||||||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" />
|
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" />
|
||||||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
|
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
|
||||||
<orderEntry type="module" module-name="teavm-tooling" scope="TEST" />
|
<orderEntry type="module" module-name="teavm-tooling" scope="TEST" />
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configLocation>../../checkstyle.xml</configLocation>
|
<configLocation>../../checkstyle.xml</configLocation>
|
||||||
|
<propertyExpansion>config_loc=${basedir}/../..</propertyExpansion>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -17,7 +17,6 @@ package org.teavm.junit;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.LinkedBlockingQueue;
|
import java.util.concurrent.LinkedBlockingQueue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user