I have an ant script to manage out build process. For WiX I need to produce a new guid when we produce a new version of the installer. Anyone have any idea how to do this in ANT? Any answer that uses built-in tasks would be preferable. But if I have to add another file, that's fine.
相关问题
- How can I have my ant task pass or fail based on t
- TFS 2015: Version-Error uploading custom process t
- Ant inheriting Maven properties
- How can I zip multiple folders individually with a
- Class in jar not found at runtime, but was used to
相关文章
- Passing command line arguments to Java via ant bui
- ANT - Could not load a dependent class com/jcraft/
- How can I create a guid in MFC
- library resolve to a path with no project.properti
- ant file that depends on another ant file
- android-sdk/tools/ant/build.xml:698: null returned
- .NET GUID uppercase string format
- ant jar's mainclass
If you are using (or would like to use) groovy this will work nicely.
Output
Using groovy 2.1.5 and ant 1.8
I'd use a
scriptdef
task to define simple javascript task that wraps the Java UUID class, something like this:Result:
If you have a reasonably up-to-date Ant install, this should work out of the box.