Skip to content

Commit 4b4613e

Browse files
committed
last update prior to shifting to master for integrated Jmol/SwingJS
plugin
1 parent 9d62921 commit 4b4613e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

sources/net.sf.j2s.core/build.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ bin.includes = META-INF/,\
66
schema/
77
src.includes = META-INF/,\
88
plugin.xml
9-
javacSource = 1.3
10-
javacTarget = 1.2
9+
javacSource = 1.7
10+
javacTarget = 1.7

sources/net.sf.j2s.core/src/net/sf/j2s/core/CorePlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class CorePlugin extends Plugin {
1717
* The constructor.
1818
*/
1919
public CorePlugin() {
20+
System.out.println("J2S legacy core plugin created");
2021
plugin = this;
2122
}
2223

@@ -25,6 +26,7 @@ public CorePlugin() {
2526
*/
2627
public void start(BundleContext context) throws Exception {
2728
super.start(context);
29+
System.out.println("J2S legacy core plugin started");
2830
if (!InnerHotspotServer.isServerStarted()) {
2931
InnerHotspotServer.getSingletonServer().startServer();
3032
}
@@ -36,6 +38,7 @@ public void start(BundleContext context) throws Exception {
3638
public void stop(BundleContext context) throws Exception {
3739
super.stop(context);
3840
plugin = null;
41+
System.out.println("J2S legacy core plugin stopped");
3942
if (InnerHotspotServer.isServerStarted()) {
4043
InnerHotspotServer.getSingletonServer().stopServer();
4144
}

sources/net.sf.j2s.core/src/net/sf/j2s/core/compiler/Java2ScriptCompiler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public void run() {
7272
*/
7373
return ;
7474
}
75+
System.out.println("J2S loading file " + file);
7576
Properties props = new Properties();
7677
try {
7778
props.load(new FileInputStream(file));
@@ -117,6 +118,9 @@ public void run() {
117118
if (sourceUnit instanceof SourceFile) {
118119
SourceFile unitSource = (SourceFile) sourceUnit;
119120
String fileName = new String(unitSource.getFileName());
121+
122+
System.out.println("J2S processing file " + fileName);
123+
120124
int idx = fileName.lastIndexOf('/');
121125
String className = fileName.substring(idx + 1, fileName.lastIndexOf('.'));
122126
StringBuffer path = new StringBuffer();
@@ -423,6 +427,7 @@ public static void outputJavaScript(ASTScriptVisitor visitor, DependencyASTVisit
423427
File jsFile = new File(folderPath, elementName + ".js"); //$NON-NLS-1$
424428
try {
425429
FileOutputStream fos = new FileOutputStream(jsFile);
430+
System.out.println("J2S creating " + jsFile);
426431
if (addUTF8Header) {
427432
fos.write(new byte[] {(byte) 0xef, (byte) 0xbb, (byte) 0xbf}); // UTF-8 header!
428433
}

0 commit comments

Comments
 (0)