java - Is it possible to generate the file 'build.xml' from the command line in Ant? -
i looking script build process. able build build.xml
file manually, , run following command create jar file:
system("ant -f ~/build.xml")
i rebuild build.xml
file every time run script ensure changes in build.xml
file. there ant command can run build build.xml file?
for reference, using intellij idea create build.xml file.
there other common ways customize build in ant. like:
- introducing properties (possibly excluded
build.properties
file) , - regular expressions wherever feasible.
these should cover of use cases in ant.
for more sophisticated stuff, can go more logic using ant-contrib
tasks.
as alternative:
- if you'd still stick generation of custom
build.xml
file every time, go xslt transformation so. not common practice, i'd say. or - go maven, suggested in comment or even
- go grails
however, choose fitting solution, should tell more details on build.xml
changes you'd achieve.
Comments
Post a Comment