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
b7d1c05e
Kaydet (Commit)
b7d1c05e
authored
Ock 12, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bsh-2.0b1->bsh-2.0b5
Change-Id: I250a683faf7d201b9fea8eb0fffd9cd49da7f79f
üst
6a984842
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
113 deletions
+17
-113
download.lst
download.lst
+1
-1
ExternalPackage_beanshell.mk
external/beanshell/ExternalPackage_beanshell.mk
+1
-1
bsh-2.0b1-src.patch
external/beanshell/bsh-2.0b1-src.patch
+15
-111
No files found.
download.lst
Dosyayı görüntüle @
b7d1c05e
...
...
@@ -16,7 +16,7 @@ export APR_TARBALL := apr-1.4.8.tar.gz
export APR_UTIL_MD5SUM := 71a11d037240b292f824ba1eb537b4e3
export APR_UTIL_TARBALL := apr-util-1.5.3.tar.gz
export BOOST_TARBALL := d6eef4b4cacb2183f2bf265a5a03a354-boost_1_55_0.tar.bz2
export BSH_TARBALL := e
a570af93c284aa9e5621cd563f54f4d-bsh-2.0b1-src.tar.gz
export BSH_TARBALL := e
c1941a74d3ef513c4ce57a9092b74e1-bsh-2.0b5-src.zip
export CAIRO_TARBALL := f101a9e88b783337b20b2e26dfd26d5f-cairo-1.10.2.tar.gz
export CDR_MD5SUM := b33fd0be3befdd1b37777e08ce058bd9
export CDR_TARBALL := libcdr-0.1.1.tar.bz2
...
...
external/beanshell/ExternalPackage_beanshell.mk
Dosyayı görüntüle @
b7d1c05e
...
...
@@ -11,6 +11,6 @@ $(eval $(call gb_ExternalPackage_ExternalPackage,beanshell,beanshell))
$(eval $(call gb_ExternalPackage_use_external_project,beanshell,beanshell))
$(eval $(call gb_ExternalPackage_add_file,beanshell,$(LIBO_SHARE_JAVA_FOLDER)/bsh.jar,dist/bsh-2.0b
1
.jar))
$(eval $(call gb_ExternalPackage_add_file,beanshell,$(LIBO_SHARE_JAVA_FOLDER)/bsh.jar,dist/bsh-2.0b
5
.jar))
# vim: set noet sw=4 ts=4:
external/beanshell/bsh-2.0b1-src.patch
Dosyayı görüntüle @
b7d1c05e
--- misc/BeanShell/build.xml Fri Dec 19 17:14:27 2003
+++ misc/build/BeanShell/build.xml Fri Mar 28 15:55:04 2008
@@ -1
7,7 +17
,7 @@
up the build dir! It has to be done manually the first time (or put
in the jar file). There must be a way to fix this
...
@@ -1
0,7 +10
,7 @@
- Why can't I nest filesets? This seems like it would be so easy and
useful
...
-->
-<project name="beanshell" default="compile" basedir=".">
+<project name="beanshell" default="jarall" basedir=".">
<!-- Project Configuration -->
@@ -
71,6 +71
,9 @@
value="bsh/util/BeanShellBSFEngine.java,TestBshBSF.java
"/>
@@ -
65,6 +65
,9 @@
<property name="exclude-engine" value="bsh/engine/**
"/>
-->
+ <property name="exclude-bsf"
...
...
@@ -19,32 +19,19 @@
<!-- Uncomment to build without the ASM class generator code.
<property name="exclude-classgen"
value="bsh/org/objectweb/asm/**,bsh/ClassGeneratorImpl.java,bsh/ClassGeneratorUtil.java,bsh/DelayedEvalBshMethod.java"/>
@@ -80,6 +83,9 @@
<property name="exclude-servlet"
@@ -75,6 +78,9 @@
value="bsh/servlet/*"/>
-->
+
+ <property name="exclude-servlet"
+ value="bsh/servlet/*"/>
+
<!-- Legacy excludes. Comment this *out* to build these legacy items -->
<property name="legacy-excludes"
--- misc/BeanShell/src/bsh/ClassGeneratorUtil.java Fri Dec 19 17:14:28 2003
+++ misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java Fri Mar 28 15:55:05 2008
@@ -34,7 +34,9 @@
package bsh;
import bsh.org.objectweb.asm.*;
-import java.lang.reflect.*;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
<property name="excludes-legacy"
value="bsh/JThis.java"/>
--- misc/BeanShell/src/bsh/classpath/BshClassPath.java 2003-12-19 17:14:28.000000000 +0100
+++ misc/build/BeanShell/src/bsh/classpath/BshClassPath.java 2014-07-22 21:02:52.000000000 +0200
@@ -
42,6 +42
,7 @@
@@ -
36,6 +36
,7 @@
import bsh.StringUtil;
import bsh.ClassPathException;
import java.lang.ref.WeakReference;
...
...
@@ -52,95 +39,12 @@
import bsh.NameSource;
/**
@@ -569,7 +570,7 @@
// Java deals with relative paths for it's bootstrap loader
// but JARClassLoader doesn't.
urls[i] = new File(
- new File(paths[i]).getCanonicalPath() ).toURL();
+ new File(paths[i]).getCanonicalPath() ).toURI().toURL();
} catch ( IOException e ) {
throw new ClassPathException("can't parse class path: "+e);
}
@@ -641,9 +642,11 @@
{
//String rtjar = System.getProperty("java.home")+"/lib/rt.jar";
String rtjar = getRTJarPath();
- URL url = new File( rtjar ).toURL();
+ URL url = new File( rtjar ).toURI().toURL();
@@ -659,6 +660,8 @@
URL url = new File( rtjar ).toURI().toURL();
bootClassPath = new BshClassPath(
"Boot Class Path", new URL[] { url } );
+
} catch ( SecurityException e ) {
+
throw new ClassPathException(" can't access to boot jar: "+e);
+
} catch ( SecurityException e ) {
+
throw new ClassPathException(" can't access to boot jar: "+e);
} catch ( MalformedURLException e ) {
throw new ClassPathException(" can't find boot jar: "+e);
}
@@ -686,7 +689,7 @@
public static void main( String [] args ) throws Exception {
URL [] urls = new URL [ args.length ];
for(int i=0; i< args.length; i++)
- urls[i] = new File(args[i]).toURL();
+ urls[i] = new File(args[i]).toURI().toURL();
BshClassPath bcp = new BshClassPath( "Test", urls );
}
--- misc/BeanShell/src/bsh/util/AWTConsole.java 2003-12-19 17:14:29.000000000 +0100
+++ misc/build/BeanShell/src/bsh/util/AWTConsole.java 2014-07-23 07:32:12.000000000 +0200
@@ -325,7 +325,7 @@
final Frame f = new Frame("Bsh Console");
f.add(console, "Center");
f.pack();
- f.show();
+ f.setVisible(true);
f.addWindowListener( new WindowAdapter() {
public void windowClosing( WindowEvent e ) {
f.dispose();
--- misc/BeanShell/src/bsh/util/ClassBrowser.java 2003-12-19 17:14:29.000000000 +0100
+++ misc/build/BeanShell/src/bsh/util/ClassBrowser.java 2014-07-23 07:32:52.000000000 +0200
@@ -409,7 +409,7 @@
f.getContentPane().add( "Center", cb );
cb.setFrame( f );
f.pack();
- f.show();
+ f.setVisible(true);
}
public void setFrame( JFrame frame ) {
--- misc/BeanShell/src/bsh/util/Util.java 2003-12-19 17:14:29.000000000 +0100
+++ misc/build/BeanShell/src/bsh/util/Util.java 2014-07-23 07:33:29.000000000 +0200
@@ -80,7 +80,7 @@
try { mt.waitForAll(); } catch ( Exception e ) { }
Graphics gr=can.getBufferedGraphics();
gr.drawImage(img, 0, 0, can);
- win.show();
+ win.setVisible(true);
win.toFront();
splashScreen = win;
}
--- misc/BeanShell/src/bsh/Remote.java 2003-12-19 17:14:29.000000000 +0100
+++ misc/build/BeanShell/src/bsh/Remote.java 2014-07-23 08:52:39.000000000 +0200
@@ -137,13 +137,14 @@
static String doHttp( String postURL, String text )
{
String returnValue = null;
+
+ try {
StringBuffer sb = new StringBuffer();
sb.append( "bsh.client=Remote" );
sb.append( "&bsh.script=" );
- sb.append( URLEncoder.encode( text ) );
+ sb.append( URLEncoder.encode(text,"UTF-8") );
String formData = sb.toString( );
- try {
URL url = new URL( postURL );
HttpURLConnection urlcon =
(HttpURLConnection) url.openConnection( );
@@ -172,6 +173,8 @@
System.out.println( "Return Value: "+returnValue );
+ } catch (UnsupportedEncodingException e) {
+ System.out.println(e); // bad character encoding
} catch (MalformedURLException e) {
System.out.println(e); // bad postURL
} catch (IOException e2) {
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