Here's how we use it:
// stores the svn build number
public static const BUILD_NUMBER:Number = BUILD::buildNumber;
// stores the timestamp of the last build
public static const BUILD_TIMESTAMP:Date = new Date(BUILD::timestamp);
// stores the maven version of the current build
public static const BUILD_MAVEN_VERSION:String = String(BUILD::mavenVersion);
I think you can even bind to them like:
<mx:Label text="{BUILD::buildNumber}" />
Logan
On Thu, Aug 26, 2010 at 2:04 PM, Davis Ford
<[email protected]> wrote:
> Re:
> http://groups.google.com/group/flex-mojos/browse_thread/thread/d114d93622182133?pli=1
>
> I know how to use the
> http://mojo.codehaus.org/buildnumber-maven-plugin/ to get the svn
> revision into the pom.xml as a property, and I see that it can be sent
> as a define into flexmojos, but is there any way to access it from
> As3. I want to insert a label into the UI that shows the build
> number.
>
> The buildnumber-maven-plugin is *supposed* to generate a properties
> file with the build number in it, but it doesn't seem to work for me.
> If it did create a file, I could figure out how to read that in, but
> as such, I do have the value as a in-memory property at build time.
>
> If I pass it to <definesDeclaration> what can I do with it after that?
>
> Regards,
> Davis
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" 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/flex-mojos
>
> http://flexmojos.sonatype.org/
>
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" 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/flex-mojos
http://flexmojos.sonatype.org/