1 | package org.greenstone.admin.gui;
|
---|
2 |
|
---|
3 | import java.awt.BorderLayout;
|
---|
4 | import java.awt.Color;
|
---|
5 | import java.awt.Component;
|
---|
6 | import java.awt.Dimension;
|
---|
7 | import java.awt.GridLayout;
|
---|
8 |
|
---|
9 | import java.awt.event.ActionEvent;
|
---|
10 | import java.awt.event.ActionListener;
|
---|
11 | import java.awt.event.ItemEvent;
|
---|
12 | import java.awt.event.ItemListener;
|
---|
13 | import java.io.BufferedReader;
|
---|
14 | import java.io.BufferedWriter;
|
---|
15 | import java.io.File;
|
---|
16 | import java.io.FileInputStream;
|
---|
17 | import java.io.FileOutputStream;
|
---|
18 | import java.io.IOException;
|
---|
19 | import java.io.InputStreamReader;
|
---|
20 | import java.io.OutputStreamWriter;
|
---|
21 | import java.io.Writer;
|
---|
22 |
|
---|
23 | import javax.swing.*;
|
---|
24 | import javax.xml.parsers.DocumentBuilder;
|
---|
25 | import javax.xml.parsers.DocumentBuilderFactory;
|
---|
26 | import javax.xml.transform.OutputKeys;
|
---|
27 | import javax.xml.transform.Transformer;
|
---|
28 | import javax.xml.transform.TransformerFactory;
|
---|
29 | import javax.xml.transform.dom.DOMSource;
|
---|
30 | import javax.xml.transform.stream.StreamResult;
|
---|
31 |
|
---|
32 | //import org.apache.tools.ant.Project;
|
---|
33 | //import org.apache.tools.ant.ProjectHelper;
|
---|
34 | import org.greenstone.gsdl3.util.GSPath;
|
---|
35 | import org.greenstone.gsdl3.util.GlobalProperties;
|
---|
36 |
|
---|
37 | import org.w3c.dom.Document;
|
---|
38 | import org.w3c.dom.Element;
|
---|
39 | import org.w3c.dom.Node;
|
---|
40 | import org.w3c.dom.NodeList;
|
---|
41 | import org.w3c.dom.Text;
|
---|
42 |
|
---|
43 | import java.text.SimpleDateFormat;
|
---|
44 | import java.util.ArrayList;
|
---|
45 | import java.util.Calendar;
|
---|
46 | import java.util.Iterator;
|
---|
47 | import java.util.Properties;
|
---|
48 | import java.util.Set;
|
---|
49 |
|
---|
50 |
|
---|
51 | class SVNDownloadThread extends Thread {
|
---|
52 |
|
---|
53 | JTextArea _messageTextArea;
|
---|
54 | String _extensionName;
|
---|
55 | String _URL;
|
---|
56 | Mat _mat;
|
---|
57 | WorkingCopy _workingCopy = new WorkingCopy();
|
---|
58 | String _destination;
|
---|
59 | public SVNDownloadThread (Mat mat,JTextArea messageArea, String svnURL, String destination, String extension_name) {
|
---|
60 | _messageTextArea = messageArea;
|
---|
61 | _URL = svnURL;
|
---|
62 | _extensionName = extension_name;
|
---|
63 | _mat = mat;
|
---|
64 | _destination = destination;
|
---|
65 |
|
---|
66 | }
|
---|
67 |
|
---|
68 | public void run(){
|
---|
69 | try{
|
---|
70 | WorkingCopy wc = new WorkingCopy();
|
---|
71 | wc.Download(_messageTextArea, _URL,_destination, _extensionName);
|
---|
72 | }catch(Exception ex){
|
---|
73 | ex.printStackTrace();
|
---|
74 | }
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|