Last change
on this file since 154 was
50,
checked in by mmc, 19 years ago
|
Added support for file transfer with the desktop. Each Rappture
application acts like an http server, configured to listen on
a particular port according to the parameters found in the file
~/data/sessions/$SESSION/resources. When the server is active,
the GUI has a "Download..." button in the results area. A Java
client (in the filexfer directory) connects to the server and
listens for download requests. When the user clicks on "Download...",
the desired result is spooled to a file, and a Java client pops up
a web page requesting the file. This downloads the result to the
user's desktop.
Note that if the $SESSION environment variable is not set, these
changes do nothing.
|
File size:
386 bytes
|
Line | |
---|
1 | |
---|
2 | SOURCES = filexfer.java monitor.java |
---|
3 | CLASSES = filexfer.class monitor.class |
---|
4 | ARCHIVE = filexfer.jar |
---|
5 | MANIFEST = MANIFEST.MF |
---|
6 | |
---|
7 | JC = javac -deprecation |
---|
8 | JAR = jar |
---|
9 | |
---|
10 | all: ${CLASSES} ${ARCHIVE} |
---|
11 | |
---|
12 | test: ${CLASSES} |
---|
13 | appletviewer test.html |
---|
14 | |
---|
15 | clean: |
---|
16 | rm -rf *.class *.jar |
---|
17 | |
---|
18 | $(ARCHIVE): $(CLASSES) $(MANIFEST) |
---|
19 | $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES) |
---|
20 | |
---|
21 | ${CLASSES}: ${SOURCES} |
---|
22 | ${JC} -O ${SOURCES} |
---|
Note: See
TracBrowser
for help on using the repository browser.