-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_README.txt
More file actions
28 lines (18 loc) · 1.1 KB
/
Copy path_README.txt
File metadata and controls
28 lines (18 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
The jsjava directory contains SwingJS versions of required java files.
As SwingJS is developed, more classes can be added here. The general
procedure is:
1) Find the desired class and all dependencies at http://grepcode.com/
being sure to use only Java 1.6 files (6-b27 or 6-b14), which are
licensed under GPL with the classpath exception.
2) Copy those files to the appropriate jsjava package.
3) Modify the files by adding a comment in the copyright comment indicating
their source, who has done the modification, and when that was done.
4) Change their package root jsjava. Imports generally do not have to be
changed; that is optional.
You should never reference these files directly in your Java project -- just
use the standard Java library for that -- as these classes will never be
used in Java, only in JavaScript. Note that this means they can only be
tested in JavaScript, as well.
Note that all files in the jsjava package will be moved to j2s/java, as
the build script will drop the "js" from all references to "jsjava" anywhere
in the project.