searls/jasmine-maven-plugin — Issue #51: How to load sources outside of jsSrcDir.
Author: smitchell
Created: 2011-12-21 16:17:13+00:00
State: open

My projects relies on scripts from an external maven project. I pulled these into my jasmine test directory, but I can't get them to load before my source directory. I don't want to put them in my source directory because I don't want them deployed in the WAR.

Using a structure similar to this:

${project.basedir}/src/main/webapp/api/script
${project.basedir}/src/test/javascript/jasmine

I've tried this:

${project.basedir}/src/test/javascript/external
**/*.js

and this:

../../../..//test/javascript/external
**/*.js

...but it does not find the external directory.

I tried this:
${project.basedir}/src/main/webapp/api/script
${project.basedir}/src/test/javascript

external/*.js
jasmine/*.js

That finds the external scripts, but they are still loaded after the source directory.

Any ideas?