XML : How to run an ant build.xml from grunt?

Is it possible to run an ant script with grunt and if yes - how? At the moment our eclipse project contains a build.xml file which concats and minifies some css and js files. I want to combine it with a grunt watcher but during my researches I couldn't find a grunt plugin which could run xml ant scripts.

So within my Gruntfile.js there would be a Grunt Watch task like this:

  watch: {          dev:{              files: [                  //my_files                  ...              ],                tasks: ['<some task that runs the build.xml ant script>'],              options : {                   nospawn : true                                }          },  }    

I also could configure another minifying task with grunt without any problems but because other people haven't configured grunt on their computers I would like to use what already exists.

No comments:

Post a Comment