| author | veltr |
| Tue, 29 Jan 2013 15:38:41 +0100 | |
| changeset 991 | 2b036bd80f6d |
| parent 966 | c1c762ad1697 |
| child 998 | 9521347ede1d |
| permissions | -rw-r--r-- |
|
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 | 2 |
<project basedir="." default="makeall"> |
|
421
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
3 |
|
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
4 |
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
5 |
<classpath> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
6 |
<pathelement location="../res/compiler.jar" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
7 |
</classpath> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
8 |
</taskdef> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
9 |
<taskdef resource="net/sf/antcontrib/antlib.xml"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
10 |
<classpath> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
11 |
<pathelement location="../res/ant-contrib.jar"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
12 |
</classpath> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
13 |
</taskdef> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
14 |
<delete dir="${basedir}/../../build" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
15 |
<mkdir dir="${basedir}/../../build" /> |
| 882 | 16 |
|
|
936
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
17 |
<target name="makeall" depends="concatenate,copytotest" /> |
| 882 | 18 |
|
19 |
<target name="concatenate" description="Build the developer release file"> |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
20 |
<concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/LdtPlayer-core.js"> |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
21 |
<filelist dir="../../src/js/" files="header.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
22 |
<!-- required file before everything else --> |
| 882 | 23 |
<filelist dir="../../src/js/libs" files="LAB.min.js" /> |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
24 |
<!-- core files --> |
| 966 | 25 |
<filelist dir="../../src/js" files="init.js utils.js model.js defaults.js widgets.js" /> |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
26 |
<!-- serializers --> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
27 |
<fileset dir="../../src/js/serializers" casesensitive="yes"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
28 |
<include name="**/*.js"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
29 |
</fileset> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
30 |
<filterchain> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
31 |
<deletecharacters chars="" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
32 |
</filterchain> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
33 |
</concat> |
|
936
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
34 |
</target> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
35 |
|
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
36 |
<target name="copytotest" description="Copy files to test directory"> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
37 |
<delete dir="../../test/metadataplayer" /> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
38 |
<delete dir="../../test/libs" /> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
39 |
<copy todir="../../test/libs"> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
40 |
<fileset dir="../../src/js/libs"/> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
41 |
</copy> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
42 |
<copy todir="../../test/metadataplayer"> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
43 |
<fileset dir="../../src/widgets"/> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
44 |
</copy> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
45 |
<copy file="../../build/LdtPlayer-core.js" todir="../../test/metadataplayer/" /> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
46 |
<copy file="../../src/css/LdtPlayer-core.css" todir="../../test/metadataplayer/" /> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
47 |
<copy todir="../../test/metadataplayer/img"> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
48 |
<fileset dir="../../src/css/img"/> |
|
c66260a734ca
File copying to test dir is now in the Ant XML (used to be in .sh, sorry win users)
veltr
parents:
882
diff
changeset
|
49 |
</copy> |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
50 |
</target> |
| 882 | 51 |
|
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
52 |
<target name="minify" depends="concatenate"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
53 |
<jscomp compilationLevel="simple" warning="quiet" debug="false" |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
54 |
output="../../build/LdtPlayer.min.raw.js"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
55 |
<externs dir="${basedir}/../../res/"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
56 |
<file name="js/jquery.min.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
57 |
<file name="js/jquery-ui.min.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
58 |
<file name="js/swfobject.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
59 |
</externs> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
60 |
<sources dir="${basedir}/../../build"> |
| 882 | 61 |
<file name="LdtPlayer-core.js" /> |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
62 |
</sources> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
63 |
</jscomp> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
64 |
<concat destfile="../../build/LdtPlayer.min.js" |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
65 |
append="false"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
66 |
<filelist dir="../../src/js/" files="header.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
67 |
<filelist dir="../../build/" files="LdtPlayer.min.raw.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
68 |
</concat> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
69 |
<delete file="../../build/LdtPlayer.min.raw.js" /> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
70 |
</target> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
71 |
<property name="rhino.jar" value="${basedir}/../res/rhino.jar"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
72 |
<property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
73 |
<property name="jslint.js" value="${basedir}/../res/jslint.js"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
74 |
<target name="jslint" description="Run jslint on the files" depends="concatenate"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
75 |
<apply executable="java" parallel="false"> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
76 |
<filelist dir="../../build"> |
| 882 | 77 |
<file name="LdtPlayer-core.js"/> |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
78 |
</filelist> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
79 |
<arg line="-jar"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
80 |
<arg path="${rhino.jar}"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
81 |
<arg path="${jslint-wrapper.js}"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
82 |
<arg path="${jslint.js}"/> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
83 |
</apply> |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
866
diff
changeset
|
84 |
</target> |
|
358
430c1a7a09de
got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents:
216
diff
changeset
|
85 |
</project> |