Author: jleroux
Date: Wed Aug 24 20:53:25 2011 New Revision: 1161272 URL: http://svn.apache.org/viewvc?rev=1161272&view=rev Log: There have been a recent svnUpHotdeploy.sh contribution, here is a Windows batch. Added: ofbiz/trunk/svnUpHotdeploy.bat (with props) Added: ofbiz/trunk/svnUpHotdeploy.bat URL: http://svn.apache.org/viewvc/ofbiz/trunk/svnUpHotdeploy.bat?rev=1161272&view=auto ============================================================================== --- ofbiz/trunk/svnUpHotdeploy.bat (added) +++ ofbiz/trunk/svnUpHotdeploy.bat Wed Aug 24 20:53:25 2011 @@ -0,0 +1,57 @@ +@echo off +rem ##################################################################### +rem Licensed to the Apache Software Foundation (ASF) under one +rem or more contributor license agreements. See the NOTICE file +rem distributed with this work for additional information +rem regarding copyright ownership. The ASF licenses this file +rem to you under the Apache License, Version 2.0 (the +rem "License"); you may not use this file except in compliance +rem with the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, +rem software distributed under the License is distributed on an +rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +rem KIND, either express or implied. See the License for the +rem specific language governing permissions and limitations +rem under the License. +rem ##################################################################### + +rem Hot-deploy synchronisation script, update existing components, check out new ones +rem This is useful when you keep a link with Apache OFBiz repository and have your own repository for hot-deploy + +setlocal EnableDelayedExpansion + +rem SVN path of the hot-deploy folder, here is just a suggestion, to be adapted to you real repository +set SVN_PATH=.../implementation/trunk/ofbiz/hot-deploy/ + +rem Go to (local) working copy of the hot-deploy folder +pushd hot-deploy + +rem Get all files and directories of hot-deploy folder via SVN +for /f "tokens=*" %%i in ('svn list !SVN_PATH!') do ( + rem %%i is now a commponent name + set DIRNAME=%%i + + rem Remove trailing slash if necessary + if "!DIRNAME:~-1!" == "/" set DIRNAME=!DIRNAME:~0,-1! + + rem Check if directory already exists (i.e. if already checked out) + if exist !DIRNAME! ( + echo Update file or directory !DIRNAME!... + svn update !DIRNAME! + ) else ( + echo Checkout directory !DIRNAME!... + svn checkout !SVN_PATH!!DIRNAME! !DIRNAME! + ) + + rem Unset variable + set DIRNAME= +) + +rem Unset variable +set SVN_PATH= +popd + +pause \ No newline at end of file Propchange: ofbiz/trunk/svnUpHotdeploy.bat ------------------------------------------------------------------------------ svn:eol-style = LF Propchange: ofbiz/trunk/svnUpHotdeploy.bat ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/svnUpHotdeploy.bat ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id |
Free forum by Nabble | Edit this page |