just in ram

A list of stuff I should remember but never do

Archive for May, 2006

SAP NetWeaver developer Studio – Compile Error

with one comment

Was getting weird error when trying to compile a project today:

The project was not built due to "Problems encountered while copying resources.". Fix the problem, then try refreshing this project and rebuilding it since it may be inconsistent.

After a quick Google it appears this has happened to others and a re-install fixed the problem. I managed to fix the problem by:

Highlighting the project in the Enterprise Portal perspective then doing a File => Refresh from the menu.

Written by Justin Ramel

May 8th, 2006 at 10:41 am

Ruby script to rename windows subversion files .svn to _svn

with one comment

Dir["**/.svn"].each do |folder|
	File.rename(folder, folder.sub('.svn', '_svn'))
end

Written by Justin Ramel

May 4th, 2006 at 9:46 pm

Posted in Ruby, Subversion

Subversion server + windows + backup

without comments

So you want to backup your repository?

Unfortunately you cannot do a straight backup of your repository as someone may have a file open/locked which will cause problems on restore. So you should do a “hot copy” to prevent any locking issues when the actual backup is made. My “hot copy” is created using the following batch file:

REM Reset hot copy
rmdir /S /Q c:\\svnrepos_hotcopy
mkdir c:\\svnrepos_hotcopy

REM Initiate SVN backup. Use svadmin hotcopy --help for details
svnadmin hotcopy c:\\svnrepos c:\\svnrepos_hotcopy --clean-logs

I run this batch file daily as a scheduled task before the actual backup.

This batch file is a modification of the batch file described over at:

Blended Technologies

Written by Justin Ramel

May 3rd, 2006 at 10:46 am

Posted in General