Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to compile libgdx to html, but it cant clear the assets

Tags:

html

gwt

libgdx

Having trouble compiling my libgdx project to html.

Looking at the log I think the problem is;

Copying resources from ../android/assets to war/
C:\TomsProjects\MeshExplorerV2\html\..\android\assets
C:\TomsProjects\MeshExplorerV2\html\assets
    [ERROR] Generator     'com.badlogic.gdx.backends.gwt.preloader.PreloaderBundleGenerator' threw an exception while     rebinding 'com.badlogic.gdx.backends.gwt.preloader.PreloaderBundle'
java.lang.RuntimeException: Couldn't clean target path 'war\assets'

Now it strikes me as slightly odd the second line; As there was no html\assets folder. The assets folder was in html\war\assets, like the last line complains about.

However, after creating a empty assets folder in html, and manually deleting the contents of html\war\assets I still get the same error.

Theres also a "html\webapp" directory without any assets folder. Not sure if there should be one.

I have tried cleaning/rebuilding from eclipse, as well as randomly also trying Gradle>>Refresh All.

Additionally, the Java version runs just fine.

Any pointers, thanks :)

like image 435
darkflame Avatar asked Aug 26 '14 21:08

darkflame


1 Answers

While not exactly reveling the route of the problem, I noticed it let me compile again as long as I restarted eclipse inbetween. This infers some file-lock going on, possibly a server still running, allthough nothing but the gwt compile as triggered by me. Still, restarting is a fine workaround for me as it only takes a minute or two.

ah

Pinned it down: Close your FTP program when compiling - at least CoreFTP was locking the directory. Closing it works every time now.

like image 102
darkflame Avatar answered Oct 21 '22 14:10

darkflame