3.2.0

Utility to make single JS from modified source.


In case you are modifying AW code (v1.0.1), you will have to switch from ‘runtime’ to ‘source’. This also means your browser will make numerous requests to server for each tiny file. Kind of ok for development environment but surely a NO GO for QA and Production environments.

There is an ANT build file in following archive, which can very well join all required files in correct order. This can be a life save in case you are making some change.

http://activewidgets.thej2ee.com/dist/simplegrid.tar.gz

Read ‘$License$’ as standard active widgets license. (sorry Alex)

Cheers,
Sudhaker Raj

PS: You need to modify it to work with v2.0.x
Sudhaker Raj
October 6,
It doesnt work!
Vipin
October 6,

You haven't mentioned about what is not working? Is it code or the link? I see this URL working fine from home and office both. Ant build file was tested long back on my un-official release of v1.0.1

Sudhaker Raj
October 6,

Ant build file for 'activewidgets-2-0-b1'. Works fine, but have not done extensive testing.

Command

C:\> ant clean
C:\> ant generate-runtime

<project name="ActiveWidgets" default="generate-runtime" basedir=".">

  <description>
        ActiveWidgets runtime build file.
    </description>

  <!-- set global properties for this build -->
  <property name="source" location="source" />
  <property name="runtime" location="runtime" />

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp />
    <mkdir dir="${runtime}" />
  </target>

  <target name="clean">
    <delete dir="${runtime}" />
  </target>

  <target name="generate-runtime" depends="generate-lib,generate-styles">
  </target>

  <target name="generate-lib" depends="init">
    <concat destfile="${runtime}/lib/aw.js" fixlastline="true">
      <filelist refid="files.js" />
    </concat>
  </target>

  <target name="generate-styles" depends="init">

    <concat destfile="${runtime}/styles/classic/aw.css" fixlastline="true">
      <filelist refid="files.css.classic" />
    </concat>
    <copy todir="${runtime}/styles/classic">
      <fileset dir="${source}/styles/classic" excludes="**/*.css" />
    </copy>

    <concat destfile="${runtime}/styles/mono/aw.css" fixlastline="true">
      <filelist refid="files.css.mono" />
    </concat>
    <copy todir="${runtime}/styles/mono">
      <fileset dir="${source}/styles/mono" excludes="**/*.css" />
    </copy>

    <concat destfile="${runtime}/styles/xp/aw.css" fixlastline="true">
      <filelist refid="files.css.xp" />
    </concat>
    <copy todir="${runtime}/styles/xp">
      <fileset dir="${source}/styles/xp" excludes="**/*.css" />
    </copy>

  </target>

  <!-- fileset definitions here -->

  <filelist id="files.js" dir="${source}/lib">

    <file name="namespaces/aw.js" />

    <file name="browsers/ie.js" />
    <file name="browsers/gecko.js" />

    <file name="system/object.js" />
    <file name="system/model.js" />
    <file name="system/format.js" />
    <file name="system/html.js" />
    <file name="system/template.js" />
    <file name="system/control.js" />

    <file name="formats/string.js" />
    <file name="formats/number.js" />
    <file name="formats/date.js" />
    <file name="formats/html.js" />

    <file name="html/tags.js" />

    <file name="templates/imagetext.js" />
    <file name="templates/image.js" />
    <file name="templates/text.js" />
    <file name="templates/link.js" />
    <file name="templates/checkbox.js" />
    <file name="templates/checkeditem.js" />
    <file name="templates/radio.js" />
    <file name="templates/popup.js" />
    <file name="templates/list.js" />

    <file name="scroll/bars.js" />

    <file name="panels/horizontal.js" />
    <file name="panels/vertical.js" />
    <file name="panels/grid.js" />

    <file name="ui/imagetext.js" />
    <file name="ui/label.js" />
    <file name="ui/group.js" />
    <file name="ui/button.js" />
    <file name="ui/link.js" />
    <file name="ui/input.js" />
    <file name="ui/list.js" />
    <file name="ui/tabs.js" />
    <file name="ui/combo.js" />
    <file name="ui/checkbox.js" />
    <file name="ui/checkedlist.js" />
    <file name="ui/radio.js" />

    <file name="grid/_size.js" />
    <file name="grid/_cell.js" />
    <file name="grid/_row.js" />
    <file name="grid/_view.js" />
    <file name="grid/_navigation.js" />
    <file name="grid/_sort.js" />
    <file name="grid/_overflow.js" />
    <file name="grid/_scroll.js" />
    <file name="grid/_width.js" />
    <file name="grid/_virtual.js" />
    <file name="grid/_grid.js" />
    <file name="grid/_extended.js" />

    <file name="grid/_singlecell.js" />
    <file name="grid/_singlerow.js" />
    <file name="grid/_multirowmarker.js" />

    <file name="grid/separator.js" />
    <file name="grid/header.js" />
    <file name="grid/row.js" />
    <file name="grid/rows.js" />
    <file name="grid/control.js" />
    <file name="grid/extended.js" />

    <file name="tree/item.js" />
    <file name="tree/view.js" />
    <file name="tree/group.js" />
    <file name="tree/control.js" />
    <file name="tree/grid.js" />
    <file name="tree/extended.js" />

    <file name="http/request.js" />
    <file name="csv/table.js" />
    <file name="xml/table.js" />
    <file name="ajax/engine.js" />
    
  </filelist>

  <filelist id="files.css.classic" dir="${source}/styles">
    <file name="common/system.css" />
    <file name="common/item.css" />
    <file name="common/text.css" />
    <file name="classic/group.css" />
    <file name="common/link.css" />
    <file name="common/button.css" />
    <file name="classic/button.css" />
    <file name="common/checkbox.css" />
    <file name="classic/checkbox.css" />
    <file name="common/input.css" />
    <file name="classic/input.css" />
    <file name="common/list.css" />
    <file name="classic/list.css" />
    <file name="classic/radio.css" />
    <file name="common/tabs.css" />
    <file name="classic/tabs.css" />
    <file name="common/combo.css" />
    <file name="classic/combo.css" />
    <file name="common/scroll.css" />
    <file name="common/panels.css" />
    <file name="common/grid.css" />
    <file name="classic/grid.css" />
    <file name="common/tree.css" />
    <file name="classic/tree.css" />
    <file name="classic/images.css" />
    <file name="classic/scrollbars.css" />
  </filelist>

  <filelist id="files.css.mono" dir="${source}/styles">
    <file name="common/system.css" />
    <file name="common/item.css" />
    <file name="common/text.css" />
    <file name="mono/group.css" />
    <file name="common/link.css" />
    <file name="common/button.css" />
    <file name="mono/button.css" />
    <file name="common/checkbox.css" />
    <file name="mono/checkbox.css" />
    <file name="common/input.css" />
    <file name="mono/input.css" />
    <file name="common/list.css" />
    <file name="mono/list.css" />
    <file name="mono/radio.css" />
    <file name="common/tabs.css" />
    <file name="mono/tabs.css" />
    <file name="common/combo.css" />
    <file name="mono/combo.css" />
    <file name="common/scroll.css" />
    <file name="common/panels.css" />
    <file name="common/grid.css" />
    <file name="mono/grid.css" />
    <file name="common/tree.css" />
    <file name="mono/tree.css" />
    <file name="mono/images.css" />
    <file name="mono/scrollbars.css" />
  </filelist>

  <filelist id="files.css.xp" dir="${source}/styles">
    <file name="common/system.css" />
    <file name="common/item.css" />
    <file name="common/text.css" />
    <file name="xp/group.css" />
    <file name="common/link.css" />
    <file name="common/button.css" />
    <file name="xp/button.css" />
    <file name="common/checkbox.css" />
    <file name="xp/checkbox.css" />
    <file name="common/input.css" />
    <file name="xp/input.css" />
    <file name="common/list.css" />
    <file name="xp/list.css" />
    <file name="xp/radio.css" />
    <file name="common/tabs.css" />
    <file name="xp/tabs.css" />
    <file name="common/combo.css" />
    <file name="xp/combo.css" />
    <file name="common/scroll.css" />
    <file name="common/panels.css" />
    <file name="common/grid.css" />
    <file name="xp/grid.css" />
    <file name="common/tree.css" />
    <file name="xp/tree.css" />
    <file name="xp/images.css" />
    <file name="xp/scrollbars.css" />
  </filelist>

</project>
Sudhaker Raj
October 6,

This topic is archived.

See also:


Back to support forum