Include stub versions of the Java->JavaScript bridge interface so that we
compile properly and we'll link against the real deal at runtime.
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
<!-- builds our distribution files -->
|
||||
<target name="dist" depends="check-available,compile">
|
||||
<jar destfile="${deploy.dir}/${app.name}.jar" manifest="lib/manifest.mf"
|
||||
basedir="${deploy.dir}/classes"/>
|
||||
basedir="${deploy.dir}/classes" excludes="**/netscape/**"/>
|
||||
</target>
|
||||
|
||||
<!-- optimizes, combines and removes dead code -->
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package netscape.javascript;
|
||||
|
||||
/**
|
||||
* This just exists to compile against so that we don't have to link against plugin.jar
|
||||
*/
|
||||
public class JSException extends RuntimeException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package netscape.javascript;
|
||||
|
||||
import java.applet.Applet;
|
||||
|
||||
/**
|
||||
* This just exists to compile against so that we don't have to link against plugin.jar
|
||||
*/
|
||||
public abstract class JSObject
|
||||
{
|
||||
public abstract Object call (String func, Object[] args) throws JSException;
|
||||
public abstract Object eval (String code) throws JSException;
|
||||
public abstract Object getMember (String name) throws JSException;
|
||||
public abstract void setMember (String name, Object value) throws JSException;
|
||||
public abstract void removeMember (String name) throws JSException;
|
||||
public abstract Object getSlot (int slot) throws JSException;
|
||||
public abstract void setSlot (int slot, Object value) throws JSException;
|
||||
|
||||
public static JSObject getWindow (Applet applet)
|
||||
throws JSException
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user