Skip to content
Steve Hannah edited this page Oct 15, 2015 · 8 revisions
  1. Download [cn1css-ant-task.jar](https://github.com/shannah/cn1-css/releases/download/1.0/cn1css-ant-task.jar) and copy into your project’s lib directory.

  2. Copy the following snippet into you project’s build.xml file:

        <taskdef name="compileCSS"
            classname="com.codename1.ui.css.CN1CSSCompileTask"
            classpath="lib/cn1css-ant-task.jar"/>
    
        <target name="compile-css">
            <compileCSS/>
        </target>
  3. Change the following line in your project’s build.xml file:

     <target name="-pre-compile">

    to

     <target name="-pre-compile" depends="compile-css">

Clone this wiki locally