cant set the sources

hi,

I am trying to set the source paths programatically but it doesnt seems to work. Any ideas?

try{
ArrayList list = new ArrayList();
String dir = rootModel.getModule().getProject().getBaseDir().getPath()+"
src
main
java";
list.add(new Pair(dir,""));

super.setSourcePaths(list);

}catch (Exception e){
System.out.println("Couldnt set sources "+e.getMessage());
}

Edited by: AviTenzer on Jul 1, 2008 7:41 PM

Please sign in to leave a comment.