I want to include resources fils (images, textfiles...) in a JAR. I added my asset folder to the classpath, so my program works fine when I run it in netBeans.
But if I build the project, I receive an error :
Not copying library C:\Users\Flow\Desktop\cp , it's a directory.
Is it a normal error ?
So I tried to add assets manualy like that :
<target name="-post-jar">
<jar destfile="dist/MonProjet.jar" update="true">
<fileset dir="C:/Users/Flow/Desktop/cp">
<include name="assets/*"/>
</fileset>
</jar>
</target>
But it does not work. Do I something wrong ? Sorry for my english and thank you for help.