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
22d659d3
Kaydet (Commit)
22d659d3
authored
Ock 31, 2003
tarafından
Tomas O'Connor
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
IssueZilla 10518 - Install BeanShell UNO package with installer
üst
7854d9c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
77 deletions
+55
-77
build.xml
scripting/workben/build.xml
+8
-26
Register.java
scripting/workben/installer/Register.java
+40
-29
XmlUpdater.java
scripting/workben/installer/XmlUpdater.java
+7
-22
No files found.
scripting/workben/build.xml
Dosyayı görüntüle @
22d659d3
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
#
#
# $RCSfile: build.xml,v $
# $RCSfile: build.xml,v $
#
#
# $Revision: 1.1
1
$
# $Revision: 1.1
2
$
#
#
# last change: $Author: toconnor $ $Date: 2003-01-
28 20:49
:09 $
# last change: $Author: toconnor $ $Date: 2003-01-
31 13:53
:09 $
#
#
# The Contents of this file are made available subject to the terms of
# The Contents of this file are made available subject to the terms of
# either of the following licenses
# either of the following licenses
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
<zip
zipfile=
"${out}/class/sframeworkinstall/sframework/ooscriptframe.zip"
<zip
zipfile=
"${out}/class/sframeworkinstall/sframework/ooscriptframe.zip"
basedir=
"${out}/class/sframework"
>
basedir=
"${out}/class/sframework"
>
</zip>
</zip>
<copy
file=
"${prj}/common/bin/scripting${env.UPD}01.res"
<copy
file=
"${prj}/common
${proext}
/bin/scripting${env.UPD}01.res"
todir=
"${out}/class/sframeworkinstall/sframework/"
/>
todir=
"${out}/class/sframeworkinstall/sframework/"
/>
</target>
</target>
...
@@ -256,30 +256,11 @@
...
@@ -256,30 +256,11 @@
<mkdir
dir=
"${out}/class/bshruntime/skip_registration"
/>
<mkdir
dir=
"${out}/class/bshruntime/skip_registration"
/>
<copy
file=
"${install.dir}/bsh-1.2b7.jar"
<copy
file=
"${install.dir}/bsh-1.2b7.jar"
todir=
"${out}/class/bshruntime/skip_registration"
/>
todir=
"${out}/class/bshruntime/skip_registration"
/>
<zip
zipfile=
"${out}/class/bshruntime.zip"
<zip
zipfile=
"${out}/class/
sframeworkinstall/sframework/
bshruntime.zip"
basedir=
"${out}/class/bshruntime"
>
basedir=
"${out}/class/bshruntime"
>
</zip>
</zip>
</target>
</target>
<!-- ===================== Package regsingletons ========================= -->
<target
name=
"packagesingletons_win7"
depends=
"build.conditions"
if=
"win7.build"
>
<mkdir
dir=
"${out}/class/sframeworkinstall/windows"
/>
<copy
file=
"${env.SOLARVER}/wntmsci7${proext}/bin${env.UPDMINOREXT}/regsingleton.exe"
todir=
"${out}/class/sframeworkinstall/windows"
/>
</target>
<target
name=
"packagesingletons_win9"
depends=
"build.conditions"
if=
"win9.build"
>
<mkdir
dir=
"${out}/class/sframeworkinstall/windows"
/>
<copy
file=
"${env.SOLARVER}/wntmsci9${proext}/bin${env.UPDMINOREXT}/regsingleton.exe"
todir=
"${out}/class/sframeworkinstall/windows"
/>
</target>
<target
name=
"packagesingletons_linux"
depends=
"build.conditions"
if=
"linx86.build"
>
<mkdir
dir=
"${out}/class/sframeworkinstall/linux_x86"
/>
<copy
file=
"${env.SOLARVER}/unxlngi4${proext}/bin${env.UPDMINOREXT}/regsingleton"
todir=
"${out}/class/sframeworkinstall/linux_x86"
/>
</target>
<target
name=
"packagesingletons_solaris"
depends=
"build.conditions"
if=
"solsparc.build"
>
<mkdir
dir=
"${out}/class/sframeworkinstall/solaris_sparc"
/>
<copy
file=
"rs_solaris/regsingleton"
todir=
"${out}/class/sframeworkinstall/solaris_sparc"
/>
</target>
<target
name=
"packagesingletons"
depends=
"packagesingletons_win7,packagesingletons_win9,packagesingletons_linux,packagesingletons_solaris"
>
</target>
<!-- ===================== Package scripts, dialogs & examples =========== -->
<!-- ===================== Package scripts, dialogs & examples =========== -->
<target
name=
"packagedialogsandexamples"
depends=
"buildexamples"
>
<target
name=
"packagedialogsandexamples"
depends=
"buildexamples"
>
<mkdir
dir=
"${out}/class/sframeworkinstall/bindingdialog"
/>
<mkdir
dir=
"${out}/class/sframeworkinstall/bindingdialog"
/>
...
@@ -293,17 +274,18 @@
...
@@ -293,17 +274,18 @@
<fileset
dir=
"${out}/class/examples/"
/>
<fileset
dir=
"${out}/class/examples/"
/>
</copy>
</copy>
</target>
</target>
<!-- ===================== Package scripts, dislogs & examples =========== -->
<!-- ===================== Package IDEs ================================== -->
<target
name=
"packageide"
>
<target
name=
"packageide"
>
<mkdir
dir=
"${out}/class/sframeworkinstall/ide"
/>
<mkdir
dir=
"${out}/class/sframeworkinstall/ide"
/>
<copy
todir=
"${out}/class/sframeworkinstall/ide"
>
<copy
todir=
"${out}/class/sframeworkinstall/ide"
>
<fileset
dir=
"${out}/class/"
>
<fileset
dir=
"${out}/class/"
>
<include
name=
"OfficeScripting.jar"
/>
<include
name=
"idesupport.jar"
/>
<include
name=
"idesupport.jar"
/>
<include
name=
"office.jar"
/>
<include
name=
"office.jar"
/>
</fileset>
</fileset>
</copy>
</copy>
</target>
</target>
<!-- ======================== Compile Classes ========================== -->
<!-- ======================== Compile Classes ========================== -->
<target
name=
"compileinstaller"
>
<target
name=
"compileinstaller"
>
<mkdir
dir=
"${installerclasses}"
/>
<mkdir
dir=
"${installerclasses}"
/>
...
@@ -314,7 +296,7 @@
...
@@ -314,7 +296,7 @@
</target>
</target>
<!-- ===================== jar ========================= -->
<!-- ===================== jar ========================= -->
<target
name=
"jar"
depends=
"compileinstaller,packagedialogsandexamples,packageide,
packagesingletons,
buildunopackage,buildbshuno"
>
<target
name=
"jar"
depends=
"compileinstaller,packagedialogsandexamples,packageide,buildunopackage,buildbshuno"
>
<jar
jarfile=
"${jardir}/${installerjarname}"
<jar
jarfile=
"${jardir}/${installerjarname}"
basedir=
"${installerclasses}"
>
basedir=
"${installerclasses}"
>
<manifest>
<manifest>
...
...
scripting/workben/installer/Register.java
Dosyayı görüntüle @
22d659d3
...
@@ -57,52 +57,63 @@ public class Register{
...
@@ -57,52 +57,63 @@ public class Register{
}
}
public
static
boolean
register
(
String
path
,
JLabel
statusLabel
)
{
public
static
boolean
register
(
String
path
,
JLabel
statusLabel
)
{
String
[]
packages
=
{
"ooscriptframe.zip"
,
"bshruntime.zip"
};
try
{
try
{
String
s
=
null
;
String
s
=
null
;
int
exitcode
=
0
;
int
exitcode
=
0
;
String
env
[]
=
new
String
[
1
];
String
env
[]
=
new
String
[
1
];
Runtime
rt
=
Runtime
.
getRuntime
();
Runtime
rt
=
Runtime
.
getRuntime
();
boolean
isWindows
=
(
System
.
getProperty
(
"os.name"
).
indexOf
(
"Windows"
)
!=
-
1
);
String
progpath
=
path
.
concat
(
"program"
+
File
.
separator
);
String
progpath
=
path
.
concat
(
"program"
+
File
.
separator
);
Process
p
;
Process
p
;
statusLabel
.
setText
(
"Registering Scripting Framework..."
);
statusLabel
.
setText
(
"Registering Scripting Framework..."
);
String
opSys
=
System
.
getProperty
(
"os.name"
);
// pkgchk Scripting Framework Components
// pkgchk Scripting Framework Components
statusLabel
.
setText
(
"Registering Scripting Framework Components..."
);
statusLabel
.
setText
(
"Registering Scripting Framework Components..."
);
System
.
out
.
println
(
"Registering Scripting Framework Components..."
);
System
.
out
.
println
(
"Registering Scripting Framework Components..."
);
if
(
opSys
.
indexOf
(
"Windows"
)
==
-
1
){
for
(
int
i
=
0
;
i
<
packages
.
length
;
i
++)
{
//System.out.println( "Not Windows");
String
cmd
=
""
;
env
[
0
]=
"LD_LIBRARY_PATH="
+
progpath
;
if
(!
isWindows
)
{
p
=
rt
.
exec
(
"chmod a+x "
+
progpath
+
"pkgchk"
);
env
[
0
]=
"LD_LIBRARY_PATH="
+
progpath
;
exitcode
=
p
.
waitFor
();
if
(
exitcode
==
0
){
p
=
rt
.
exec
(
"chmod a+x "
+
progpath
+
"pkgchk"
);
//scriptnm.zip is an old SF. Works with SO6.1 EA2
exitcode
=
p
.
waitFor
();
System
.
err
.
println
(
progpath
+
"pkgchk "
+
progpath
+
"ooscriptframe.zip"
);
p
=
rt
.
exec
(
progpath
+
"pkgchk "
+
progpath
+
"ooscriptframe.zip"
,
env
);
if
(
exitcode
==
0
){
//p=rt.exec(progpath+"pkgchk "+progpath+"scriptnm.zip" );
cmd
=
progpath
+
"pkgchk "
+
progpath
+
packages
[
i
];
System
.
err
.
println
(
cmd
);
p
=
rt
.
exec
(
cmd
,
env
);
}
}
}
else
{
cmd
=
"\""
+
progpath
+
"pkgchk.exe\" \""
+
progpath
+
packages
[
i
]
+
"\""
;
System
.
err
.
println
(
cmd
);
p
=
rt
.
exec
(
cmd
);
}
}
else
{
//progpath = "C:\\Progra~1\\OpenOffice.org643\\program\\";
exitcode
=
p
.
waitFor
();
//System.out.println( "Windows" );
if
(
exitcode
!=
0
)
{
//String pkgStr = new String("\""+progpath+"pkgchk.exe\" \""+progpath+"ooscriptframe.zip\"\"");
System
.
err
.
println
(
"\nPkgChk Failed"
);
System
.
err
.
println
(
"\""
+
progpath
+
"pkgchk.exe\" \""
+
progpath
+
"ooscriptframe.zip\""
);
p
=
rt
.
exec
(
"\""
+
progpath
+
"pkgchk.exe\" \""
+
progpath
+
"ooscriptframe.zip\""
);
if
(!
isWindows
)
}
System
.
err
.
println
(
"Command: "
+
cmd
+
"\n"
+
env
[
0
]);
exitcode
=
p
.
waitFor
();
else
if
(
exitcode
!=
0
)
{
System
.
err
.
println
(
"Command: \""
+
cmd
+
"\""
);
if
(
opSys
.
indexOf
(
"Windows"
)
==
-
1
){
System
.
out
.
println
(
"\nPkgChk Failed \nCommand: "
+
progpath
+
"pkgchk "
+
progpath
+
"ooscriptframe.zip"
+
"\n"
+
env
[
0
]);
statusLabel
.
setText
(
}
"PkgChk Failed, please view SFrameworkInstall.log"
);
else
{
System
.
out
.
println
(
"\nPkgChk Failed \nCommand: \""
+
progpath
+
"pkgchk.exe\" \""
+
progpath
+
"ooscriptframe.zip\""
);
return
false
;
}
}
statusLabel
.
setText
(
"PkgChk Failed, please view SFrameworkInstall.log"
);
return
false
;
}
}
// if ( !regSingletons( path, progpath, opSys, statusLabel ) )
// if ( !regSingletons( path, progpath, opSys, statusLabel ) )
...
...
scripting/workben/installer/XmlUpdater.java
Dosyayı görüntüle @
22d659d3
...
@@ -184,6 +184,13 @@ public class XmlUpdater extends Thread {
...
@@ -184,6 +184,13 @@ public class XmlUpdater extends Thread {
return
;
return
;
}
}
if
(!
zd
.
extractEntry
(
"sframework/bshruntime.zip"
,
progpath
,
statusLabel
))
{
onInstallComplete
();
return
;
}
// Check for OpenOffice Scxripting Security Resource
// Check for OpenOffice Scxripting Security Resource
// Check for OpenOffice Scxripting Security Resource
if
(!
zd
.
extractEntry
(
"sframework/scripting64301.res"
,
progpath
+
"resource"
+
File
.
separator
,
statusLabel
))
if
(!
zd
.
extractEntry
(
"sframework/scripting64301.res"
,
progpath
+
"resource"
+
File
.
separator
,
statusLabel
))
{
{
...
@@ -195,28 +202,6 @@ public class XmlUpdater extends Thread {
...
@@ -195,28 +202,6 @@ public class XmlUpdater extends Thread {
}
}
}
}
if
(
opSys
.
indexOf
(
"Windows"
)!=-
1
){
if
(!
zd
.
extractEntry
(
"windows/regsingleton.exe"
,
progpath
,
statusLabel
))
{
onInstallComplete
();
return
;
}
}
else
if
(
opSys
.
indexOf
(
"Linux"
)!=-
1
){
if
(!
zd
.
extractEntry
(
"linux_x86/regsingleton"
,
progpath
,
statusLabel
))
{
onInstallComplete
();
return
;
}
}
else
if
(
opSys
.
indexOf
(
"SunOS"
)!=-
1
){
if
(!
zd
.
extractEntry
(
"solaris_sparc/regsingleton"
,
progpath
,
statusLabel
))
{
onInstallComplete
();
return
;
}
}
//--------------------------------
//--------------------------------
// Robert Kinsella test 2
// Robert Kinsella test 2
...
...
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