searls/jasmine-maven-plugin — pull request #87 by eller86 (2012-07-02 11:11:47+00:00)
Title: conflict between jasmine-maven-plugin and CoffeeScript plugin for RequireJS

Hi, thank you for your cool plugin!
I'm trying to use jasmine-maven-plugin with CoffeeScript and RequireJS. Now I have a trouble and a suggestion to solve it.

## problem
I use CoffeeScript to code. Example:

```js
// main.js
require(['cs!original.module'], function(m){
// ...
});
```
```coffee
# original.module.coffee
define [], () ->
# ...
```
But ProcessResourcesMojo translated `original.module.coffee` to javascript, so [RequireJS's CoffeeScript plugin](http://requirejs.org/docs/download.html#cs) cannot load it correctly. Error messages like `reserved word "function" on line 1` will be displayed.

## solution
Avoid translation for src if requirejs is used. We don't have to change ProcessTestResourcesMojo because requirejs doesn't load test resources.

Please tell me your solution, or let's discuss about mine. I want to know who uses jasmine-maven-plugin with RequireJS and CoffeeScript, and their solution. Thank you!