On Mon, Dec 27, 2010 at 15:40, Alex Siman <
aleksan...@gmail.com> wrote:
>
> Hi David,
>
> I don't get, how can I leverage a git branch for this task? Can you
> please describe your solution in details?
by example for vscaladoc2_www, I've got a private branch 'prod'.
created by "git checkout -b prod"
when I'm on this branch I commit stuff only for prod (configuration file, web.xml,....)
And before doing deployement on
stax.net, I run the following script (from branch master)
git push origin master
git checkout prod
git rebase -i master
mvn clean install stax:deploy -Pstax
git checkout master
(I use maven, but the same can be done with sbt)
>
> And as for system property solution... OK, say in development I have
> such file:
> [src/main/webapp/WEB-INF/web.xml]
>
> but on command "sbt package" I want that in result WAR will be
> included another version of web.xml from:
> [src/prod/webapp/WEB-INF/web.xml]
>
> What I need to do?
I'm not an SBT users, but from my limited knowledge, you can try something like
override def extraWebappFiles : PathFinder = System.getProperty("mode") match {
case null => super.extraWebappFiles
case mode => descendents(DefaultSourceDirectoryName / mode / webappDirectoryName ##, "*") +++ super.extraWebappFiles
}
I hope this help
/davidB