1 <project name=
"x-resources-impl">
2 <target name=
"-before-inherit-resources"/>
3 <target name=
"-after-inherit-resources"/>
4 <target name=
"-inherit-resources">
5 <for list=
"${package.base.packages}" param=
"base">
7 <local name=
"base.path"/>
8 <local name=
"base.resource.path"/>
9 <property name=
"base.path" location=
"@{base}"/>
10 <property name=
"base.resource.path" location=
"${base.path}/resources"/>
11 <echo>Merging resources from base package ${base.path}
</echo>
13 <available file=
"${base.resource.path}" type=
"dir"/>
15 <copy todir=
"${build.out.resources.dir}/" overwrite=
"true">
16 <fileset dir=
"${base.resource.path}" includes=
"**/*"/>
24 <target name=
"-before-copy-resources"/>
25 <target name=
"-after-copy-resources"/>
26 <target name=
"-copy-resources">
27 <echo>Merging resources from current package ${package.resources.dir}
</echo>
28 <copy todir=
"${build.out.resources.dir}" overwrite=
"true">
29 <fileset dir=
"${package.resources.dir}" includes=
"**/*"/>
31 <property name=
"target.json.resources.dir" value=
"${package.output.base}"/>
32 <property name=
"target.config.resources.dir" value=
"${build.resources.dir}"/>
33 <x-compile refid=
"${compiler.ref.id}">
37 -out=${target.config.resources.dir}
41 -out=${target.json.resources.dir}