ant - Concatenate from .properties into an output file -


i tried concatenate file name , version number.

the version local.properties

sdk.dir=e:/android/android-sdk-windows sdk.version=1.6 

my ant file build_factory.xml

<?xml version="1.0" encoding="iso-8859-1"?> <project name="main release build" default="release" basedir="..">      <target name="configfactory">         <echo message="sdk.dir=f:/build/android-sdk-windows" file="build/local.properties" />     </target>      <target name="release">          <ant antfile="build/build_sdk_platform.xml" target="build_prod" />         <ant antfile="build/build_sdk.xml" target="javadocs" />         <ant antfile="build/build_sample.xml" target="preparesources" />                 <tar basedir="workspace" destfile="mapandroidsdk-${sdk.version}.tar" />      </target> 

what want @ end file named mapandroidsdk-1.6.jar. built except .tar file

[edit] in end , tar named mapandroidsdk-${sdk.version}.tar instead of mapandroidsdk-1.6.tar

in console, :

modify_path:      [copy] copying 1 file c:\hudson\workspace\emb-android-sdk-trunk\mapsample\libs      [copy] copying 1 file c:\hudson\workspace\emb-android-sdk-trunk\mapsample      [copy] copying 1 file c:\hudson\workspace\emb-android-sdk-trunk\mapsample      [copy] copying 179 files c:\hudson\workspace\emb-android-sdk-trunk\workspace\mapsample       [tar] building tar: c:\hudson\workspace\emb-android-sdk-trunk\mapandroidsdk-${sdk.version}.tar       [tar] entry: doc/com/map/resource/proto/class-use/locationbyqueryrequestprotos.locationbyqueryrequest.builder.html longer 100 characters.       [tar] resulting tar file can processed gnu compatible tar commands       [tar] entry: doc/com/map/resource/proto/class-use/servicecategoriesrequestprotos.servicecategoriesrequest.builder.html longer 100 characters.       [tar] entry: doc/com/map/resource/proto/class-use/servicecategoriesresponseprotos.servicecategoriesresponse.builder.html longer 100 characters.       [tar] entry: doc/com/map/resource/proto/class-use/servicecategoriesresponseprotos.servicecategoriesresponse.html longer 100 characters. 

you should read local.properties:

<property file="local.properties"/> 

after can use sdk.version


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -