How can I get a user-defined sysproperty in an Android app?

In a plain Java app I can do something like:

    <target name="run" depends="git.revision">
        <java classname="main" fork="true">
          <sysproperty key="git.revision" value="${git.revision}"/>
        </java>
    </target>

And in main.java I do:

    String gitSha1 = System.getProperty("git.revision");

But how can I do this in an Android App? I can get predefined system
properties like "java.specification.vendor" etc. but I don't know how
to attach my userdefined sysproperty to the dex generation.

I can also get around this by generating a source file containting the
properties, but I was hoping for a more suitable method.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to