Results 1 to 2 of 2

Thread: Compile w/ ANT File

  1. #1
    Ext JS Premium Member firejack's Avatar
    Join Date
    Apr 2007
    Baltimore, MD

    Exclamation Compile w/ ANT File

    I am attempting to get a GWT-compile working properly through my ANT file with the following target:

    <!-- This target calls Demo-compile to create
    all the content in the ./www directory -->
    <target name="gwt-compile" depends="compile.production.classes" description="use gwt's compiler">
    <!-- delete the files in the web deployment directory -->
    <fileset dir="${web.deploy.location}" includes="**/*"/>
    <!-- execute the compile script generated for the project -->
    <exec executable="${module.gwtproj.basedir}/Demo-compile" failonerror="true"/>
    <!-- copy files from /www location to the web deployment location -->
    <copy todir="${web.deploy.location}">
    <fileset dir="${module.gwtproj.basedir}/www"></fileset>

    My Demo-compile file looks like this:

    java -XstartOnFirstThread -Xmx256M -cp "/home/wkspace/proj/gxt-test/src:/home/wkspace/proj/gxt-test/bin:/home/libs/gwt-mac-1.5.0/gwt-user.jar:/home/libs/gwt-mac-1.5.0/gwt-dev-mac.jar:/home/libs/gxt-1.1.2/gxt.jar:/home/libs/gxt-1.1.2/samples/resources/src" -out "/home/wkspace/proj/gxt-test/www" "[email protected]" demo.Demo;

    And my module depends on the Resources module for some images, etc. Right now, I am getting NullPointer and ClassNotFound exceptions when I invoke the compiler. Specifically - BeanModelLookup

  2. #2


    you can compile directly with ant. I use this:

    <target name="GWTcompile" depends="init">
       <javac target="1.5" srcdir="./src" destdir="${builddir}/www/WEB-INF/classes" classpathref="project.class.path">
       <java classpathref="project.class.path"  classname="" fork="true">
          <jvmarg line="-Xmx512M"/>
          <arg value="-out"/>
          <arg value="${builddir}/www"/>
          <arg value="${Module}"/>
       <move todir="${builddir}/www">
         <fileset dir="${builddir}/www/${Module}">
                           <include name="**/*.*"/>
               <delete dir="${builddir}/www/${module}"/>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts