forked from thm-projects/arsnova-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
58 lines (49 loc) · 1.93 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<project name="ARSnova" default="run">
<property name="main.dir" value="src/main/webapp" />
<property name="sencha.build.dir" value="${main.dir}/build" />
<property name="sencha.build.testing.dir" value="${sencha.build.dir}/testing/ARSnova" />
<property name="sencha.build.production.dir" value="${sencha.build.dir}/production/ARSnova" />
<property name="environment" value="production" />
<taskdef name="jshint" classname="com.philmander.jshint.JsHintAntTask" classpath="${basedir}/lib/ant-jshint-0.3.6-SNAPSHOT-deps.jar" />
<target name="sencha:refresh">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg value="app"/>
<arg value="refresh"/>
</exec>
</target>
<target name="sencha:build:testing">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg value="app"/>
<arg value="build"/>
<arg value="testing"/>
</exec>
</target>
<target name="sencha:build:production">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg value="app"/>
<arg value="build"/>
<arg value="production"/>
</exec>
</target>
<target name="sencha:watch:testing">
<antcall target="sencha:app:watch">
<param name="environment" value="testing" />
</antcall>
</target>
<target name="sencha:watch:production">
<antcall target="sencha:app:watch">
<param name="environment" value="production" />
</antcall>
</target>
<target name="sencha:app:watch">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg line="app watch -e ${environment}"/>
</exec>
</target>
<target name="jshint">
<jshint dir="${main.dir}/app" includes="**/*.js" excludes="utils/**" globals="ARSnova:true,Ext:true,io:true,markdown:true,MathJax:true,Messages:true,moment:true,RSVP:true,socket:true,TaskRunner:true">
<report type="xml" destFile="${basedir}/target/jshint.xml" />
</jshint>
</target>
<target name="run" depends="sencha:refresh, sencha:build:production"/>
</project>