summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkitfox2007-04-18 20:22:08 +0200
committerkitfox2007-04-18 20:22:08 +0200
commit1f9e3a61b4acd38081778275324802a79c01eb3e (patch)
tree49825a274e9a51e8dfd34da1baea87442bf47705
parentSwitching to W3C's Java binding. (diff)
downloadsvg-salamander-core-1f9e3a61b4acd38081778275324802a79c01eb3e.tar.gz
svg-salamander-core-1f9e3a61b4acd38081778275324802a79c01eb3e.tar.xz
svg-salamander-core-1f9e3a61b4acd38081778275324802a79c01eb3e.zip
Updating web
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@27 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
-rwxr-xr-xbuild.xml2
-rwxr-xr-xmanifest.mf2
-rw-r--r--src/test/java/com/kitfox/salamander/javascript/JSTest.java40
3 files changed, 42 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 967d469..467416c 100755
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="svg-salamander-core">
<description>
- General 2D and 3D graphics routines
+ Java 2D graphics pipeline inspired by SVG
</description>
<import file="../build-NBUtil.xml"/>
diff --git a/manifest.mf b/manifest.mf
index b25c343..0d75d09 100755
--- a/manifest.mf
+++ b/manifest.mf
@@ -9,6 +9,6 @@ Specification-Title: SVG Salamander
Specification-Version: 1
Specification-Vendor: Kitfox
Implementation-Title: svg-salamander-core
-Implementation-Version: Version 1, Date April 13 2007
+Implementation-Version: Version 1, Date April 16 2007
Implementation-Vendor: Mark McKay, mark@kitfox.com
diff --git a/src/test/java/com/kitfox/salamander/javascript/JSTest.java b/src/test/java/com/kitfox/salamander/javascript/JSTest.java
new file mode 100644
index 0000000..4651298
--- /dev/null
+++ b/src/test/java/com/kitfox/salamander/javascript/JSTest.java
@@ -0,0 +1,40 @@
+/*
+ * JSTest.java
+ *
+ * Created on April 16, 2007, 12:59 AM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package com.kitfox.salamander.javascript;
+
+import javax.script.ScriptEngine;
+import javax.script.ScriptEngineManager;
+import javax.script.ScriptException;
+
+/**
+ * http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/
+ *
+ * @author kitfox
+ */
+public class JSTest
+{
+
+ /** Creates a new instance of JSTest */
+ public JSTest()
+ {
+ ScriptEngineManager mgr = new ScriptEngineManager();
+ ScriptEngine jsEngine = mgr.getEngineByName("JavaScript");
+ try {
+ jsEngine.eval("print('Hello, world!')");
+ } catch (ScriptException ex) {
+ ex.printStackTrace();
+ }
+ }
+
+ public static void main(String[] args)
+ {
+ new JSTest();
+ }
+}