Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not detecting newly added files in sibling dir (such as ../../src/main/webapp/asset/) #405

Open
JohnWu-Pro opened this issue Jan 15, 2015 · 0 comments

Comments

@JohnWu-Pro
Copy link

Context

I'm using grunt-maven-plugin for my project. The project directory structure is as follows

PRJ_ROOT/
   src/main/webapp/asset/
      app/
      test/
      ... ...
      Gruntfile.js
      package.json
   target/
      grunt/
         app/
         test/
         ... ...
         Gruntfile.js
         package.json
      WAR-FILE-NAME/

All contents in src/main/webapp/asset/ are copied into target/grunt/ when start working. And every change in src/main/webapp/asset/ should be synchronized to target/grunt/ after that. Grunt base directory will be target/grunt/.

With the following code

    watch: {
      maven: {
        files: ['../../src/main/webapp/asset/**']
      }

and

  grunt.event.on('watch', function(action, filepath, target) {
    grunt.log.debug('grunt.event.on.watch: '+target+', '+action+', '+filepath+' ...');
  });

Issue

Event on file added (by creating new file or by renaming an existing file) is never triggered. This issue is related to issue #282, but different.

Environment

  • OS: Windows 7
  • Node: 0.10.35
  • Grunt: 0.4.5
  • Grunt-CLI: 0.1.13
  • grunt-contrib-watch: 0.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant