Changeset 18242
- Timestamp:
- 2008-12-17T18:49:45+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/admin/gui/WorkingCopy.java
r18142 r18242 2 2 3 3 import java.io.File; 4 5 4 6 5 import javax.swing.JFrame; … … 24 23 private static SVNClientManager ourClientManager; 25 24 private static ISVNEventHandler myUpdateEventHandler; 26 25 public static boolean suc = true; 27 26 JTextArea messageTextArea; 28 27 … … 95 94 return dir.delete(); 96 95 } 97 98 /* 99 * Initializes the library to work with a repository via 100 * different protocols. 101 */ 96 102 97 private static void setupLibrary() { 103 98 … … 109 104 } 110 105 111 112 /*113 * Checks out a working copy from a repository. Like 'svn checkout URL[@REV] PATH (-r..)'114 * command; It's done by invoking115 *116 * SVNUpdateClient.doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision,117 * SVNRevision revision, boolean recursive)118 *119 * which takes the following parameters:120 *121 * url - a repository location from where a working copy is to be checked out;122 *123 * dstPath - a local path where the working copy will be fetched into;124 *125 * pegRevision - an SVNRevision representing a revision to concretize126 * url (what exactly URL a user means and is sure of being the URL he needs); in other127 * words that is the revision in which the URL is first looked up;128 *129 * revision - a revision at which a working copy being checked out is to be;130 *131 * recursive - if true and url corresponds to a directory then doCheckout(..) recursively132 * fetches out the entire directory, otherwise - only child entries of the directory;133 */134 106 private static void checkout(SVNURL url, 135 107 SVNRevision revision, File destPath, boolean isRecursive) … … 141 113 142 114 long x = updateClient.doCheckout(url, destPath, revision, revision, isRecursive); 143 //System.out.println("X:...."+x); 115 144 116 } 145 117 146 118 public boolean getStatus(){ 119 return suc; 120 } 147 121 148 122 private static void error(String message, Exception e){ 149 123 System.err.println(message+(e!=null ? ": "+e.getMessage() : "")); 150 System.exit(1); 124 JOptionPane.showMessageDialog(new JFrame(),Mat.DownloadErrorMsg); 125 suc = false; 151 126 } 152 153 127 }
Note:
See TracChangeset
for help on using the changeset viewer.