sbin/build/client.xml
author ymh <ymh.work@gmail.com>
Mon, 28 Dec 2015 15:50:04 +0100
changeset 1069 2409cb4cebaf
parent 1034 31fd2904ec57
permissions -rw-r--r--
getting various changes from github
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">
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" />
1034
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    16
998
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    17
    <target name="makeall" depends="concatenate-player,copytotest" />
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    18
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    19
    <target name="concatenate-core">
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    20
        <concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/metadataplayer-core.js">
1069
2409cb4cebaf getting various changes from github
ymh <ymh.work@gmail.com>
parents: 1034
diff changeset
    21
            <filelist dir="../../src/js/" files="header.js version.js" />
2409cb4cebaf getting various changes from github
ymh <ymh.work@gmail.com>
parents: 1034
diff changeset
    22
        	<!-- core files -->
998
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    23
            <filelist dir="../../src/js" files="init.js utils.js model.js html-player.js" />
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    24
            <filterchain>
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    25
                <deletecharacters chars="&#xFEFF;" />
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    26
            </filterchain>
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    27
        </concat>
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    28
    </target>
1034
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    29
998
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    30
    <target name="concatenate-player" description="Build the developer release file" depends="concatenate-core">
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    31
        <concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/LdtPlayer-core.js">
882
61c384dda19e Big refactoring
veltr
parents: 875
diff changeset
    32
            <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
    33
            <!-- core files -->
998
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    34
            <filelist dir="../../build" files="metadataplayer-core.js" />
1001
3210bf928a11 Enabled loading widgets without the widgeting framework
veltr
parents: 998
diff changeset
    35
            <!-- serializers -->
3210bf928a11 Enabled loading widgets without the widgeting framework
veltr
parents: 998
diff changeset
    36
            <fileset dir="../../src/js/serializers" casesensitive="yes">
3210bf928a11 Enabled loading widgets without the widgeting framework
veltr
parents: 998
diff changeset
    37
                <include name="**/*.js"/>
3210bf928a11 Enabled loading widgets without the widgeting framework
veltr
parents: 998
diff changeset
    38
            </fileset>
998
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    39
            <fileset dir="../../src/js/widgets-container" casesensitive="yes">
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    40
                <include name="**/*.js"/>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    41
            </fileset>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    42
            <filterchain>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    43
                <deletecharacters chars="&#xFEFF;" />
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    44
            </filterchain>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    45
        </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
    46
    </target>
1034
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    47
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
    48
    <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
    49
        <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
    50
        <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
    51
        <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
    52
            <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
    53
        </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
    54
        <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
    55
            <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
    56
        </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
    57
        <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
    58
        <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
    59
        <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
    60
            <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
    61
        </copy>
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    62
    </target>
1034
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    63
998
9521347ede1d Refactoring
veltr
parents: 966
diff changeset
    64
    <target name="minify" depends="concatenate-player">
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    65
        <jscomp compilationLevel="simple" warning="quiet" debug="false"
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    66
        output="../../build/LdtPlayer.min.raw.js">
1018
de1e7cf6bfc4 Allow defining options for renkan in renkan widget + upgrade libraries
ymh <ymh.work@gmail.com>
parents: 1001
diff changeset
    67
            <externs dir="${basedir}/../../src/js/">
de1e7cf6bfc4 Allow defining options for renkan in renkan widget + upgrade libraries
ymh <ymh.work@gmail.com>
parents: 1001
diff changeset
    68
                <file name="libs/jquery.min.js" />
de1e7cf6bfc4 Allow defining options for renkan in renkan widget + upgrade libraries
ymh <ymh.work@gmail.com>
parents: 1001
diff changeset
    69
                <file name="libs/jquery-ui.min.js" />
de1e7cf6bfc4 Allow defining options for renkan in renkan widget + upgrade libraries
ymh <ymh.work@gmail.com>
parents: 1001
diff changeset
    70
                <file name="libs/swfobject.js" />
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    71
            </externs>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    72
            <sources dir="${basedir}/../../build">
882
61c384dda19e Big refactoring
veltr
parents: 875
diff changeset
    73
                <file name="LdtPlayer-core.js" />
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    74
            </sources>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    75
        </jscomp>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    76
        <concat destfile="../../build/LdtPlayer.min.js"
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    77
        append="false">
1069
2409cb4cebaf getting various changes from github
ymh <ymh.work@gmail.com>
parents: 1034
diff changeset
    78
            <filelist dir="../../src/js/" files="header.js version.js" />
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    79
            <filelist dir="../../build/" files="LdtPlayer.min.raw.js" />
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    80
        </concat>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    81
        <delete file="../../build/LdtPlayer.min.raw.js" />
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    82
    </target>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    83
    <property name="rhino.jar" value="${basedir}/../res/rhino.jar"/>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    84
    <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
    85
    <property name="jslint.js" value="${basedir}/../res/jslint.js"/>
1034
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    86
    <target name="jslint" description="Run jslint on the files">
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    87
        <apply executable="java" parallel="false">
1034
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    88
            <fileset dir="../../src">
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    89
                <include name="js/**/*.js"/>
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    90
                <exclude name="js/libs/**"/>
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    91
                <include name="widgets/**/*.js"/>
31fd2904ec57 slight improvement on ant jslint task
ymh <ymh.work@gmail.com>
parents: 1018
diff changeset
    92
            </fileset>
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    93
            <arg line="-jar"/>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    94
            <arg path="${rhino.jar}"/>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    95
            <arg path="${jslint-wrapper.js}"/>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    96
            <arg path="${jslint.js}"/>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    97
        </apply>
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 866
diff changeset
    98
    </target>
358
430c1a7a09de got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents: 216
diff changeset
    99
</project>