Author Login
Post Reply
I wish we could find a way to bundle common tasks : I have more than 9
templates :
build-common.xml
build-j2ee.xml
build-war.xml
build-ejb.xml
build-ws.xml
build-client-ws.xml
build-ear.xml
...
These builds just formalize my build system based on Ivy.
For each project I need to sync those files which is a pain within a team.
How to enforce team to use your build process, how do you easly patch, add
feature. It's puzzling me. Today I need to copy paste all these files all
over my projects.
I think Ivy dictate somehow the build process as you always need to perform
some tasks configure/resolve/cachepath...
My common-build.xml has 9 visible targets:
all -> clean , build , package , publish
build -> init ivy -> resolve -> compute classpath -> do I have something to
build ? (has dependencies changed? files ?) -> find what is the next
release -> compile
clean -> clean any generated files
doc -> build any doc
package -> make a jar
publish -> get current ivy version -> publish jar on local repo
share -> publish jar on integration repo
release -> publish jar in test/prod repo
test -> lauch unit tests
I wish Ant import would support URL + jar like that :
<project ...>
<import url="http://repo/build.jar!common-build.xml"/>
</project>
As ivy became a sub project, it would make sense to have a closer
integration like :
<project ...>
<import url="ivy://settings.xml:org/module/artifact@(protected)" />
<!--
would locate the settings.xml file and seek a build-common.xml file using
MyResolver resolver.
-->
</project>
we could imagine deeper integration :
<project ...>
<import url="ivy://settings.xml:org/module/artifact@(protected)"
ivyFile="${basedir]/ivy.xml"/>
<!--
configure ivy / read the ivy file
would map each ivy configuration to a path ( path could use a lazy resolve
proxy: resolve only when it get used)
would import resolved artifcat as an ant build file
-->
</project>
I think is not easy to not like maven ... but Xavier is right it's time to
go a step beyond with ant+ivy
So any comments on that ?
--
Sent from the Ant - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@(protected)
For additional commands, e-mail: dev-help@(protected)