|
|
|
|
|
|
Re: executable jar with datafiles for Jubula [message #1203106 is a reply to message #903088] |
Fri, 22 November 2013 13:31 |
John Smither Messages: 2 Registered: January 2013 |
Junior Member |
|
|
Samantha Guillot wrote on Tue, 21 August 2012 17:33It's a java thing.
Even if you are running from the executable jar, you have to open a connection to the jar file like it's a database.
Before I tried to bundle my program into a jar file, it was using a technique to reap all the filenames in a directory.
File gpacks= new File("dataDir");
File[] fileList= gpacks.listFiles();
Using the solution you propose above, I end up with a JarFile, not a File. I don't see a method anywhere that will let me do what listFiles() does. How can I fake it?
[Updated on: Fri, 22 November 2013 13:33] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.44464 seconds