File tree Expand file tree Collapse file tree 8 files changed +4
-145
lines changed
Expand file tree Collapse file tree 8 files changed +4
-145
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- plugins {
2- id(" org.gretty" ) version(" 4.1.10" )
3- }
4-
5- project.extra[" webAppDir" ] = File (projectDir, " build/dist/webapp" )
6- gretty {
7- contextPath = " /"
8- }
9-
101dependencies {
112 implementation(" com.badlogicgames.gdx:gdx:${LibExt .gdxVersion} " )
123// implementation("com.badlogicgames.gdx:gdx:${LibExt.gdxVersion}:sources")
@@ -22,13 +13,4 @@ tasks.register<JavaExec>("basic_build_web") {
2213 description = " Build basic example"
2314 mainClass.set(mainClassName)
2415 classpath = sourceSets[" main" ].runtimeClasspath
25- }
26-
27- tasks.register(" basic_run_web" ) {
28- group = " examples-teavm"
29- description = " Run basic example"
30- val list = listOf (" basic_build_web" , " jettyRun" )
31- dependsOn(list)
32-
33- tasks.findByName(" jettyRun" )?.mustRunAfter(" basic_build_web" )
3416}
Original file line number Diff line number Diff line change 22import com .github .xpenatan .gdx .teavm .backends .shared .config .compiler .TeaCompiler ;
33import com .github .xpenatan .gdx .teavm .backends .web .config .backend .TeaWebBackend ;
44import java .io .File ;
5- import java .io .IOException ;
65import org .teavm .vm .TeaVMOptimizationLevel ;
76
87public class BuildTeaVMTestDemo {
98
10- public static void main (String [] args ) throws IOException {
9+ public static void main (String [] args ) {
1110 AssetFileHandle assetsPath = new AssetFileHandle ("../assets" );
12- new TeaCompiler (new TeaWebBackend ().setStartJettyAfterBuild (false ))
11+ new TeaCompiler (new TeaWebBackend ().setStartJettyAfterBuild (true ))
1312 .addAssets (assetsPath )
1413 .setOptimizationLevel (TeaVMOptimizationLevel .SIMPLE )
1514 .setMainClass (TestWebLauncher .class .getName ())
Original file line number Diff line number Diff line change 1- plugins {
2- id(" org.gretty" ) version(" 4.1.10" )
3- }
4-
5- project.extra[" webAppDir" ] = File (projectDir, " build/dist/webapp" )
6- gretty {
7- contextPath = " /"
8- }
9-
101// project.ext.assetsDir = new File("../desktop/assets")
112
123dependencies {
@@ -25,17 +16,4 @@ tasks.register<JavaExec>("freetype_build_web") {
2516 description = " Build teavm FreeType example"
2617 mainClass.set(mainClassName)
2718 classpath = sourceSets[" main" ].runtimeClasspath
28- }
29-
30- tasks.register(" freetype_run_web" ) {
31- group = " examples-teavm"
32- description = " Run FreeType example"
33- val list = arrayOf(
34- " clean" ,
35- " freetype_build_web" ,
36- " jettyRun"
37- )
38- dependsOn(list)
39- tasks.findByName(" freetype_build_web" )?.mustRunAfter(" clean" )
40- tasks.findByName(" jettyRun" )?.mustRunAfter(" freetype_build_web" )
4119}
Original file line number Diff line number Diff line change 22import com .github .xpenatan .gdx .teavm .backends .shared .config .compiler .TeaCompiler ;
33import com .github .xpenatan .gdx .teavm .backends .web .config .backend .TeaWebBackend ;
44import java .io .File ;
5- import java .io .IOException ;
65import org .teavm .vm .TeaVMOptimizationLevel ;
76
87public class BuildFreetypeTest {
98
10- public static void main (String [] args ) throws IOException {
11- new TeaCompiler (new TeaWebBackend ())
9+ public static void main (String [] args ) {
10+ new TeaCompiler (new TeaWebBackend (). setStartJettyAfterBuild ( true ) )
1211 .addAssets (new AssetFileHandle ("../desktop/assets" ))
1312 .setOptimizationLevel (TeaVMOptimizationLevel .SIMPLE )
1413 .setMainClass (FreetypeTestLauncher .class .getName ())
Original file line number Diff line number Diff line change 1- plugins {
2- id(" org.gretty" ) version(" 4.1.10" )
3- }
4-
5- project.extra[" webAppDir" ] = File (projectDir, " build/dist/webapp" )
6- gretty {
7- contextPath = " /"
8- }
9-
101dependencies {
112 implementation(" com.badlogicgames.gdx:gdx:${LibExt .gdxVersion} " )
123 implementation(project(" :examples:gdx-tests:core" ))
@@ -23,13 +14,4 @@ tasks.register<JavaExec>("gdx_tests_build_web") {
2314 mainClass.set(mainClassName)
2415 args = mutableListOf (LibExt .gdxTestsAssetsPath)
2516 classpath = sourceSets[" main" ].runtimeClasspath
26- }
27-
28- tasks.register(" gdx_tests_run_web" ) {
29- group = " examples-teavm"
30- description = " Run gdx-tests teavm app"
31- val list = listOf (" gdx_tests_build_web" , " jettyRun" )
32- dependsOn(list)
33-
34- tasks.findByName(" jettyRun" )?.mustRunAfter(" gdx_tests_build_web" )
3517}
You can’t perform that action at this time.
0 commit comments