Not copying asset-Folder, it's a directory

Clean and build doesn’t seem to make my asset-folder a .jar-file; I didn’t change anything concerning assets or asset folders, so I don’t have any idea what could be wrong. Is there any suggestion about what I should check?

Try reopening the project or restarting the IDE, some people had this but I can’t say what causes it.

Problem solved, I started this thread when I still used Beta ^^’

Ah okay… Would be cool if that bug just disappeared with RC2 :smiley:

I’m having this issue right now… i’ve restarted the ide, and tried to create new projects, and all of them are telling me it will not copy the assets directory because its a folder.



Well on day 2, and every new project, the SDK will not create the asset.jar file. It keeps stating that that is Not copying asset folder, its a directory.

OK I got a work around to get my new project up and running, but still having the same base problem, so if one of you developers want my to send you info or what not, it does it every time.



My work around to get the assets.jar to compile, is to go into the project settings, and change the asset folder to a different name. Run a clean and build, and it throws an error that it can not find the asset folder. When i change it back to assets… it works.

2 Likes

Hi, I am getting this problem as well. It started when I was messing around with subversion, and accidentally opened a project into my root jmonkey folder, which turned all my jmonkey projects into “subversion projects” with the little icon next to each folder in the project. Even after deleting the .svn folder it persisted. So I created a new project and moved all my assets over and my source code and re-added libraries. Now I get this problem that cumberland12b had. I can run the project, but when I clean and build it, I get that warning and there is no assets jar in the dist lib folder. I’ve tried changing the name of the stuff in the assets properties, but it just seems to ignore that and still has the same thing, not even complaining that it can’t find the assets folder. The first thing I tried was restarting the sdk, which didn’t work.

Here is my assets-impl.xml

[java]
<?xml version=“1.0” encoding=“UTF-8”?>
<!–assets-impl.xml v1.0–>
<project name=“assets-impl” basedir="…">
<target name="-init-assets">
<jar jarfile="${build.dir}/${assets.jar.name}" excludes="${assets.excludes}" basedir="${assets.folder.name}" compress="${assets.compress}"/>
<property location="${assets.folder.name}" name=“assets.dir.resolved”/>
<property location="${build.dir}/${assets.jar.name}" name=“assets.jar.resolved”/>
<property location="${build.classes.dir}" name=“build.classes.dir.resolved”/>
<pathconvert property=“run.classpath.without.build.classes.dir”>
<path path="${run.classpath}"/>
<map from="${build.classes.dir.resolved}" to=""/>
<map from="${assets.dir.resolved}" to="${assets.jar.resolved}"/>
</pathconvert>
</target>
</project>
[/java]

@cumberland12b said: My work around to get the assets.jar to compile, is to go into the project settings, and change the asset folder to a different name. Run a clean and build, and it throws an error that it can not find the asset folder. When i change it back to assets.. it works.

Just want to thank you cause this worked for me :).