Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2107 → Rev 2108

/trunk/build.xml
1,19 → 1,9
<project name="cel_GWT2" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
<project name="cel" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
 
<property file="local.properties" />
<property file="build.properties"/>
<property name="extjsdestdir" value="src/org/tela_botanica/public/js/ext"/>
 
<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">
<target name="generate-vocabulary">
<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
<arg value="org.tela_botanica.client.i18n.VocabulaireMetadonnees" />
<classpath>
26,62 → 16,67
</java>
</target>
 
 
<path id="gwt">
<fileset includes="*.jar" dir="${gwt-path}/gwt/build/lib"/>
<fileset includes="*.jar" dir="${gwt-path}/gwt-google-apis/maps/build/lib"/>
<fileset includes="gwtext.jar" dir="${gwt-path}/gwt-ext/build/lib"/>
<!-- alternativement, en cas de passage (très hypothétique) a gwt 3:
<fileset includes="gxt-legacy-3.0.1.jar" dir="${gwt-path}/gxt"/>
<fileset includes="gxt-3.0.1.jar" dir="${gwt-path}/gxt"/> -->
<fileset includes="*.jar" dir="${gwt-path}/gwt-ext-ux/build/lib"/>
<fileset includes="*.jar" dir="${gwt-path}" />
<fileset includes="*.jar" dir="${gwt-maps-path}" />
<fileset includes="gwtext.jar" dir="${gwt-ext-path}" />
<fileset includes="*.jar" dir="${gwt-ext-ux-path}" />
<pathelement location="src" />
</path>
 
<!-- todo: must be inside cel2.gwt.xml in some way -->
<target name="link-resources">
<mkdir dir="${extjsdestdir}"/>
<mkdir dir="${extjsdestdir}/adapter/ext"/> <!-- normalement optionnel en extjs 4.2.1 -->
<symlink overwrite="true" link="${extjsdestdir}/adapter/ext/" resource="${extjsdir}/adapter/ext/ext-base.js"/>
<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/ext-all.js"/>
<symlink overwrite="true" link="${extjsdestdir}" resource="${extjsdir}/resources"/>
<mkdir dir="${ext-js-dest-dir}"/>
<mkdir dir="${ext-js-dest-dir}/resources"/>
<mkdir dir="${ext-js-dest-dir}/adapter/ext"/>
<copy file="${ext-js-dir}/ext-all.js" todir="${ext-js-dest-dir}"/>
<copy todir="${ext-js-dest-dir}/resources">
<fileset dir="${ext-js-dir}/resources"/>
</copy>
<copy file="${ext-js-dir}/adapter/ext/ext-base.js" todir="${ext-js-dest-dir}/adapter/ext"/>
<copy todir="${js-dest-dir}">
<fileset dir="vendors/gwt-ext-ux"/>
</copy>
</target>
 
 
<!-- Affiche toutes les propriétés -->
<target name="test"><echoproperties/></target> <!-- sometimes useful -->
 
<target name="compile" depends="link-resources">
<!-- <java classname="com.google.gwt.dev.GWTCompiler" fork="true"> -->
<!-- Compile l'application pour la prod -->
<target name="compile">
<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>
<antcall target="link-resources"></antcall>
</target>
 
<target name="quick" depends="link-resources">
<!-- Compilation rapide (draft) -->
<target name="compile-quick">
<java classname="com.google.gwt.dev.Compiler" fork="true">
<arg line="-style DETAILED -draftCompile ${projectTestName}" />
<classpath refid="gwt"/>
</java>
<antcall target="link-resources"></antcall>
</target>
 
 
<target name="debug" depends="link-resources">
<!-- Compilation debug (avec plein de logs) -->
<target name="compile-debug">
<java classname="com.google.gwt.dev.Compiler" fork="true">
<arg line="-style DETAILED -logLevel DEBUG"/> <!-- TRACE -->
<arg line="-style DETAILED -logLevel DEBUG"/>
<arg value="${projectName}" />
<classpath refid="gwt"/>
</java>
</target>
<antcall target="link-resources"></antcall>
</target>
 
 
<target name="live">
<!-- Lance l'application en mode hosted -->
<target name="launch-hosted">
<java classname="com.google.gwt.dev.DevMode" spawn="true" fork="true">
<arg line="-startupUrl http://${celhost}/war/cel2.html -noserver -codeServerPort auto ${projectName}" />
<arg line="-startupUrl http://${cel-host}/${cel-base-url} -noserver -codeServerPort auto ${projectName}" />
<classpath refid="gwt"/>
</java>
</target>
 
 
</project>
</project>