jsf 2 - getting the project path -
i can't path of project. have tried many ways result path of directory of eclipse , don't know why.
note didn't create project, imported it.
here have tried:
the first :
private string destination = new file("").getabsolutepath()+"\\";
the second:
iworkspace workspace = resourcesplugin.getworkspace(); file file2 = workspace.getroot().getlocation().tofile(); private string destination = file2..getabsolutepath()+"\\";
the third:
private string destination=system.getproperty("user.dir");
all of these methods didn't work me , don't know why.
Comments
Post a Comment