Guest User

Untitled

a guest
Nov 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. /www/index.html
  2. /www/jp/app.js
  3. /www/dependencias/*.js
  4.  
  5. CodeSource fuente = MiClase.class.getProtectionDomain().getCodeSource();
  6. if (fuente != null) {
  7. URL urlJar = fuente.getLocation();
  8. ZipInputStream zip = new ZipInputStream(urlJar.openStream());
  9. while(true) {
  10. ZipEntry recurso = zip.getNextEntry();
  11. if (recurso == null)
  12. break; //Fin de iteracion dentro del jar
  13. String name = recurso.getName();
  14. if (/*Filtrar los recursos aqui*/...) {
  15. /* Si es un recurso, copiarlo a la carpeta destino */
  16. ...
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment