summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/convwatch/HTMLOutputter.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-24 16:21:05 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-24 16:21:05 +0000
commit1a72528dd9b97f3e6c4da20748b729afee10a613 (patch)
tree4f92bfa31a1cba86aa9de200633247a29e4aa258 /qadevOOo/runner/convwatch/HTMLOutputter.java
parent76888fab83ff1db66aa0b9e54c4e9abda62ed455 (diff)
INTEGRATION: CWS qadev21 (1.3.4); FILE MERGED
2005/01/24 14:28:29 lla 1.3.4.2: #i31243# handle x: and X: as windows path 2005/01/11 10:09:54 lla 1.3.4.1: #i31243# changes for windows to unix filenames
Diffstat (limited to 'qadevOOo/runner/convwatch/HTMLOutputter.java')
-rw-r--r--qadevOOo/runner/convwatch/HTMLOutputter.java41
1 files changed, 29 insertions, 12 deletions
diff --git a/qadevOOo/runner/convwatch/HTMLOutputter.java b/qadevOOo/runner/convwatch/HTMLOutputter.java
index d91a5b0aaeca..3c7ddf2461cc 100644
--- a/qadevOOo/runner/convwatch/HTMLOutputter.java
+++ b/qadevOOo/runner/convwatch/HTMLOutputter.java
@@ -2,9 +2,9 @@
*
* $RCSfile: HTMLOutputter.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Date: 2004-12-10 16:57:39 $
+ * last change: $Date: 2005-02-24 17:21:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -151,35 +151,52 @@ public class HTMLOutputter
StringBuffer a = new StringBuffer();
if (! OSHelper.isWindows())
{
- a.append("<A HREF=\"");
- a.append(_sHREF);
- a.append("\">");
- a.append(_sPathInfo);
- a.append("</A>");
+ // System.out.println("Tu'nix system.");
+ a.append("<A HREF=\"");
+ a.append(_sHREF);
+ a.append("\">");
+ a.append(_sPathInfo);
+ a.append("</A>");
}
else
{
+ // System.out.println("Windows system.");
+ //! this should be replaced by a better method
+ //! name(WIN|UNIX)
+ a.append(_sPathInfo);
a.append("<A HREF=\"");
a.append(_sHREF);
a.append("\">");
- a.append(_sPathInfo);
+ a.append("(first)");
a.append("</A>");
- int index = _sHREF.indexOf("X:");
+ // if (_sHREF.charAt(1) == ':' && (_sHREF.charAt(0) == 'x' || _sHREF.charAt(0) == 'X'))
+ int index = 0;
+ index = _sHREF.indexOf("X:");
+ if (index == -1)
+ {
+ index = _sHREF.indexOf("x:");
+ }
if (index >= 0)
{
+ // int index = 0;
// remove "X:" and insert "/tausch"
- StringBuffer sbUNIXPath = new StringBuffer(_sHREF.substring(0, index));
+ StringBuffer sbUNIXPath = new StringBuffer( _sHREF.substring(0, index) );
sbUNIXPath.append("/tausch");
sbUNIXPath.append(_sHREF.substring(index + 2));
String sUNIXPath = sbUNIXPath.toString();
- sUNIXPath = utils.replaceAll13(sUNIXPath, "\\\\", "/");
+ sUNIXPath = utils.replaceAll13(sUNIXPath, "\\", "/");
a.append("<A HREF=\"");
a.append(sUNIXPath);
a.append("\">");
- a.append("(UNIX)");
+ a.append("(second)");
a.append("</A>");
}
+ // else
+ // {
+ // System.out.println("Path is '" + _sHREF + "'");
+ // }
+
}
return a.toString();
}