java - Error in maven-plugin : "Parameter 'directory' is not a directory" -


i using 2 maven modules of same project. 1 create maven plugin, files extension "myextn" of specified directory.

i using org.apache.commons.io.fileutils files.

my sample code here:

file specificationdirectory = new file(system.getproperty("user.dir")+file.separator+src"+file.separator+"test"+file.separator); string[] extension = new string[] { "myextn" }; list<file> files = (list<file>) fileutils.listfiles(specificationdirectory, extension, true); 

another module have directory , files, , uses plugin. getting desired result if files , directory available in plugin module, not getting result when have files in second module, uses plugin. when trying run second module, getting following error , "parameter 'directory' not directory"

my objective simple, have files in directory (secondproject/src/test) within second module, want list down files in directory using plugin has logic this.

can please me objective.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -