Subversion Repositories eFlore/Applications.cel

Rev

Rev 1370 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

<project name="cel_GWT2" xmlns:artifact="urn:maven-artifact-ant" basedir=".">

  <property name="projectName" value="org.tela_botanica.cel2" />
  <property name="celhost" value="cel" /> <!-- ou localhost -->

  <target name="init">
        <property file="local.properties" />
        <property name="server-url" value="${server-url}" />
        <property name="server-login" value="${server-login}" />
        <property name="server-password" value="${server-password}" />
        <property name="server-dir" value="${server-dir}" />
        <property name="gwt-path" value="${gwt-path}" />
  </target>

  
  <target name="generate-vocabulary" depends="init">
        <java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
          <arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
          <classpath>
                <path>
                  <pathelement location="${gwt-path}/gwt-user.jar" />
                  <pathelement location="${gwt-path}/gwt-dev.jar" />
                  <pathelement location="src" />
                </path>
          </classpath>
        </java>
  </target>


  <path id="gwt">
        <fileset includes="*.jar" dir="${user.home}/gwt/build/lib"/>
        <fileset includes="*.jar" dir="${user.home}/gwt-google-apis/maps/build/lib"/>
        <fileset includes="*.jar" dir="${user.home}/gwt-ext/build/lib"/>
        <fileset includes="*.jar" dir="${user.home}/gwt-ext-ux/build/lib"/>
        <pathelement location="src" />
  </path>

  <target name="compile">
        <!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
        <java classname="com.google.gwt.dev.Compiler" fork="true">
          <arg line="-style DETAILED ${projectName}"/>
          <!-- <arg line="-out build/gwtOutput"/> -->
          <classpath refid="gwt"/>
        </java>
  </target> 

  <target name="quick">
        <java classname="com.google.gwt.dev.Compiler" fork="true">
          <arg line="-style DETAILED -draftCompile ${projectName}" />
          <classpath refid="gwt"/>
        </java>
  </target> 


  <target name="debug">
        <java classname="com.google.gwt.dev.Compiler" fork="true">
          <arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
          <arg value="${projectName}" />
          <classpath refid="gwt"/>
        </java>
  </target> 


  <target name="live">
        <java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
          <arg line="-startupUrl http://${celhost}/war/cel2.html -noserver -codeServerPort auto ${projectName}" />
          <classpath refid="gwt"/>
        </java>
  </target> 


</project>