android - Ant build configuration resources folder -


i trying use ant android built. using 1 code base trying deploy 2 different applications use different resources. @ moment solution below working seems bit of hassle when working because copy , paste entire structure "res" folder every time want build, not knowing build resources in "res" folder, plus excluding layout folder common in "res".

i know if there way in ant change name of folder "res" else during build time. way gna project root in "res" folder , bsf have folder , no need copy paste.

i appreciate this! thank you.

<target name="gna" description="gna application deployment" depends="clean">         <copy todir="${basedir}/res" overwrite="true" force="true" includeemptydirs="true" >         <fileset dir="${basedir}/res-gna" >             <exclude name="**/layout" />            </fileset>     </copy>  </target>  <target name="bsf" depends="clean" description="bsf application deployment" depends="clean">     <copy todir="${basedir}/res" overwrite="true" force="true" includeemptydirs="true" >         <fileset dir="${basedir}/res-bsf" >             <exclude name="**/layout/**" />            </fileset>     </copy>  </target> 


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -