Hang with me, this takes a while to explain. :-)
I'm trying to add a build number to a footer panel in GWT.
CruiseControl passes the build label to Maven.
Maven copies a properties file while performing a substitution which
gives me a properties file in target/classes with the correct values
in it.
To get GWT to build the properties file into the application I have to
copy the file from target/classes to the source tree (I use an ant
task for that).
For Eclipse builds to build correctly I need a default properties file
in the source tree.
The problem is that CVS won't tag the build because now the properties
file in the source tree is not in CVS. I tried many ways to make a
backup copy of the file in the source tree and copy it back, but I've
never been able to find a phase to tie different copying calls to that
only executes once.
So, in short, what I need is a way to
1. backup a properties file in the source directory before
resources are processed.
2. copy a processed properties file from target/classes to the
source tree after resources are processed.
3. copy the backup of the properties file back to the source tree
before scm:tag.
Right now I'm trying to work around the problem by having scm:tag not
tag that file, but that could lead to surprises.
--
Esse Quam Videre
To Be, rather than to Seem
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]