-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
executable file
·31 lines (27 loc) · 1.44 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
<?xml version="1.0" encoding="utf-8"?>
<project name="Market" basedir="." default="status">
<!--
Define project-specific or custom build targets.
-->
<target name="cli-create" depends="project-locate" description="creates a php file that can be used to run agavi in cli context" >
<agavi.input property="public.environment" message="Name of the environment to bootstrap in dispatcher scripts" default="development" promptCharacter=":" failIfEmpty="true" ignoreIfSet="true" />
<copy todir="${project.directory}/bin">
<fileset dir="${project.directory}/${project.directory.dev}/bin">
<include name="**/*" />
</fileset>
<filterchain>
<replacetokens begintoken="%%" endtoken="%%">
<token key="AGAVI_SOURCE_LOCATION" value="${agavi.directory.src}" />
<token key="PROJECT_LOCATION" value="${project.directory}" />
<token key="PROJECT_PREFIX" value="${project.prefix}" />
<token key="PUBLIC_BASE" value="${public.base}" />
<token key="PUBLIC_ENVIRONMENT" value="${public.environment}" />
</replacetokens>
</filterchain>
</copy>
<chmod file="${project.directory}/bin/cli.php" mode="744" />
</target>
<target name="ember-routes" depends="project-locate" description="create ember routing file base on web context routing in agavi">
<exec command="php ./bin/cli.php routing > ${project.directory}/${project.directory.dev}/cdn/js/routing.js" dir="${project.directory}" escape="false" />
</target>
</project>