As for manual file-copying... Maybe, this article would help you marry getResource() with the code relying on the File API: https://weblogs.java.net/blog/kohsuke/archive/2007/04/how_to_convert.html
Från: "Dirk Fauth" <dirk.fauth@xxxxxxxxx>
Till: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Skickat: fredag, 6 sep 2013 14:28:34
Ämne: Re: [tycho-user] getResource() in test cases
"I don't see any problem if an Eclipse plug-in depends on Eclipse Platform"
Well, there is no problem. It is more my personal opinion that I don't like to implement testcases that need to load resources by creating URIs that are platform dependent. I like more the general approaches, for example if my code will move to some general packages that are not tied to the Eclipse Platform. :)
"Why did you have to use manual file-copying instead of it?"
Because I have some API that works on File objects. It reads a file, transforms the contents and create the output file in relation to the input file. It is some file interface code. So I need to be able to read the files from the file system and write new files at the same place.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user