1 Reply Latest reply on May 24, 2010 5:05 PM by GordonSmith

    compc task

    athiroy

      hi

      i use compc task to compile mxml files.

       

       

      the ant build file is

       

      <target name="appcompile">
                  <compc
                      output="${catalina.home}/webapps/${app.name}/CampusPage.swf">
                       <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                          <include name="${web.home}/WEB-INF/lib/" />
                          <include name="${flexsrc.home}/example/" />
                         </compiler.library-path>
                         <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                         <source-path path-element="${FLEX_HOME}/frameworks" />
                  </compc>
              </target>

       

       

       

      <target name="createHtmlWrapper" depends="appcompile">
        <html-wrapper application="${APP_ROOT}/CampusPage.mxml" height="1000" width="1000"  output="${catalina.home}/webapps/${app.name}" swf="CampusPage" />

      </target>

       

      but the error is

      [compc] Error: nothing was specified to be included in the library
          [compc] Use 'compc -help' for information about using the command line.

       

       

      any body help me

       

      regards

      athi

        • 1. Re: compc task
          GordonSmith Level 4

          You need to use options like -include-namespaces or -include-classes to tell compc what to put into the SWC. Are you expecting it to put everything on the source path into the SWC? It doesn't work that way.

           

          Gordon Smith

          Adobe Flex SDK Team