This content has been marked as final.
Show 3 replies
-
1. Re: how to add a file to my archive?
hugirat Nov 11, 2010 3:29 AM (in response to hugirat)in the Development forum i have found that
archive.addWebResource(fileasset, "/recources"); should do the work
i have the following
File file=new File(str); //str: is the path to my exe file
FileAsset fileasset=new FileAsset(file);archive.addWebResource(fileasset, "/recources");
but when i output the structure of the webarchive i don't see the file in it. could anyone plz tell me what wrong here??
Best Regards
Yahya
-
2. Re: how to add a file to my archive?
aslak Nov 11, 2010 5:16 AM (in response to hugirat)Can you attach the output of : System.out.println(archive.toString(Formatters.VERBOSE))
-
3. Re: how to add a file to my archive?
hugirat Nov 11, 2010 6:02 AM (in response to aslak)now i have it. thanks a lot.