sbin/build/client.xml
author hamidouk
Tue, 29 Nov 2011 11:09:08 +0100
branchpopcorn-port
changeset 345 8a088f7daa66
parent 216 d1e891627286
child 341 e9442357851b
child 358 430c1a7a09de
permissions -rw-r--r--
rollover over the interface buttons now works as expected. Also changed the width of the buttons to the correct size. Resized the width and height of the sprites to be the same as the boxes we display them in.
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
		
97
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    19
	<target name="makeall" depends="concatenate,compile,jslint" />
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
	
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    48
	<target name="compile" depends="make_templates">
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" />
216
d1e891627286 added and activated the mediafragment plugin?
hamidouk
parents: 168
diff changeset
    73
	        <filelist dir="../../src/js/libs" files="popcorn.js popcorn.youtube.js popcorn.code.js popcorn.jwplayer.js popcorn.mediafragment.js jwplayer.js mustache.js raphael.js" />
34
2d97ecb80793 changed the build file to accomodate the template compilation
hamidouk
parents: 33
diff changeset
    74
	        <filelist dir="../../src/js" files="LdtPlayer.js" />
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    75
	    	<filelist dir="../../build" files="compiled_templates.js" />
123
58bb8ccea9a8 added a file for the init routines.
hamidouk
parents: 112
diff changeset
    76
	    	<filelist dir="../../src/js" files="utils.js data.js site.js ui.js widgets.js layout.js init.js" />
98
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    77
			<fileset dir="../../src/js/widgets" casesensitive="yes">
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    78
					<include name="**/*.js"/>					
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    79
			</fileset>
108
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
    80
			<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
    81
					<include name="**/*.js"/>					
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
    82
			</fileset>
29
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    83
	    	<filterchain>
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    84
	    	    <deletecharacters chars="&#xFEFF;" />
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    85
	    	</filterchain>
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    86
	    </concat>
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    87
	</target>
97
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    88
	
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    89
	<property name="rhino.jar" value="${basedir}/../res/rhino.jar"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    90
	<property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    91
	<property name="jslint.js" value="${basedir}/../res/jslint.js"/>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    92
	
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    93
	<target name="jslint" description="Run jslint on the files" depends="concatenate">
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    94
		<apply executable="java" parallel="false">  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    95
			<filelist dir="../../build">  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    96
				<file name="LdtPlayer-release.js"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    97
			</filelist>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    98
			<arg line="-jar"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    99
			<arg path="${rhino.jar}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   100
			<arg path="${jslint-wrapper.js}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   101
			<arg path="${jslint.js}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   102
		</apply>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   103
	</target>
0
c357d5b60635 First import. Last version from France culture
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
</project>