Using the HTML/Java name as the benchmark is generic and can also work on JavaFX

This commit is contained in:
Jaroslav Tulach 2015-02-27 08:39:55 +01:00
parent cf8645decf
commit e048987b4f
5 changed files with 6 additions and 6 deletions

View File

@ -108,7 +108,7 @@
<configuration>
<archive>
<manifest>
<mainClass>org.teamvm.samples.benchmark.bck2brwsr.BenchmarkStarter</mainClass>
<mainClass>org.teamvm.samples.benchmark.htmljava.BenchmarkStarter</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<useUniqueVersions>false</useUniqueVersions>
@ -179,7 +179,7 @@
<mainJavaScript>${project.build.directory}/generated/js/b2b-benchmark.js</mainJavaScript>
<vm>${project.build.directory}/generated/js/bck2brwsr.js</vm>
<exports>
<export>org.teavm.samples.benchmark.bck2brwsr.BenchmarkStarter</export>
<export>org.teavm.samples.benchmark.htmljava.BenchmarkStarter</export>
<export>org/jbox2d/collision/shapes/</export>
<export>org/jbox2d/common/</export>
<export>org/jbox2d/dynamics/</export>
@ -235,7 +235,7 @@
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<mainClass>org.teavm.samples.benchmark.bck2brwsr.BenchmarkFX</mainClass>
<mainClass>org.teavm.samples.benchmark.htmljava.BenchmarkFX</mainClass>
</configuration>
</plugin>
</plugins>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.teavm.samples.benchmark.bck2brwsr;
package org.teavm.samples.benchmark.htmljava;
import net.java.html.boot.BrowserBuilder;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.teavm.samples.benchmark.bck2brwsr;
package org.teavm.samples.benchmark.htmljava;
import com.dukescript.api.canvas.GraphicsContext2D;
import com.dukescript.api.canvas.Style;

View File

@ -39,7 +39,7 @@
<script type="text/javascript" src="bck2brwsr.js"></script>
<script>
var vm = bck2brwsr('b2b-benchmark.js');
var c = vm.loadClass('org.teavm.samples.benchmark.bck2brwsr.BenchmarkStarter');
var c = vm.loadClass('org.teavm.samples.benchmark.htmljava.BenchmarkStarter');
c.invoke('main');
</script>