When compiling for JavaScript via maven why are resources not copied?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

When compiling for JavaScript via maven why are resources not copied?

Justin Mclean
Hi,

When compiling via maven the resources are copied to the target directory (which is expected) and the produced swf file can access them. However the resources are not copied to the javascript/bin/js-debug or javascript/bin/js-release directories by default.

Is this a bug and/or do people think it should copy the resources the the JS directories by default?

Anyone know why we even have a bin directory in the javascript directory as it seems a little unnecessary?

Also given the project is focusing on JS output wouldn't a better default structure be:
- target directory contains JS debug version (i.e. X.js, X.js, index.html etc etc)
- target/js-release contains JS release version
- target/swf or contains swf/flash/air version

Thanks,
Justin