[e-cvs] cvs commit: e/src/jsrc/org/erights/e/meta/java/lang ProcessSugar.java
markm@eros.cs.jhu.edu
markm@eros.cs.jhu.edu
Sat, 25 Aug 2001 21:21:31 -0400
markm 01/08/25 21:21:31
Modified: src/csrc/setup e-template.txt eprops-template.txt
src/esrc/org/erights/e/elib/extern CommandMakerAuthor.emaker
src/esrc/org/erights/e/install confirm.emaker
src/esrc/org/erights/e/install/win32
installToRegistry.emaker setupWindows.emaker
src/esrc/scripts setup.e
src/jsrc/org/erights/e/meta/java/lang ProcessSugar.java
Added: src/bin/icons e-caplet.gif e-caplet.ico e-caplet.png
src/bin/resources/org/erights/e/icons e-caplet.gif
Log:
Installer improvements. Added -Xfuture, .caplet.
Revision Changes Path
1.1 e/src/bin/icons/e-caplet.gif
Index: e-caplet.gif
===================================================================
GIF89a
!n'˼ff3[z"ϳ@̬}}%ʎ泛EȪչvss*ۿzz'̯߆
J-]8)P ed@{.tc2Z順 00XȐe˗1eΌ@T
pă h
1.1 e/src/bin/icons/e-caplet.ico
Index: e-caplet.ico
===================================================================
1.1 e/src/bin/icons/e-caplet.png
Index: e-caplet.png
===================================================================
PNG
;<
vt>M
t8b٫ބNx7r㇃mrUKS
W/;9~K!`5!x* UwPQ ygRmk-RzOSzku=zWm19èK|q
9?C@lv>t@E'*5\ amBdiȅ
˾A9͍{7(n{7*?*ogX~cHʔE1&W+u#*K(<kbDpyP*b8_>HYg0O eԟEKlk`X`*}l%Lg<].4y`ir>f^=h:G`H;3@!!}Ch%xWJ] 2OָaO`U;QIBk!Ԛ:^:wJrw&뵁u4ċ\]Lg"cY.կY[P&[J7ЛS5R'H|jОasmT `ꀐ1lˈ(z ܬ
2`ȫ *T_K$8ĉGNa_ө84"CKM@%B$#4^/uhQđRl9aC3@zsSYs 8"e4};C|&y:=rf]o)r.N0!gdP!G=*Ʀ.P
F*6&džA.88Q4ns_9N\N-㩗[yƫBq$<$EsҮ"I6AP z,S9cWM`cVTgL':|D\#O~;ALJ&|&&YRn;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泛EȪչvss*ۿzz'̯߆
J-]8)P ed@{.tc2Z順 00XȐe˗1eΌ@T
pă h
1.8 +3 -0 e/src/csrc/setup/e-template.txt
Index: e-template.txt
===================================================================
RCS file: /cvs/e/src/csrc/setup/e-template.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- e-template.txt 2001/08/05 07:01:24 1.7
+++ e-template.txt 2001/08/26 01:21:30 1.8
@@ -91,6 +91,9 @@
jopts[${#jopts[@]}]=$1
}
+# These should come from props
+jpush "-Xfuture"
+
# either zero or one long
declare -a ecmd
1.18 +6 -6 e/src/csrc/setup/eprops-template.txt
Index: eprops-template.txt
===================================================================
RCS file: /cvs/e/src/csrc/setup/eprops-template.txt,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- eprops-template.txt 2001/08/04 00:45:38 1.17
+++ eprops-template.txt 2001/08/26 01:21:30 1.18
@@ -127,13 +127,13 @@
e.put.shortcut.pathlist=${{e.put.shortcut.pathlist}}
-# Which of .e, .emaker, .updoc, .vat, and .cap should be associated
-# with icons, registry types, mime types, launching programs, and
-# other right button menu commands? Currently, this definition does
-# nothing, and setup.e simply grabs whatever extensions it likes
-# (which are these 5).
+# Which of .e, .emaker, .caplet, .updoc, .vat, and .cap should be
+# associated with icons, registry types, mime types, launching
+# programs, and other right button menu commands? Currently, this
+# definition does nothing, and setup.e simply grabs whatever
+# extensions it likes (which are these 6).
#
-# ".e;.emaker;.updoc;.vat;.cap" or any subset.
+# ".e;.emaker;.caplet;.updoc;.vat;.cap" or any subset.
e.extensionslist=${{e.extensionslist}}
1.3 +4 -5 e/src/esrc/org/erights/e/elib/extern/CommandMakerAuthor.emaker
Index: CommandMakerAuthor.emaker
===================================================================
RCS file: /cvs/e/src/esrc/org/erights/e/elib/extern/CommandMakerAuthor.emaker,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CommandMakerAuthor.emaker 2001/04/16 08:10:31 1.2
+++ CommandMakerAuthor.emaker 2001/08/26 01:21:30 1.3
@@ -45,12 +45,11 @@
#
# @param args A list of Strings as command arguments
# @param optEnv null, or an array of environment strings.
- # @param optCwd null, or the path for the process's
- # working directory
- # @param optStdinStr If non-null, this string will
- # be fed to the command's stdin.
+ # @param optCwd null, or the path for the process's working directory
+ # @param optStdinStr If non-null, this string will be fed to the
+ # command's stdin.
# @return A triple of the exitCode, the text sent to stdout as a
- # String, and the text sent to stderr as a String.
+ # String, and the text sent to stderr as a String.
to doNow(args, optEnv, optCwd, optStdinStr) :any {
def process := TheRuntime exec([executablePath] + args, optEnv, optCwd)
1.6 +15 -14 e/src/esrc/org/erights/e/install/confirm.emaker
Index: confirm.emaker
===================================================================
RCS file: /cvs/e/src/esrc/org/erights/e/install/confirm.emaker,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- confirm.emaker 2001/03/26 06:23:47 1.5
+++ confirm.emaker 2001/08/26 01:21:30 1.6
@@ -3,13 +3,13 @@
## and arrange for dismiss to "interp continueAtTop()"
def confirm(props,
- interp,
- stdout,
- stderr,
- awt__uriGetter,
- swing__uriGetter,
- JPanel__quasiParser,
- iconImage
+ interp,
+ stdout,
+ stderr,
+ awt__uriGetter,
+ swing__uriGetter,
+ JPanel__quasiParser,
+ optIconImage
) {
def welcome := ` Welcome to E ${props["e.version"]}`
@@ -35,16 +35,17 @@
}
})
- def label := E call(<swing:JLabel>,
- "new(String, int)",
- ["E is installed.",
- <swing:SwingConstants> CENTER()])
+ def label := <swing:JLabel> new("E is installed.",
+ <swing:SwingConstants> CENTER())
root getContentPane() add(JPanel`$label.Y
${JPanel``} $okButton ${JPanel``}`)
-
- root setIconImage(iconImage)
-
+ if (optIconImage != null) {
+ # optIconImage == null should never happen here, since optIconImage
+ # should only be null if we're headless, in which case the 'if' at
+ # the beginning of confirm(..) should just welcome instead.
+ root setIconImage(optIconImage)
+ }
root pack()
root setBounds(120, 100, 300, 100)
1.9 +63 -36 e/src/esrc/org/erights/e/install/win32/installToRegistry.emaker
Index: installToRegistry.emaker
===================================================================
RCS file: /cvs/e/src/esrc/org/erights/e/install/win32/installToRegistry.emaker,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- installToRegistry.emaker 2001/08/05 07:01:24 1.8
+++ installToRegistry.emaker 2001/08/26 01:21:30 1.9
@@ -1,54 +1,63 @@
-##
+#
def makeShortcutMaker := <import:org.erights.e.install.win32.makeShortcutMaker>
def fileAssocMaker := <import:org.erights.e.install.win32.fileAssocMaker>
def addCommandMaker := <import:org.erights.e.install.win32.addCommandMaker>
-##
-## On the MSWindows platform, sets up the standard shortcuts and
-## registry associations for E, Elmer, *.e, *.emaker, *.updoc, *.vat,
-## and *.cap
-##
-## @param ehome is the path to the directory in which E is installed.
-## @param javacmd is the path to the java executable, which must be a
-## Java >= 1.2.
-## @param launchDir is the working directory for launched shortcuts
-## makeShortcutCmd is a Command (a frontend to a shell command) for
-## making MSWindows shortcuts.
-## @param fileAssocCmd is a Command for associating a file extension
-## with an icon, Registry type, Registry type description, and Mime
-## type.
-## @param addCommandCmd is a Command for adding entries to the right
-## button menu of files of a given Registry type.
-
-def installToRegistry(ehome :Twine,
- javacmd :Twine,
- launchDir :Twine,
+
+# On the MSWindows platform, sets up the standard shortcuts and
+# registry associations for E, Elmer, *.e, *.emaker, *.updoc, *.vat,
+# and *.cap
+#
+# @param ehome is the path to the directory in which E is installed.
+# @param javacmd is the path to the java executable, which must be a
+# Java >= 1.3.
+# @param launchDir is the working directory for launched shortcuts.
+# @param makeShortcutCmd is a Command (a frontend to a shell command)
+# for making MSWindows shortcuts.
+# @param fileAssocCmd is a Command for associating a file extension
+# with an icon, Registry type, Registry type
+# description, and Mime type.
+# @param addCommandCmd is a Command for adding entries to the right
+# button menu of files of a given Registry type.
+
+def installToRegistry(var ehome :String,
+ javacmd :String,
+ launchDir :String,
makeShortcutCmd,
fileAssocCmd,
addCommandCmd
) {
- def ecmd := [javacmd, "-jar", `-De.home=$ehome`, `$ehome/e.jar`]
+ if (ehome endsWith("/")) {
+ ehome := ehome(0, ehome size() -1)
+ }
+ def ecmd := [
+ javacmd,
+ "-jar",
+ "-Xfuture", # should pick these up from eprops.txt
+ `-De.home=$ehome/`, # other -D..'s will be picked up from eprops.txt
+ `$ehome/e.jar`
+ ]
def makeShortcut := makeShortcutMaker(makeShortcutCmd)
def fileAssoc := fileAssocMaker(fileAssocCmd)
def addCommand := addCommandMaker(addCommandCmd)
- ## Shortcut to E
+ # Shortcut to E
makeShortcut(ecmd + ["--interact"],
`$ehome/bin/shortcuts/e.lnk`,
launchDir,
`$ehome/bin/icons/e-lambda.ico`,
"SHOW")
- ## Shortcut to Elmer
+ # Shortcut to Elmer
makeShortcut(ecmd + [`$ehome/scripts/elmer.e`],
`$ehome/bin/shortcuts/elmer.lnk`,
launchDir,
`$ehome/bin/icons/carrot2.ico`,
"HIDE")
- ## Shortcut to eBrowser
+ # Shortcut to eBrowser
makeShortcut(ecmd + [`$ehome/scripts/eBrowser.e`],
`$ehome/bin/shortcuts/eBrowser.lnk`,
launchDir,
@@ -57,17 +66,17 @@
###############
- ## *.e files
+ # *.e files
fileAssoc(".e", "e-script", "E Script", "text/x-escript",
`$ehome/bin/icons/e-doc.ico`)
- ## *.e Launch command
+ # *.e Launch command
addCommand("e-script",
ecmd + ["%1"],
"Launch",
true)
- ## *.e eBrowse command
+ # *.e eBrowse command
addCommand("e-script",
ecmd + [`$ehome/scripts/eBrowser.e`, "%1"],
"eBrowse",
@@ -75,35 +84,53 @@
###############
- ## *.emaker files
+ # *.emaker files
fileAssoc(".emaker", "e-maker", "E Maker File", "text/x-emaker",
`$ehome/bin/icons/emaker-doc.ico`)
- ## *.emaker eBrowse command
+ # *.emaker eBrowse command
addCommand("e-maker",
ecmd + [`$ehome/scripts/eBrowser.e`, "%1"],
"eBrowse",
true)
- ## *.emaker Elmer command
+ # *.emaker Elmer command
addCommand("e-maker",
ecmd + [`$ehome/scripts/elmer.e`, "%1"],
"Elmer",
false)
###############
+
+ # *.caplet files
+ fileAssoc(".caplet", "e-caplet", "E Caplet File", "text/x-caplet",
+ `$ehome/bin/icons/e-caplet.ico`)
+
+ # *.caplet eBrowse command
+ addCommand("e-caplet",
+ ecmd + [`$ehome/scripts/eBrowser.e`, "%1"],
+ "eBrowse",
+ true)
+
+ # *.caplet Elmer command
+ addCommand("e-caplet",
+ ecmd + [`$ehome/scripts/elmer.e`, "%1"],
+ "Elmer",
+ false)
+
+ ###############
- ## *.updoc files
+ # *.updoc files
fileAssoc(".updoc", "e-updoc", "E Updoc Script", "text/x-updoc",
`$ehome/bin/icons/carrot-doc.ico`)
- ## *.updoc Elmer command
+ # *.updoc Elmer command
addCommand("e-updoc",
ecmd + [`$ehome/scripts/elmer.e`, "%1"],
"Elmer",
true)
- ## *.updoc eBrowse command
+ # *.updoc eBrowse command
addCommand("e-updoc",
ecmd + [`$ehome/scripts/eBrowser.e`, "%1"],
"eBrowse",
@@ -111,13 +138,13 @@
###############
- ## *.vat files
+ # *.vat files
fileAssoc(".vat", "e-vat", "E Persistent Vat State", "text/x-vat",
`$ehome/bin/icons/e-vat.ico`)
###############
- ## *.cap files
+ # *.cap files
fileAssoc(".cap", "e-cap", "E Capability", "text/x-cap",
`$ehome/bin/icons/e-cap.ico`)
}
1.10 +10 -8 e/src/esrc/org/erights/e/install/win32/setupWindows.emaker
Index: setupWindows.emaker
===================================================================
RCS file: /cvs/e/src/esrc/org/erights/e/install/win32/setupWindows.emaker,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- setupWindows.emaker 2001/04/01 08:13:40 1.9
+++ setupWindows.emaker 2001/08/26 01:21:30 1.10
@@ -26,7 +26,7 @@
awt__uriGetter,
swing__uriGetter,
JPanel__quasiParser,
- iconImage
+ optIconImage
) {
stdout println("Installing E on Windows...")
@@ -80,9 +80,9 @@
props := props snapshot()
- def ehome :Twine := props["e.home"]
- def javacmd :Twine := props["e.javacmd"]
- def launch :Twine := props["e.launch.dir"]
+ def ehome :String := props["e.home"]
+ def javacmd :String := props["e.javacmd"]
+ def launch :String := props["e.launch.dir"]
# XXX Should double check whether ehome agrees with ehomeDir
@@ -94,12 +94,14 @@
def eFile := ehomeDir["e"]
eFile setText(substFromProps(eTemplate, props))
+ def cmdDir := ehomeDir["bin/win32"]
+
def makeShortcutCmd :=
- CommandMaker new(ehomeDir["bin/win32/make_shortcut.exe"] getPath())
+ CommandMaker new(cmdDir["make_shortcut.exe"] getPath())
def fileAssocCmd :=
- CommandMaker new(ehomeDir["bin/win32/file_assoc.exe"] getPath())
+ CommandMaker new(cmdDir["file_assoc.exe"] getPath())
def addCommandCmd :=
- CommandMaker new(ehomeDir["bin/win32/add_command.exe"] getPath())
+ CommandMaker new(cmdDir["add_command.exe"] getPath())
def shortDir := ehomeDir["bin/shortcuts"]
shortDir mkdir()
@@ -145,5 +147,5 @@
awt__uriGetter,
swing__uriGetter,
JPanel__quasiParser,
- iconImage)
+ optIconImage)
}
1.14 +12 -11 e/src/esrc/scripts/setup.e
Index: setup.e
===================================================================
RCS file: /cvs/e/src/esrc/scripts/setup.e,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- setup.e 2001/08/04 00:45:38 1.13
+++ setup.e 2001/08/26 01:21:31 1.14
@@ -8,7 +8,7 @@
# eprops.txt
def props := [
- "e.extensionslist" => ".e;.emaker;.updoc;.vat;.cap",
+ "e.extensionslist" => ".e;.emaker;.caplet;.updoc;.vat;.cap",
"e.vendor" => "ERights.org",
"e.vendor.url" => "http://www.erights.org/",
"e.vendor.url.bug" => "mailto:bugs@erights.org",
@@ -37,13 +37,11 @@
# 'false' means overwrite rather than complain
props putAll(interp getProps(), false)
-def ehomeDir := if (props maps("e.home")) {
- <file: props["e.home"]>
-} else {
- <file:.>
-}
-
-def eVersion := ehomeDir["eVersion.txt"] getText() trim()
+def ehomeDir := <file: props get("e.home", ".")>
+def eVersionFile := ehomeDir["eVersion.txt"]
+require(eVersionFile exists(),
+ thunk{`Can't find ${eVersionFile getPath()}`})
+def eVersion := eVersionFile getText() trim()
props["e.version"] := eVersion
println(`E $eVersion Installer...`)
@@ -51,13 +49,15 @@
if (epropsFile exists()) {
def newProps := ConstMapMaker fromPropertiesString(epropsFile getText())
def cpa := ehomeDir getCanonicalPath()
- def cpb := <file: props["e.home"]> getCanonicalPath()
+ def cpb := <file: newProps["e.home"]> getCanonicalPath()
require(cpa == cpb,
thunk{`$cpa/eprops.txt says it should be at $cpb`})
props putAll(newProps, false)
}
-def iconImage := if (props get("e.swingLnF", null) == "none") {
+def optIconImage := if (props get("e.swingLnF", null) == "none") {
+ # If "none", then try to avoid doing anything that might crash the jvm
+ # if we're headless. This may no longer be a concern with modern jvms.
null
} else {
def iconURL := <resource:org/erights/e/icons/green-e-on-white-16.gif>
@@ -78,9 +78,10 @@
awt__uriGetter,
swing__uriGetter,
JPanel__quasiParser,
- iconImage)
+ optIconImage)
} else {
+ # XXX This is stupid. We should do common install logic regardless.
println("Unrecognized OS, probably Ctrl-C to exit")
interp blockAtTop()
}
1.6 +1 -1 e/src/jsrc/org/erights/e/meta/java/lang/ProcessSugar.java
Index: ProcessSugar.java
===================================================================
RCS file: /cvs/e/src/jsrc/org/erights/e/meta/java/lang/ProcessSugar.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ProcessSugar.java 2001/07/14 12:57:24 1.5
+++ ProcessSugar.java 2001/08/26 01:21:31 1.6
@@ -42,7 +42,7 @@
* Waits for the Process to exit.
*
* @return A triple of the exitCode, the text sent to stdout as a
- * String, and the text sent to stderr as a String.
+ * String, and the text sent to stderr as a String.
*/
static public Object[] results(Process self)
throws InterruptedException {