dukeboard / kevoree-modeling-framework

Kevoree Modeling Framework
http://kevoree.org/kmf
GNU Lesser General Public License v3.0
36 stars 7 forks source link

JavaScript generation should not generate files in src/main/resources #73

Open maxleiko opened 9 years ago

maxleiko commented 9 years ago

When you ask the plugin to generate also the JavaScript model using <js>true</js>, it will generate some files in src/main/resources (index.html and model-js-all.js).
This is really not a good idea.

gnain commented 9 years ago

Could you elaborate a bit ?

maxleiko commented 9 years ago

The generated code looks like a sloppy test. Maybe it should be generated, but it should be placed in, I do not know, let say target/js/examples, not in the project's main folder

gnain commented 9 years ago

Somehow, yes. It's true. However, the index is generated only if there is no index: it does not override if you changed it. The *-all.js is generated in resources, next to the index to show what is generated, also because it is linked to the index, and to allow it is embedded in the Jar. But true, we could generate it elsewhere.