Is there a way to embed a static field in a java class at compile time based on ant buildfile?
<p>Let's say that my project has a main class. I'd love to have</p>

<pre><code>public static final String version = "0.0.0.1";
</code></pre>

<p>However, I don't want to have to manually set the version, as my ant build file has the version present. Is there any way to insert this value based on the value present in the build file?</p>
