# HG changeset patch # User Jaroslav Tulach # Date 1372265061 -7200 # Node ID 5a907f38608d9b82c0ab0f461f32cba03519ddb6 # Parent e5b5c7af4f7fe61f54203f5ee6dd4305e3c4f71c Successfully compiles the new support for knockout diff -r e5b5c7af4f7f -r 5a907f38608d ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/ArchetypeVersionTest.java --- a/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/ArchetypeVersionTest.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/ArchetypeVersionTest.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.archetype.test; diff -r e5b5c7af4f7f -r 5a907f38608d ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/VerifyArchetypeTest.java --- a/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/VerifyArchetypeTest.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/VerifyArchetypeTest.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.archetype.test; diff -r e5b5c7af4f7f -r 5a907f38608d ko/archetype/src/main/java/org/apidesign/html/archetype/package-info.java --- a/ko/archetype/src/main/java/org/apidesign/html/archetype/package-info.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/archetype/src/main/java/org/apidesign/html/archetype/package-info.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,13 +9,10 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.archetype; diff -r e5b5c7af4f7f -r 5a907f38608d ko/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml --- a/ko/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml Wed Jun 26 18:44:21 2013 +0200 @@ -1,4 +1,23 @@ + diff -r e5b5c7af4f7f -r 5a907f38608d ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxImpl.java --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxImpl.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxImpl.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.ko2brwsr; diff -r e5b5c7af4f7f -r 5a907f38608d ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxPrvdr.java --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxPrvdr.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxPrvdr.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.ko2brwsr; diff -r e5b5c7af4f7f -r 5a907f38608d ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/ConvertTypes.java --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/ConvertTypes.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/ConvertTypes.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.ko2brwsr; diff -r e5b5c7af4f7f -r 5a907f38608d ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/Knockout.java --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/Knockout.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/Knockout.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.ko2brwsr; diff -r e5b5c7af4f7f -r 5a907f38608d ko/bck2brwsr/src/test/java/org/apidesign/html/ko2brwsr/Bck2BrwsrKnockoutTest.java --- a/ko/bck2brwsr/src/test/java/org/apidesign/html/ko2brwsr/Bck2BrwsrKnockoutTest.java Mon Jun 24 18:11:14 2013 +0200 +++ b/ko/bck2brwsr/src/test/java/org/apidesign/html/ko2brwsr/Bck2BrwsrKnockoutTest.java Wed Jun 26 18:44:21 2013 +0200 @@ -1,6 +1,6 @@ /** - * HTML via Java(tm) Language Bindings - * Copyright (C) 2013 Jaroslav Tulach + * Back 2 Browser Bytecode Translator + * Copyright (C) 2012 Jaroslav Tulach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -9,14 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. apidesign.org - * designates this particular file as subject to the - * "Classpath" exception as provided by apidesign.org - * in the License file that accompanied this code. + * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. Look for COPYING file in the top folder. - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException + * If not, see http://opensource.org/licenses/GPL-2.0. */ package org.apidesign.html.ko2brwsr; diff -r e5b5c7af4f7f -r 5a907f38608d launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java --- a/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java Mon Jun 24 18:11:14 2013 +0200 +++ b/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java Wed Jun 26 18:44:21 2013 +0200 @@ -17,6 +17,7 @@ */ package org.apidesign.bck2brwsr.launcher.fximpl; +import java.io.Reader; import org.apidesign.html.boot.spi.Fn; import java.net.URL; import java.util.ArrayList; @@ -104,6 +105,11 @@ public void displayPage(URL page, Runnable onPageLoad) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } + + @Override + public void loadScript(Reader code) throws Exception { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } } private static final class JSFn extends Fn { diff -r e5b5c7af4f7f -r 5a907f38608d launcher/fx/src/test/java/org/apidesign/bck2brwsr/launcher/fximpl/JsClassLoaderTest.java --- a/launcher/fx/src/test/java/org/apidesign/bck2brwsr/launcher/fximpl/JsClassLoaderTest.java Mon Jun 24 18:11:14 2013 +0200 +++ b/launcher/fx/src/test/java/org/apidesign/bck2brwsr/launcher/fximpl/JsClassLoaderTest.java Wed Jun 26 18:44:21 2013 +0200 @@ -17,6 +17,7 @@ */ package org.apidesign.bck2brwsr.launcher.fximpl; +import java.io.Reader; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URL; @@ -101,6 +102,11 @@ public void displayPage(URL page, Runnable onPageLoad) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } + + @Override + public void loadScript(Reader code) throws Exception { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } } loader = FnUtils.newLoader(new Fr(), new Fr(), parent); diff -r e5b5c7af4f7f -r 5a907f38608d pom.xml --- a/pom.xml Mon Jun 24 18:11:14 2013 +0200 +++ b/pom.xml Wed Jun 26 18:44:21 2013 +0200 @@ -90,6 +90,8 @@ rt/emul/compact/src/test/resources/** dew/src/main/resources/org/apidesign/bck2brwsr/dew/** javaquery/api/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout*.js + ko/archetype/src/main/resources/archetype-resources/** + ko/bck2brwsr/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout-2.2.1.js