build.xml 1.23 KB
Newer Older
1
<project name="ARSnova" default="run">
2
	<property name="main.dir" value="src/main/webapp" />
3 4 5
	<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" />
6
	
7
	<property name="build.dir" value="src/main/build" />
8
	
9 10 11 12
	<target name="-build:init">
		<mkdir dir="${build.dir}" />
	</target>
	
13 14 15 16 17 18
	<target name="sencha:build:testing">
		<exec executable="sencha" dir="${main.dir}">
			<arg value="app"/>
			<arg value="build"/>
			<arg value="testing"/>
		</exec>
19 20
	</target>
	
21 22 23 24 25 26
	<target name="sencha:build:production">
		<exec executable="sencha" dir="${main.dir}">
			<arg value="app"/>
			<arg value="build"/>
			<arg value="production"/>
		</exec>
27 28
	</target>
	
29
	<target name="-assets:testing:copy"  depends="-build:init">
30
		<copy todir="${build.dir}">
31
			<fileset dir="${sencha.build.testing.dir}" />
32
		</copy>
33 34
	</target>
	
35 36 37 38
	<target name="-assets:production:copy"  depends="-build:init">
		<copy todir="${build.dir}">
			<fileset dir="${sencha.build.production.dir}" />
		</copy>
39
	</target>
40
	
41 42
	<target name="run" depends="sencha:build:testing, -assets:testing:copy"/>
</project>