Project

General

Profile

Download (5.79 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / workspace / client-audit / build.xml @ d2a8c3fd

1 d2a8c3fd Marc NICOLAS
<!--
2
==============================================================================
3
=== Build file to allow ant (http://jakarta.apache.org/ant/) to be used
4
=== to build the Sitools project.
5
===
6
=== Author : AKKA Technologies
7
===
8
=== name    : nom du projet
9
===        default : tache ant executee par defaut
10
===        basedir : repertoire courant lors de l'execution des taches ant
11
===
12
==============================================================================
13
-->
14
<project name="sitools-client-audit" default="audit" basedir=".">
15
        
16
        <property file="build.properties" />
17
        
18
        <!-- TODO CHANGE THIS -->        
19
        <property name="cots.dir" value="${ROOT_DIRECTORY}/cots"/>
20
        
21
        <property name="jslint" location="${cots.dir}/audit/jslint4java" />
22
        
23
        <property name="client-user.dir" location="${ROOT_DIRECTORY}/workspace/client-user" />
24
        <property name="client-admin.dir" location="${ROOT_DIRECTORY}/workspace/client-admin" />
25
        
26
        <property name="report-client-user.dir" location="report-client-user" />
27
        <property name="report-client-admin.dir" location="report-client-admin" />
28
29
        <!-- taskdef pour jsLint -->
30
        <taskdef name="jslint" classname="com.googlecode.jslint4java.ant.JSLintTask" classpath="${jslint}/jslint4java-2.0.3.jar" />
31
32
        <!--
33
   ========================================================================
34
     Targets projet
35
   ========================================================================
36
        -->
37
38
        <target name="audit" depends="audit-user, audit-admin" />
39
        
40
        <!-- Targets for classic sources (multiple files in multiple folders)  -->
41
        <target name="audit-user" depends="jslint-user-init, jslint-user" />
42
        <target name="audit-admin" depends="jslint-admin-init, jslint-admin" />
43
        
44
<!--         Targets for concatenated sources (all files in the same file) -->
45
<!--        <target name="audit-user-all" depends="jslint-user-init, jslint-user-all" />-->
46
<!--        <target name="audit-admin-all" depends="jslint-admin-init, jslint-admin-all" />-->
47
48
        <!-- ========================================================================================= 
49
                TARGETS POUR VALIDATION JSLINT USER
50
         ========================================================================================= -->
51
52
        <target name="jslint-user-init">
53
                <echo message="[init] jslint = ${jslint}" />
54
                <mkdir dir="${report-client-user.dir}" />
55
                <delete includeemptydirs="true">
56
                        <fileset dir="${report-client-user.dir}" includes="**/*" />
57
                </delete>
58
        </target>
59
60
        <target name="jslint-user">
61
                <echo message="[Running] jsLint validation tests on Folder ${client-user.dir}" />
62
                <jslint options="white, bitwise, undef, regexp, newcap, sloppy, vars" failureProperty="jsLint.failure" haltOnFailure="false">
63
                        <formatter type="xml" destfile="${report-client-user.dir}/jslint.xml" />
64
                        <formatter type="plain" destfile="${report-client-user.dir}/jslint.out" />
65
                        <fileset dir="${client-user.dir}" includes="**/*.js" excludes="**/livegrid/dependencies/Ext.ux.livegrid/* **/*-min.js **/*-all.js" />
66
                </jslint>
67
                <echo message="[End] jsLint Results = ${jsLint.failure}" />
68
        </target>        
69
        
70
        <!-- ========================================================================================= 
71
                TARGETS POUR VALIDATION JSLINT ADMIN
72
         ========================================================================================= -->
73
74
        <target name="jslint-admin-init">
75
                <echo message="[init] jslint = ${jslint}" />
76
                <mkdir dir="${report-client-admin.dir}" />
77
                <delete includeemptydirs="true">
78
                        <fileset dir="${report-client-admin.dir}" includes="**/*" />
79
                </delete>
80
        </target>
81
82
        <target name="jslint-admin">
83
                <echo message="[Running] jsLint validation tests on Folder ${client-admin.dir}" />
84
                <jslint options="white, bitwise, undef, regexp, newcap, sloppy, vars" failureProperty="jsLint.failure" haltOnFailure="false">
85
                        <formatter type="xml" destfile="${report-client-admin.dir}/jslint.xml" />
86
                        <formatter type="plain" destfile="${report-client-admin.dir}/jslint.out" />
87
                        <fileset dir="${client-admin.dir}" includes="**/*.js"  excludes="**/*-min.js **/*-all.js"/>
88
                </jslint>
89
                <echo message="[End] jsLint Results = ${jsLint.failure}" />
90
        </target>
91
        
92
<!--         ========================================================================================= -->
93
<!--                TARGETS POUR VALIDATION JSLINT USER ALL-->
94
<!--         ========================================================================================= -->
95
<!---->
96
<!--        <target name="jslint-user-all">-->
97
<!--                <echo message="[Running] jsLint validation tests on Folder ${client-user.dir}/js/minified" />-->
98
<!--                <jslint options="white, bitwise, undef, regexp, newcap, laxbreak" failureProperty="jsLint.failure" haltOnFailure="false">-->
99
<!--                        <formatter type="xml" destfile="${report-client-user.dir}/jslint.xml" />-->
100
<!--                        <formatter type="plain" destfile="${report-client-user.dir}/jslint.out" />-->
101
<!--                        <fileset dir="${client-user.dir}/js/minified" includes="**/*.js" excludes="**/*-min.js" />-->
102
<!--                </jslint>-->
103
<!--                <echo message="[End] jsLint Results = ${jsLint.failure}" />-->
104
<!--        </target>        -->
105
<!--        -->
106
<!--         ========================================================================================= -->
107
<!--                TARGETS POUR VALIDATION JSLINT ADMIN ALL-->
108
<!--         ========================================================================================= -->
109
<!---->
110
<!--        <target name="jslint-admin-all">-->
111
<!--                <echo message="[Running] jsLint validation tests on Folder ${client-admin.dir}/js/minified" />-->
112
<!--                <jslint options="white, bitwise, undef, regexp, newcap, laxbreak" failureProperty="jsLint.failure" haltOnFailure="false">-->
113
<!--                        <formatter type="xml" destfile="${report-client-admin.dir}/jslint.xml" />-->
114
<!--                        <formatter type="plain" destfile="${report-client-admin.dir}/jslint.out" />-->
115
<!--                        <fileset dir="${client-admin.dir}/js/minified" includes="**/*.js" excludes="**/*-min.js" />-->
116
<!--                </jslint>-->
117
<!--                <echo message="[End] jsLint Results = ${jsLint.failure}" />-->
118
<!--        </target>-->
119
120
</project>