Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0c5d43ac
Kaydet (Commit)
0c5d43ac
authored
Mar 22, 2011
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge commit 'ooo/DEV300_m103'
üst
03022d30
b59eaea5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
2 deletions
+68
-2
long_path.patch
lucene/long_path.patch
+37
-0
makefile.mk
lucene/makefile.mk
+6
-1
makefile.mk
rhino/makefile.mk
+2
-1
rhino1_5R5-updateToolTip.patch
rhino/rhino1_5R5-updateToolTip.patch
+23
-0
No files found.
lucene/long_path.patch
0 → 100644
Dosyayı görüntüle @
0c5d43ac
--- misc/lucene-2.3.2/src/java/org/apache/lucene/store/FSDirectory.java 2008-05-01 22:27:58.000000000 +0200
+++ misc/build/lucene-2.3.2/src/java/org/apache/lucene/store/FSDirectory.java 2011-02-23 16:36:26.249515000 +0100
@@ -165,7 +165,15 @@
public static FSDirectory getDirectory(File file, LockFactory lockFactory)
throws IOException
{
- file = new File(file.getCanonicalPath());
+ String path = file.getPath();
+ //File.getCanonicalPath fails on Windows with long path names
+ //Tested with Java SE 6u23
+ //Long path names created by osl_getSystemPathFromFileURL are already
+ //unique because its implementation replaces the occurrences of .. and .
+ //That is using the com.sun.star.help.HelpIndexer service from c++ is
+ //relatively safe.
+ if (!path.startsWith("\\\\?\\"))
+ file = new File(file.getCanonicalPath());
if (file.exists() && !file.isDirectory())
throw new IOException(file + " not a directory");
@@ -455,7 +463,16 @@
public String getLockID() {
String dirName; // name to be hashed
try {
- dirName = directory.getCanonicalPath();
+ //File.getCanonicalPath fails on Windows with long path names
+ //Tested with Java SE 6u23
+ //Long path names created by osl_getSystemPathFromFileURL are already
+ //unique because its implementation replaces the occurrences of .. and .
+ //That is using the com.sun.star.help.HelpIndexer service from c++ is
+ //relatively safe.
+ if (!directory.getPath().startsWith("\\\\?\\"))
+ dirName = directory.getCanonicalPath();
+ else
+ dirName = directory.getPath();
} catch (IOException e) {
throw new RuntimeException(e.toString(), e);
}
lucene/makefile.mk
Dosyayı görüntüle @
0c5d43ac
...
@@ -50,7 +50,12 @@ LUCENE_ANALYZERS_JAR=lucene-analyzers-$(LUCENE_MAJOR).$(LUCENE_MINOR).jar
...
@@ -50,7 +50,12 @@ LUCENE_ANALYZERS_JAR=lucene-analyzers-$(LUCENE_MAJOR).$(LUCENE_MINOR).jar
TARFILE_NAME
=
$(LUCENE_NAME)
TARFILE_NAME
=
$(LUCENE_NAME)
TARFILE_MD5
=
48d8169acc35f97e05d8dcdfd45be7f2
TARFILE_MD5
=
48d8169acc35f97e05d8dcdfd45be7f2
PATCH_FILES
=
lucene.patch
PATCH_FILES
=
lucene.patch
.IF
"$(OS)"
==
"WNT"
PATCH_FILES
+=
long_path.patch
.ENDIF
BUILD_DIR
=
.
BUILD_DIR
=
.
BUILD_ACTION
=
${
ANT
}
-buildfile
.
$/
contrib
$/
analyzers
$/
build.xml
BUILD_ACTION
=
${
ANT
}
-buildfile
.
$/
contrib
$/
analyzers
$/
build.xml
...
...
rhino/makefile.mk
Dosyayı görüntüle @
0c5d43ac
...
@@ -46,7 +46,8 @@ ADDITIONAL_FILES= \
...
@@ -46,7 +46,8 @@ ADDITIONAL_FILES= \
toolsrc/org/mozilla/javascript/tools/debugger/OfficeScriptInfo.java
toolsrc/org/mozilla/javascript/tools/debugger/OfficeScriptInfo.java
PATCH_FILES
=
rhino1_5R5.patch
\
PATCH_FILES
=
rhino1_5R5.patch
\
rhino1_5R5-find_swing.patch
rhino1_5R5-find_swing.patch
\
rhino1_5R5-updateToolTip.patch
.IF
"$(JAVACISGCJ)"
==
"yes"
.IF
"$(JAVACISGCJ)"
==
"yes"
JAVA_HOME
=
JAVA_HOME
=
...
...
rhino/rhino1_5R5-updateToolTip.patch
0 → 100644
Dosyayı görüntüle @
0c5d43ac
--- misc/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java Wed Feb 23 10:25:09 2011
+++ misc/build/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java Wed Feb 23 10:25:01 2011
@@ -1045,9 +1045,18 @@
} );
}
+ // Fix taken from <ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2.zip>
+ // toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java:
private void updateToolTip() {
- // in case fileName is very long, try to set tool tip on frame
- Component c = getComponent(1);
+ // Try to set tool tip on frame. On Mac OS X 10.5,
+ // the number of components is different, so try to be safe.
+ int n = getComponentCount() - 1;
+ if (n > 1) {
+ n = 1;
+ } else if (n < 0) {
+ return;
+ }
+ Component c = getComponent(n);
// this will work at least for Metal L&F
if (c != null && c instanceof JComponent) {
((JComponent)c).setToolTipText(getUrl());
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment