Successfully compiles the new support for knockout classloader
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 26 Jun 2013 18:44:21 +0200
branchclassloader
changeset 12275a907f38608d
parent 1226 e5b5c7af4f7f
child 1228 462dd9238173
Successfully compiles the new support for knockout
ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/ArchetypeVersionTest.java
ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/VerifyArchetypeTest.java
ko/archetype/src/main/java/org/apidesign/html/archetype/package-info.java
ko/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxImpl.java
ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxPrvdr.java
ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/ConvertTypes.java
ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/Knockout.java
ko/bck2brwsr/src/test/java/org/apidesign/html/ko2brwsr/Bck2BrwsrKnockoutTest.java
launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java
launcher/fx/src/test/java/org/apidesign/bck2brwsr/launcher/fximpl/JsClassLoaderTest.java
pom.xml
     1.1 --- a/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/ArchetypeVersionTest.java	Mon Jun 24 18:11:14 2013 +0200
     1.2 +++ b/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/ArchetypeVersionTest.java	Wed Jun 26 18:44:21 2013 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  /**
     1.5 - * HTML via Java(tm) Language Bindings
     1.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     1.7 + * Back 2 Browser Bytecode Translator
     1.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     1.9   *
    1.10   * This program is free software: you can redistribute it and/or modify
    1.11   * it under the terms of the GNU General Public License as published by
    1.12 @@ -9,14 +9,11 @@
    1.13   * This program is distributed in the hope that it will be useful,
    1.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.16 - * GNU General Public License for more details. apidesign.org
    1.17 - * designates this particular file as subject to the
    1.18 - * "Classpath" exception as provided by apidesign.org
    1.19 - * in the License file that accompanied this code.
    1.20 + * GNU General Public License for more details.
    1.21   *
    1.22   * You should have received a copy of the GNU General Public License
    1.23   * along with this program. Look for COPYING file in the top folder.
    1.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    1.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    1.26   */
    1.27  package org.apidesign.html.archetype.test;
    1.28  
     2.1 --- a/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/VerifyArchetypeTest.java	Mon Jun 24 18:11:14 2013 +0200
     2.2 +++ b/ko/archetype-test/src/test/java/org/apidesign/html/archetype/test/VerifyArchetypeTest.java	Wed Jun 26 18:44:21 2013 +0200
     2.3 @@ -1,6 +1,6 @@
     2.4  /**
     2.5 - * HTML via Java(tm) Language Bindings
     2.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     2.7 + * Back 2 Browser Bytecode Translator
     2.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     2.9   *
    2.10   * This program is free software: you can redistribute it and/or modify
    2.11   * it under the terms of the GNU General Public License as published by
    2.12 @@ -9,14 +9,11 @@
    2.13   * This program is distributed in the hope that it will be useful,
    2.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    2.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2.16 - * GNU General Public License for more details. apidesign.org
    2.17 - * designates this particular file as subject to the
    2.18 - * "Classpath" exception as provided by apidesign.org
    2.19 - * in the License file that accompanied this code.
    2.20 + * GNU General Public License for more details.
    2.21   *
    2.22   * You should have received a copy of the GNU General Public License
    2.23   * along with this program. Look for COPYING file in the top folder.
    2.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    2.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    2.26   */
    2.27  package org.apidesign.html.archetype.test;
    2.28  
     3.1 --- a/ko/archetype/src/main/java/org/apidesign/html/archetype/package-info.java	Mon Jun 24 18:11:14 2013 +0200
     3.2 +++ b/ko/archetype/src/main/java/org/apidesign/html/archetype/package-info.java	Wed Jun 26 18:44:21 2013 +0200
     3.3 @@ -1,6 +1,6 @@
     3.4  /**
     3.5 - * HTML via Java(tm) Language Bindings
     3.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     3.7 + * Back 2 Browser Bytecode Translator
     3.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     3.9   *
    3.10   * This program is free software: you can redistribute it and/or modify
    3.11   * it under the terms of the GNU General Public License as published by
    3.12 @@ -9,13 +9,10 @@
    3.13   * This program is distributed in the hope that it will be useful,
    3.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    3.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    3.16 - * GNU General Public License for more details. apidesign.org
    3.17 - * designates this particular file as subject to the
    3.18 - * "Classpath" exception as provided by apidesign.org
    3.19 - * in the License file that accompanied this code.
    3.20 + * GNU General Public License for more details.
    3.21   *
    3.22   * You should have received a copy of the GNU General Public License
    3.23   * along with this program. Look for COPYING file in the top folder.
    3.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    3.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    3.26   */
    3.27  package org.apidesign.html.archetype;
     4.1 --- a/ko/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml	Mon Jun 24 18:11:14 2013 +0200
     4.2 +++ b/ko/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml	Wed Jun 26 18:44:21 2013 +0200
     4.3 @@ -1,4 +1,23 @@
     4.4  <?xml version="1.0" encoding="UTF-8"?>
     4.5 +<!--
     4.6 +
     4.7 +    Back 2 Browser Bytecode Translator
     4.8 +    Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     4.9 +
    4.10 +    This program is free software: you can redistribute it and/or modify
    4.11 +    it under the terms of the GNU General Public License as published by
    4.12 +    the Free Software Foundation, version 2 of the License.
    4.13 +
    4.14 +    This program is distributed in the hope that it will be useful,
    4.15 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    4.16 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    4.17 +    GNU General Public License for more details.
    4.18 +
    4.19 +    You should have received a copy of the GNU General Public License
    4.20 +    along with this program. Look for COPYING file in the top folder.
    4.21 +    If not, see http://opensource.org/licenses/GPL-2.0.
    4.22 +
    4.23 +-->
    4.24  <archetype-descriptor name="FX/Bck2Brwsr Example">
    4.25    <fileSets>
    4.26      <fileSet filtered="true" packaged="true">
     5.1 --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxImpl.java	Mon Jun 24 18:11:14 2013 +0200
     5.2 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxImpl.java	Wed Jun 26 18:44:21 2013 +0200
     5.3 @@ -1,6 +1,6 @@
     5.4  /**
     5.5 - * HTML via Java(tm) Language Bindings
     5.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     5.7 + * Back 2 Browser Bytecode Translator
     5.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     5.9   *
    5.10   * This program is free software: you can redistribute it and/or modify
    5.11   * it under the terms of the GNU General Public License as published by
    5.12 @@ -9,14 +9,11 @@
    5.13   * This program is distributed in the hope that it will be useful,
    5.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    5.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    5.16 - * GNU General Public License for more details. apidesign.org
    5.17 - * designates this particular file as subject to the
    5.18 - * "Classpath" exception as provided by apidesign.org
    5.19 - * in the License file that accompanied this code.
    5.20 + * GNU General Public License for more details.
    5.21   *
    5.22   * You should have received a copy of the GNU General Public License
    5.23   * along with this program. Look for COPYING file in the top folder.
    5.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    5.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    5.26   */
    5.27  package org.apidesign.html.ko2brwsr;
    5.28  
     6.1 --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxPrvdr.java	Mon Jun 24 18:11:14 2013 +0200
     6.2 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/BrwsrCtxPrvdr.java	Wed Jun 26 18:44:21 2013 +0200
     6.3 @@ -1,6 +1,6 @@
     6.4  /**
     6.5 - * HTML via Java(tm) Language Bindings
     6.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     6.7 + * Back 2 Browser Bytecode Translator
     6.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     6.9   *
    6.10   * This program is free software: you can redistribute it and/or modify
    6.11   * it under the terms of the GNU General Public License as published by
    6.12 @@ -9,14 +9,11 @@
    6.13   * This program is distributed in the hope that it will be useful,
    6.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    6.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6.16 - * GNU General Public License for more details. apidesign.org
    6.17 - * designates this particular file as subject to the
    6.18 - * "Classpath" exception as provided by apidesign.org
    6.19 - * in the License file that accompanied this code.
    6.20 + * GNU General Public License for more details.
    6.21   *
    6.22   * You should have received a copy of the GNU General Public License
    6.23   * along with this program. Look for COPYING file in the top folder.
    6.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    6.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    6.26   */
    6.27  package org.apidesign.html.ko2brwsr;
    6.28  
     7.1 --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/ConvertTypes.java	Mon Jun 24 18:11:14 2013 +0200
     7.2 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/ConvertTypes.java	Wed Jun 26 18:44:21 2013 +0200
     7.3 @@ -1,6 +1,6 @@
     7.4  /**
     7.5 - * HTML via Java(tm) Language Bindings
     7.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     7.7 + * Back 2 Browser Bytecode Translator
     7.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     7.9   *
    7.10   * This program is free software: you can redistribute it and/or modify
    7.11   * it under the terms of the GNU General Public License as published by
    7.12 @@ -9,14 +9,11 @@
    7.13   * This program is distributed in the hope that it will be useful,
    7.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    7.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    7.16 - * GNU General Public License for more details. apidesign.org
    7.17 - * designates this particular file as subject to the
    7.18 - * "Classpath" exception as provided by apidesign.org
    7.19 - * in the License file that accompanied this code.
    7.20 + * GNU General Public License for more details.
    7.21   *
    7.22   * You should have received a copy of the GNU General Public License
    7.23   * along with this program. Look for COPYING file in the top folder.
    7.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    7.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    7.26   */
    7.27  package org.apidesign.html.ko2brwsr;
    7.28  
     8.1 --- a/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/Knockout.java	Mon Jun 24 18:11:14 2013 +0200
     8.2 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/html/ko2brwsr/Knockout.java	Wed Jun 26 18:44:21 2013 +0200
     8.3 @@ -1,6 +1,6 @@
     8.4  /**
     8.5 - * HTML via Java(tm) Language Bindings
     8.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     8.7 + * Back 2 Browser Bytecode Translator
     8.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     8.9   *
    8.10   * This program is free software: you can redistribute it and/or modify
    8.11   * it under the terms of the GNU General Public License as published by
    8.12 @@ -9,14 +9,11 @@
    8.13   * This program is distributed in the hope that it will be useful,
    8.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    8.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    8.16 - * GNU General Public License for more details. apidesign.org
    8.17 - * designates this particular file as subject to the
    8.18 - * "Classpath" exception as provided by apidesign.org
    8.19 - * in the License file that accompanied this code.
    8.20 + * GNU General Public License for more details.
    8.21   *
    8.22   * You should have received a copy of the GNU General Public License
    8.23   * along with this program. Look for COPYING file in the top folder.
    8.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    8.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    8.26   */
    8.27  package org.apidesign.html.ko2brwsr;
    8.28  
     9.1 --- a/ko/bck2brwsr/src/test/java/org/apidesign/html/ko2brwsr/Bck2BrwsrKnockoutTest.java	Mon Jun 24 18:11:14 2013 +0200
     9.2 +++ b/ko/bck2brwsr/src/test/java/org/apidesign/html/ko2brwsr/Bck2BrwsrKnockoutTest.java	Wed Jun 26 18:44:21 2013 +0200
     9.3 @@ -1,6 +1,6 @@
     9.4  /**
     9.5 - * HTML via Java(tm) Language Bindings
     9.6 - * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     9.7 + * Back 2 Browser Bytecode Translator
     9.8 + * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     9.9   *
    9.10   * This program is free software: you can redistribute it and/or modify
    9.11   * it under the terms of the GNU General Public License as published by
    9.12 @@ -9,14 +9,11 @@
    9.13   * This program is distributed in the hope that it will be useful,
    9.14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    9.15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    9.16 - * GNU General Public License for more details. apidesign.org
    9.17 - * designates this particular file as subject to the
    9.18 - * "Classpath" exception as provided by apidesign.org
    9.19 - * in the License file that accompanied this code.
    9.20 + * GNU General Public License for more details.
    9.21   *
    9.22   * You should have received a copy of the GNU General Public License
    9.23   * along with this program. Look for COPYING file in the top folder.
    9.24 - * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    9.25 + * If not, see http://opensource.org/licenses/GPL-2.0.
    9.26   */
    9.27  package org.apidesign.html.ko2brwsr;
    9.28  
    10.1 --- a/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java	Mon Jun 24 18:11:14 2013 +0200
    10.2 +++ b/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java	Wed Jun 26 18:44:21 2013 +0200
    10.3 @@ -17,6 +17,7 @@
    10.4   */
    10.5  package org.apidesign.bck2brwsr.launcher.fximpl;
    10.6  
    10.7 +import java.io.Reader;
    10.8  import org.apidesign.html.boot.spi.Fn;
    10.9  import java.net.URL;
   10.10  import java.util.ArrayList;
   10.11 @@ -104,6 +105,11 @@
   10.12          public void displayPage(URL page, Runnable onPageLoad) {
   10.13              throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   10.14          }
   10.15 +
   10.16 +        @Override
   10.17 +        public void loadScript(Reader code) throws Exception {
   10.18 +            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   10.19 +        }
   10.20      }
   10.21      
   10.22      private static final class JSFn extends Fn {
    11.1 --- a/launcher/fx/src/test/java/org/apidesign/bck2brwsr/launcher/fximpl/JsClassLoaderTest.java	Mon Jun 24 18:11:14 2013 +0200
    11.2 +++ b/launcher/fx/src/test/java/org/apidesign/bck2brwsr/launcher/fximpl/JsClassLoaderTest.java	Wed Jun 26 18:44:21 2013 +0200
    11.3 @@ -17,6 +17,7 @@
    11.4   */
    11.5  package org.apidesign.bck2brwsr.launcher.fximpl;
    11.6  
    11.7 +import java.io.Reader;
    11.8  import java.lang.reflect.InvocationTargetException;
    11.9  import java.lang.reflect.Method;
   11.10  import java.net.URL;
   11.11 @@ -101,6 +102,11 @@
   11.12              public void displayPage(URL page, Runnable onPageLoad) {
   11.13                  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   11.14              }
   11.15 +
   11.16 +            @Override
   11.17 +            public void loadScript(Reader code) throws Exception {
   11.18 +                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   11.19 +            }
   11.20          }
   11.21          
   11.22          loader = FnUtils.newLoader(new Fr(), new Fr(), parent);
    12.1 --- a/pom.xml	Mon Jun 24 18:11:14 2013 +0200
    12.2 +++ b/pom.xml	Wed Jun 26 18:44:21 2013 +0200
    12.3 @@ -90,6 +90,8 @@
    12.4                         <exclude>rt/emul/compact/src/test/resources/**</exclude>
    12.5                         <exclude>dew/src/main/resources/org/apidesign/bck2brwsr/dew/**</exclude>
    12.6                         <exclude>javaquery/api/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout*.js</exclude>
    12.7 +                       <exclude>ko/archetype/src/main/resources/archetype-resources/**</exclude>
    12.8 +                       <exclude>ko/bck2brwsr/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout-2.2.1.js</exclude>
    12.9                    </excludes>
   12.10                </configuration>
   12.11            </plugin>