sbin/build/client.xml
author hamidouk
Fri, 27 Jan 2012 16:15:52 +0100
branchpopcorn-port
changeset 738 ccd571853e98
parent 711 323205a7bd39
child 798 56fd575cb447
permissions -rw-r--r--
update template config file.
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
		
494
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    19
	<target name="makeall" depends="concatenate" />
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>
494
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    47
		    	
33
184bffe80bf3 changed build file to
hamidouk
parents: 32
diff changeset
    48
	<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
    49
	    <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
    50
			<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
    51
			
424
dcf7121b1202 fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents: 421
diff changeset
    52
      <filelist dir="../../src/js/libs" 
511
81eb8e686456 added underscore.js to the build.
hamidouk
parents: 496
diff changeset
    53
                files="lab.js mustache.js underscore.js"/> 
424
dcf7121b1202 fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents: 421
diff changeset
    54
     
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    55
      <!-- required file before everything else -->
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    56
	    <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
    57
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    58
      <!-- templates -->
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    59
    	<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
    60
      
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    61
      <!-- core files -->
700
c6933b86acba switched build order to get IriSP.wrap available for functions in pop.js
hamidouk
parents: 511
diff changeset
    62
    	<filelist dir="../../src/js" files="utils.js pop.js data.js site.js ui.js widgets.js modules.js layout.js init.js" />
461
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents: 427
diff changeset
    63
711
323205a7bd39 separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents: 700
diff changeset
    64
      <!-- players -->
323205a7bd39 separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents: 700
diff changeset
    65
			<fileset dir="../../src/js/players" casesensitive="yes">
323205a7bd39 separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents: 700
diff changeset
    66
					<include name="**/*.js"/>					
323205a7bd39 separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents: 700
diff changeset
    67
			</fileset>
323205a7bd39 separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents: 700
diff changeset
    68
461
a9c5eeca190c added modules and tbe tests to test them.
hamidouk
parents: 427
diff changeset
    69
      <!-- modules -->
462
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    70
			<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
    71
					<include name="**/*.js"/>					
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    72
			</fileset>
3583ef3b208b added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents: 461
diff changeset
    73
421
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    74
d62a52c4bfa8 readded missing files to the build. Also removed jslint from the default build
hamidouk
parents: 389
diff changeset
    75
      <!-- widgets -->
98
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    76
			<fileset dir="../../src/js/widgets" casesensitive="yes">
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    77
					<include name="**/*.js"/>					
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 97
diff changeset
    78
			</fileset>
421
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
      <!-- serializers -->
108
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
    81
			<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
    82
					<include name="**/*.js"/>					
62da43e72e30 broke the serializers across multiple files. added a newline to the end of
hamidouk
parents: 98
diff changeset
    83
			</fileset>
29
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    84
	    	<filterchain>
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    85
	    	    <deletecharacters chars="&#xFEFF;" />
8a573270cd5c build script now removes BOM marks.
hamidouk
parents: 25
diff changeset
    86
	    	</filterchain>
18
4e58f47a8c43 Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents: 1
diff changeset
    87
	    </concat>
494
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    88
      <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
    89
	</target>
97
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
    90
	
494
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    91
  <target name="minify" depends="concatenate">
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    92
		<jscomp compilationLevel="simple" warning="quiet" debug="false"
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    93
			output="../../build/LdtPlayer.min.raw.js">
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    94
			<externs dir="${basedir}/../../res/">
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    95
				<file name="js/jquery.min.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    96
				<file name="js/jquery.tools.min.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    97
				<file name="js/jquery-ui.min.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    98
				<file name="js/swfobject.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
    99
			</externs>
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   100
			<sources dir="${basedir}/../../build">
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   101
				<file name="LdtPlayer-release.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   102
			</sources>
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   103
		</jscomp>
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   104
		<concat destfile="../../build/LdtPlayer.min.js"
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   105
			append="false">
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   106
			<filelist dir="../../src/js/" files="header.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   107
	        <filelist dir="../../build/" files="LdtPlayer.min.raw.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   108
		</concat>
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   109
		<delete file="../../build/LdtPlayer.min.raw.js" />
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   110
	</target>
cb88c0c8ddfa removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents: 462
diff changeset
   111
  
97
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   112
	<property name="rhino.jar" value="${basedir}/../res/rhino.jar"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   113
	<property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   114
	<property name="jslint.js" value="${basedir}/../res/jslint.js"/>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   115
	
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   116
	<target name="jslint" description="Run jslint on the files" depends="concatenate">
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   117
		<apply executable="java" parallel="false">  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   118
			<filelist dir="../../build">  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   119
				<file name="LdtPlayer-release.js"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   120
			</filelist>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   121
			<arg line="-jar"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   122
			<arg path="${rhino.jar}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   123
			<arg path="${jslint-wrapper.js}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   124
			<arg path="${jslint.js}"/>  
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   125
		</apply>
62612c69699f added jslint to the build.
hamidouk
parents: 92
diff changeset
   126
	</target>
358
430c1a7a09de got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents: 216
diff changeset
   127
</project>