sbin/build/client.xml
author ymh <ymh.work@gmail.com>
Fri, 28 Jan 2011 15:43:23 +0100
changeset 4 5f0d8e528663
parent 0 bdf22b140727
permissions -rw-r--r--
create version 0.1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<project basedir="." default="compile">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
  <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    <classpath>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
      <pathelement location="../res/compiler.jar"/>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    </classpath>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
  </taskdef>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
  <target name="compile">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    <jscomp compilationLevel="simple" warning="quiet" 
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
            debug="false" output="${basedir}/../../client/player/src/js/LdtPlayer.min.raw.js">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
      <externs dir="${basedir}/../../client/player/res/">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
      	<file name="js/jquery.min.js"/>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
      	<file name="js/jquery.tools.min.js"/>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
      	<file name="js/jquery-ui.min.js"/>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
      	<file name="js/swfobject.js"/>      		
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
      </externs>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
      <sources dir="${basedir}/../../client/player/src/js">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
          <file name="LdtPlayer.js"/>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
      </sources>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    </jscomp>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
  	<concat destfile="${basedir}/../../client/player/src/js/LdtPlayer.min.js"
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
  	   append="false">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
  	   <filelist dir="${basedir}/../../client/player/src/js/" files="header.js,LdtPlayer.min.raw.js" />
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
  	</concat>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
  	<delete file="${basedir}/../../client/player/src/js/LdtPlayer.min.raw.js"/>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
  </target>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
</project>