@Override
    public boolean fileCreated(File file) throws WatchingException {
        try {
            execute();
        } catch (MojoExecutionException e) {
            throw new WatchingException("Cannot execute the NPM '" + name + "'", e);
        }
        return true;
    }
@ Override public boolean fileCreated ( File file ) throws WatchingException { try { execute ( ) ; } catch ( MojoExecutionException e ) { throw new WatchingException ( "Cannot execute the NPM '" + name + "'" , e ) ; } return true ; }
An accepted file was created - executes the NPM.

@param file is the file.
@return {@code true}
@throws org.wisdom.maven.WatchingException if the execution fails.