-
1. Re: Applying ant filters to source files
adrian.brock Dec 22, 2005 12:30 PM (in response to ovidiu.feodorov)Don't do it :-)
Evil preprocessing hackery breaks incremental builds and causes me to shout at you!
Use abstractions and/or runtime configuration options. -
2. Re: Applying ant filters to source files
ovidiu.feodorov Dec 22, 2005 12:44 PM (in response to ovidiu.feodorov)What is an incremental build?
-
3. Re: Applying ant filters to source files
ovidiu.feodorov Dec 22, 2005 12:52 PM (in response to ovidiu.feodorov)Incremental build: A build process that only does the work required to apply the result of the source modifications to the build artifacts, without rebuilding the whole source tree from scratch.
-
4. Re: Applying ant filters to source files
ovidiu.feodorov Dec 22, 2005 1:09 PM (in response to ovidiu.feodorov)I understand.
Would you settle for applying it to just one file? :)
It's ConnectionMetaData, it contains release info, which can be very simple replaced by ant, based on the build.xml version properties.
Otherwise I've just wasted half hour by "rolling out" a filtering procedure ... :) -
5. Re: Applying ant filters to source files
ovidiu.feodorov Dec 22, 2005 1:14 PM (in response to ovidiu.feodorov)Forget it. You're right. I will do it using runtime configuration and system properties.
-
6. Re: Applying ant filters to source files
adrian.brock Dec 22, 2005 1:21 PM (in response to ovidiu.feodorov)That is already present in the manifest processing.
There's some other discussions about this, including a recent one between
Scott and I about the same issue for JBossMQ. -
7. Re: Applying ant filters to source files
ovidiu.feodorov Dec 22, 2005 1:25 PM (in response to ovidiu.feodorov)Could you please link it here?
-
8. Re: Applying ant filters to source files
adrian.brock Dec 22, 2005 1:36 PM (in response to ovidiu.feodorov)"ovidiu.feodorov@jboss.com" wrote:
Incremental build: A build process that only does the work required to apply the result of the source modifications to the build artifacts, without rebuilding the whole source tree from scratch.
My definition:
One that doesn't take 10 minutes before you can retest after a simple fix. -
9. Re: Applying ant filters to source files
adrian.brock Dec 22, 2005 1:37 PM (in response to ovidiu.feodorov)"ovidiu.feodorov@jboss.com" wrote:
Could you please link it here?
http://wiki.jboss.org/wiki/Wiki.jsp?page=BadPostSearch -
10. Re: Applying ant filters to source files
ovidiu.feodorov Dec 22, 2005 1:39 PM (in response to ovidiu.feodorov)>:P