[jsword-svn]
jsword/java/jsword/org/crosswire/jsword/book/install/sword s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Wed Sep 29 15:15:09 MST 2004
Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install/sword
In directory www.crosswire.org:/tmp/cvs-serv8263/java/jsword/org/crosswire/jsword/book/install/sword
Modified Files:
HttpSwordInstaller.java FtpSwordInstaller.java
Log Message:
fixed a hardcoding bug in ftpinstaller and added some javadocs
Index: HttpSwordInstaller.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install/sword/HttpSwordInstaller.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** HttpSwordInstaller.java 28 Sep 2004 22:25:10 -0000 1.7
--- HttpSwordInstaller.java 29 Sep 2004 22:15:07 -0000 1.8
***************
*** 315,318 ****
--- 315,321 ----
}
+ /* (non-Javadoc)
+ * @see org.crosswire.jsword.book.install.Installer#toURL(org.crosswire.jsword.book.BookMetaData)
+ */
public URL toURL(BookMetaData bmd)
{
Index: FtpSwordInstaller.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install/sword/FtpSwordInstaller.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FtpSwordInstaller.java 28 Sep 2004 22:25:10 -0000 1.4
--- FtpSwordInstaller.java 29 Sep 2004 22:15:07 -0000 1.5
***************
*** 89,92 ****
--- 89,95 ----
}
+ /* (non-Javadoc)
+ * @see org.crosswire.jsword.book.install.Installer#toURL(org.crosswire.jsword.book.BookMetaData)
+ */
public URL toURL(BookMetaData bmd)
{
***************
*** 101,107 ****
try
{
! return new URL("ftp://ftp.crosswire.org/pub/sword/packages/rawzip/" + sbmd.getInitials() + ZIP_SUFFIX); //$NON-NLS-1$
}
! catch (MalformedURLException e)
{
return null;
--- 104,110 ----
try
{
! return new URL(NetUtil.PROTOCOL_FTP + "://" + host + directory + "/" + sbmd.getInitials() + ZIP_SUFFIX); //$NON-NLS-1$ //$NON-NLS-2$
}
! catch (MalformedURLException ex)
{
return null;
More information about the jsword-svn
mailing list