]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | <project name="x-resources-impl">\r |
2 | <target name="-before-inherit-resources"/>\r | |
3 | <target name="-after-inherit-resources"/>\r | |
4 | <target name="-inherit-resources">\r | |
5 | <for list="${package.base.packages}" param="base">\r | |
6 | <sequential>\r | |
7 | <local name="base.path"/>\r | |
8 | <local name="base.resource.path"/>\r | |
9 | <property name="base.path" location="@{base}"/>\r | |
10 | <property name="base.resource.path" location="${base.path}/resources"/>\r | |
11 | <echo>Merging resources from base package ${base.path}</echo>\r | |
12 | <if>\r | |
13 | <available file="${base.resource.path}" type="dir"/>\r | |
14 | <then>\r | |
15 | <copy todir="${build.out.resources.dir}/" overwrite="true">\r | |
16 | <fileset dir="${base.resource.path}" includes="**/*"/>\r | |
17 | </copy>\r | |
18 | </then>\r | |
19 | </if>\r | |
20 | </sequential>\r | |
21 | </for>\r | |
22 | </target>\r | |
23 | \r | |
24 | <target name="-before-copy-resources"/>\r | |
25 | <target name="-after-copy-resources"/>\r | |
26 | <target name="-copy-resources">\r | |
27 | <echo>Merging resources from current package ${package.resources.dir}</echo>\r | |
28 | <copy todir="${build.out.resources.dir}" overwrite="true">\r | |
29 | <fileset dir="${package.resources.dir}" includes="**/*"/>\r | |
30 | </copy>\r | |
31 | <property name="target.json.resources.dir" value="${package.output.base}"/>\r | |
32 | <property name="target.config.resources.dir" value="${build.resources.dir}"/>\r | |
33 | <x-compile refid="${compiler.ref.id}">\r | |
34 | <![CDATA[\r | |
35 | resources\r | |
36 | -excludes=-all*.css\r | |
37 | -out=${target.config.resources.dir}\r | |
38 | and\r | |
39 | resources\r | |
40 | -model=true\r | |
41 | -out=${target.json.resources.dir}\r | |
42 | ]]>\r | |
43 | </x-compile>\r | |
44 | </target>\r | |
45 | </project> |