sbin/build/client.xml
author hamidouk
Mon, 19 Dec 2011 15:25:22 +0100
branchpopcorn-port
changeset 481 a46cfeee6d77
parent 462 3583ef3b208b
child 494 cb88c0c8ddfa
permissions -rw-r--r--
using jquery ui draggable changes the state of an element from absolute to relative positioning, which breaks the way our seek button expands itself, so we need to force absolute positioning, quite uglily, using jquery.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
c357d5b60635 First import. Last version from France culture
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
     2
<project basedir="." default="makeall">
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
     3
	
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
     4
	<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask">
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
     5
		<classpath>
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
     6
			<pathelement location="../res/compiler.jar" />
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
     7
		</classpath>
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
     8
	</taskdef>
25
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
     9
	
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    10
	<taskdef resource="net/sf/antcontrib/antlib.xml">
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    11
	  <classpath>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    12
	    <pathelement location="../res/ant-contrib.jar"/>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    13
	  </classpath>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    14
	</taskdef>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    15
	
25
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    16
	<delete dir="${basedir}/../../build" />
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    17
	<mkdir  dir="${basedir}/../../build" />
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    18
		
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    19
	<target name="makeall" depends="concatenate,compile" />
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    20
	
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    21
	<target name="make_templates" description="Concatenate the html templates together">
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    22
	    <for param="file">
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    23
			<path>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    24
	    		<fileset dir="../../src/templates" includes="*.html" />
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    25
			</path>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    26
	    	<sequential>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    27
	    		
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    28
	    		<basename property="filename" file="@{file}"/>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    29
	    		<basename property="filehead" file="@{file}" suffix=".html"/>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    30
	    		
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    31
	    		<echo file="../../build/compiled_templates.js" append="yes" 
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    32
	    				message="${line.separator}IriSP.${filehead}_template = &quot;" />
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    33
	    		
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    34
	    		<concat append="yes" destfile="../../build/compiled_templates.js">
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    35
	    			<filelist dir="../../src/templates" files="${filename}"></filelist>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    36
	    			<filterchain>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    37
	    				<striplinebreaks/>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    38
	    			</filterchain>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    39
	    		</concat>	    			    	
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    40
	    		<echo file="../../build/compiled_templates.js" append="yes" message="&quot;;" />
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    41
	    		
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    42
	    		<var name="filename" unset="true" />
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    43
	    		<var name="filehead" unset="true" />
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    44
	    	</sequential>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    45
		</for>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    46
	</target>
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    47
	
424
dcf7121b1202 fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents: 421
diff changeset
    48
	<target name="compile" depends="concatenate">
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    49
		<jscomp compilationLevel="simple" warning="quiet" debug="false"
25
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    50
			output="../../build/LdtPlayer.min.raw.js">
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    51
			<externs dir="${basedir}/../../res/">
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    52
				<file name="js/jquery.min.js" />
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    53
				<file name="js/jquery.tools.min.js" />
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    54
				<file name="js/jquery-ui.min.js" />
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    55
				<file name="js/swfobject.js" />
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    56
			</externs>
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    57
			<sources dir="${basedir}/../../src/js">
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    58
				<file name="LdtPlayer.js" />
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    59
			</sources>
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    60
		</jscomp>
25
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    61
		<concat destfile="../../build/LdtPlayer.min.js"
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    62
			append="false">
25
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    63
			<filelist dir="../../src/js/" files="header.js" />
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    64
	        <filelist dir="../../build/" files="LdtPlayer.min.raw.js" />
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    65
		</concat>
25
efb0099bf9e0 changed the build script to output files in build/
hamidouk
parents: 21
diff changeset
    66
		<delete file="../../build/LdtPlayer.min.raw.js" />
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    67
		<delete file="../../build/compiled_templates.js" />
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    68
	</target>
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    69
	    	
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    70
	<target name="concatenate" description="Build the developer release file" depends="make_templates">
29
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    71
	    <concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/LdtPlayer-release.js">
51
1444edeae73f Adding required popcorn files. Also changed the build file to include those
hamidouk
parents: 34
diff changeset
    72
			<filelist dir="../../src/js/" files="header.js" />
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    73
			
424
dcf7121b1202 fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents: 421
diff changeset
    74
      <filelist dir="../../src/js/libs" 
427
440ffc18f827 changed the unit tests to reference a local video instead of youtube.
hamidouk
parents: 424
diff changeset
    75
                files="popcorn.js popcorn.youtube.js popcorn.code.js popcorn.jwplayer.js popcorn.mediafragment.js jwplayer.js mustache.js raphael.js"/> 
424
dcf7121b1202 fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents: 421
diff changeset
    76
     
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    77
      <!-- required file before everything else -->
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    78
	    <filelist dir="../../src/js" files="main.js" />
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    79
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    80
      <!-- templates -->
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    81
    	<filelist dir="../../build" files="compiled_templates.js" />
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    82
      
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    83
      <!-- core files -->
461
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents: 427
diff changeset
    84
    	<filelist dir="../../src/js" files="pop.js utils.js data.js site.js ui.js widgets.js modules.js layout.js init.js" />
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents: 427
diff changeset
    85
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents: 427
diff changeset
    86
      <!-- modules -->
462
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    87
			<fileset dir="../../src/js/modules" casesensitive="yes">
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    88
					<include name="**/*.js"/>					
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    89
			</fileset>
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    90
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    91
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    92
      <!-- widgets -->
98
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    93
			<fileset dir="../../src/js/widgets" casesensitive="yes">
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    94
					<include name="**/*.js"/>					
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    95
			</fileset>
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    96
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    97
      <!-- serializers -->
108
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
    98
			<fileset dir="../../src/js/serializers" casesensitive="yes">
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
    99
					<include name="**/*.js"/>					
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
   100
			</fileset>
29
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
   101
	    	<filterchain>
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
   102
	    	    <deletecharacters chars="&#xFEFF;" />
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
   103
	    	</filterchain>
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
   104
	    </concat>
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
   105
	</target>
97
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   106
	
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   107
	<property name="rhino.jar" value="${basedir}/../res/rhino.jar"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   108
	<property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   109
	<property name="jslint.js" value="${basedir}/../res/jslint.js"/>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   110
	
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   111
	<target name="jslint" description="Run jslint on the files" depends="concatenate">
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   112
		<apply executable="java" parallel="false">  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   113
			<filelist dir="../../build">  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   114
				<file name="LdtPlayer-release.js"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   115
			</filelist>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   116
			<arg line="-jar"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   117
			<arg path="${rhino.jar}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   118
			<arg path="${jslint-wrapper.js}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   119
			<arg path="${jslint.js}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   120
		</apply>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   121
	</target>
358
430c1a7a09de got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents: 216
diff changeset
   122
</project>