Update of
/var/cvs/contributions/CMSContainer_Modules/staticdownload/src/java/com/finalist/cmsc/staticdownload
In directory james.mmbase.org:/tmp/cvs-serv16813
Modified Files:
DownloadThread.java
Log Message:
CMSC-1086,improve the static download module.using wget
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/staticdownload/src/java/com/finalist/cmsc/staticdownload
See also: http://www.mmbase.org/jira/browse/CMSC-1086
Index: DownloadThread.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/staticdownload/src/java/com/finalist/cmsc/staticdownload/DownloadThread.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- DownloadThread.java 14 Oct 2008 03:28:54 -0000 1.9
+++ DownloadThread.java 14 Oct 2008 04:20:44 -0000 1.10
@@ -580,15 +580,14 @@
}
}
}
-
+ if(newUrl.indexOf(".") == -1) {
+ newUrl += ".html";
+ }
if(iCount > 0) {
for(int j = 0 ; j < iCount; j++) {
newUrl = "../"+newUrl;
}
}
- if(newUrl.indexOf(".") == -1) {
- newUrl += ".html";
- }
tempString = tempString.replace(urls, newUrl);
log.info("#################
newUrl=========>"+newUrl);
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs