Coder Social home page Coder Social logo

Comments (3)

searls avatar searls commented on August 27, 2024

I was able to replicate this in Windows and patched it today. This commit should fix it: http://github.com/searls/jasmine-maven-plugin/commit/e89008a7edda3c6e710ebe0f50af3d8a916e08b7

Feel free to open another issue if you experience this again. If you can share your POM or an archive of your configuration, it would help debug the issue more confidently.

from jasmine-maven-plugin.

tsnee avatar tsnee commented on August 27, 2024

Thanks a lot! The underlying problem was that I was using absolute paths for preloadSources. The third-party code (Ext JS 3.2.1) that my code depends on was not in my source tree. Is there some way to specify JavaScript dependencies aside from preloadSources?

from jasmine-maven-plugin.

searls avatar searls commented on August 27, 2024

The purpose of the preloadSources property list was to allow users to force the ordering of JS sources, not to identify additional sources outside the specified source dir.

The plugin presumes all sources to be in the jsSrcDir directory (which defaults to src/main/javascript). My personal workflow is to stick my production JS sources in a folder and any dependencies in a sub-directory.

If that isn't possible, we could consider adding a list of source directories instead of just one.

As an immediate workaround, let's say you have a webapp, but you also have an ogre that requires you to keep your own JS and vendor JS in distinct, separate folders. You might be able to get by with pointing the property at their first shared ancestor and crossing your fingers, like so:

<configuration>
  <jsSrcDir>${project.basedir}/src/main/webapp</jsSrcDir>
  ...
</configuration>

This will include "*/.js" inside webapp, so it would copy both your own js folder as well as one including third party scripts.

from jasmine-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.