Jalview-JS/JAL-3253-applet Creating
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sun, 19 May 2019 03:35:43 +0000 (22:35 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sun, 19 May 2019 04:26:59 +0000 (23:26 -0500)
commit0c648e74175ca878f88f369e886726ab22bc153b
tree7d1140def622e27ea78cf32bfdca9e390b071921
parent4ba1c57b4ce0b3708b245633a109442dc88f586c
Jalview-JS/JAL-3253-applet Creating
site/swingjs/j2s/com/stevesoft/core.js

Applying a simple trick to use a custom core file.

1) In buildcore.xml:

   <!-- concatentate the stevesoft files -->
    <concat destfile="${site.path}/j2s/com/stevesoft/core.js">
        <fileset dir="${site.path}/j2s/com/stevesoft">
          <include name="**/*.js" />
         <exclude name="core.js" />
         <exclude name="Regex.js" />
        </fileset>
    </concat>
    <antcall target="call-core">
      <param name="call-core.name" value="_stevesoft" />
      <param name="call-core.list" value="com/stevesoft/core.js" />
    </antcall>

2) In com/stevesoft, add a line that loads j2s/core/core_stevesoft.z.js

      static
  {
    /**
     * @j2sNative
     *
     *            swingjs.JSUtil.loadStaticResource$S("core/core_stevesoft.z.js");
     */
  }
buildcore.xml
src/com/stevesoft/pat/Regex.java
swingjs/SwingJS-site.zip
swingjs/_j2sclasslist.txt
swingjs/timestamp
swingjs/ver/3.2.4/SwingJS-site.zip
swingjs/ver/3.2.4/_j2sclasslist.txt
swingjs/ver/3.2.4/timestamp