Subversion Repositories eFlore/Applications.coel

Rev

Rev 1675 | Rev 1682 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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

  <property file="build.properties"/>
  <property name="gxtdestdir" value="src/org/tela_botanica/public"/>
  <property name="confparams" value=""/>

  <path id="gwt">
    <!-- todo: utiliser le mode de configuration des chemins du build.xml du CEL -->
        <fileset includes="*.jar" dir="${user.home}/src/gwt/gwt/build/lib"/>
        <fileset includes="*.jar" dir="${user.home}/src/gwt/gwt-google-apis/maps/build/lib"/>
        <fileset includes="gxt-2.3.0-gwt22.jar" dir="${user.home}/src/gwt/gxt"/>
        <pathelement location="src" />
  </path>

  <!-- todo: must be inside coel*.gwt.xml in some way -->
  <target name="link-resources">
        <mkdir dir="${gxtdestdir}"/>
        <!-- doit lier "resources" dans upstream à src/org/.../public/gxt -->
        <symlink overwrite="true" link="${gxtdestdir}/gxt" resource="${gxtresdir}"/>
  </target>


  <target name="test"><echoproperties/></target> <!-- sometimes useful -->

  <target name="compile" depends="link-resources">
        <!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
        <java classname="com.google.gwt.dev.Compiler" fork="true">
          <arg line="-localWorkers 2 -style DETAILED ${projectName}"/>
          <!-- <arg line="-out build/gwtOutput"/> -->
          <classpath refid="gwt"/>
        </java>
        <exec resolveexecutable="true" executable="Coel-config" />
  </target> 

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

  <target name="config">
        <echo message="mise à jour de ${apropos}"/>
        <exec resolveexecutable="true" executable="Coel-config">
          <arg line="${apropos} ${confparams}"/>
        </exec>
        <echo message="please do # rsync -avuin --no-o --no-g --exclude=WEB-INF war/ ${desthost}:${destdir}/"/>
        <echo message="scp -p ${apropos} ${desthost}:${destdir}/config/apropos.js"/>
  </target> 



  <target name="debug" depends="link-resources">
        <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="testlive">
        <java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
          <arg line="-startupUrl http://${celhost}/war/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectTestName}" />
          <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/Coel.html -whitelist http://www.tela-botanica.org -noserver -codeServerPort auto ${projectName}" />
          <classpath refid="gwt"/>
        </java>
  </target> 

</project>