taylor 2005/03/01 15:28:36
Modified: components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy
JetspeedDeploy.java
Log:
make methods overrideable by subclasses as requested by end user
Revision Changes Path
1.10 +7 -6
jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedDeploy.java
Index: JetspeedDeploy.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedDeploy.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- JetspeedDeploy.java 4 Feb 2005 06:44:35 -0000 1.9
+++ JetspeedDeploy.java 1 Mar 2005 23:28:36 -0000 1.10
@@ -207,7 +207,8 @@
}
}
- private Document parseXml(InputStream jin) throws Exception {
+ protected Document parseXml(InputStream jin) throws Exception
+ {
// Parse using the local dtds instead of remote dtds. This
// allows to deploy the application offline
SAXBuilder saxBuilder = new SAXBuilder();
@@ -227,7 +228,7 @@
return document;
}
- private void addFile(String path, InputStream source, JarOutputStream
jos) throws IOException
+ protected void addFile(String path, InputStream source, JarOutputStream
jos) throws IOException
{
jos.putNextEntry(new ZipEntry(path));
try {
@@ -240,7 +241,7 @@
}
}
- private void addFile(String path, Document source, JarOutputStream jos)
throws IOException {
+ protected void addFile(String path, Document source, JarOutputStream
jos) throws IOException {
if (source != null)
{
jos.putNextEntry(new ZipEntry(path));
@@ -253,7 +254,7 @@
}
}
- private String getPortletApplicationName(String path)
+ protected String getPortletApplicationName(String path)
{
File file = new File(path);
String name = file.getName();
@@ -267,7 +268,7 @@
return portletApplicationName;
}
- private class UncloseableInputStream extends InputStream {
+ protected class UncloseableInputStream extends InputStream {
private final InputStream in;
public UncloseableInputStream(InputStream in) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]