Using buildNumber in ANT generated script from ANT plugin

3 views
Skip to first unread message

monster910

unread,
Jun 26, 2008, 2:22:18 PM6/26/08
to Israfil Mojo User Discussions
When generating an ANT script, the finalName is placed in the package
target. Unfortunately, the buildNumber value from the Maven plugin is
not in the ANT scope.

How to I get the SVN revision number (for build number) since the
generated ANT script does not use Maven?

Christian Edward Gruber

unread,
Jun 26, 2008, 2:47:32 PM6/26/08
to israfil-m...@googlegroups.com
I'm not an ANT wonk, but I think there's an ant task for SVN use, and
I think it can get the current revision number of the workspace you're
in.

If not, "svn info" returns a list of info, including the current
revision. If you test for the line

Revision: ###

you'll get a current revision number you can use.

Christian.

Reply all
Reply to author
Forward
0 new messages