Posts

Installing Apache and Subversion on CentOS

Using Apache modules to expose SVN for your team(s). The following setup was performed on CentOS(ver 6) to expose SVN via Apache. Install Apache Check the status Start the process Verify the install, the Apache test page should be view able http://localhost Ensure Apache starts by default Apache configuration file Install Subversion Install the needed Apache modules subversion and mod_dav_svn Update the subversion.conf Add an entry to the "subversion.conf" file Create users, command for the first user All other users Configure the repository Create the required directories Create the repository Change ownership of repos to apache Restart Apache Test via Browser http://localhost/repos You should see "Revision 0" Creating SVN structure Verify changes using your browser http://localhost/repos SVN Clients http://tortoisesvn.net/ References: http://wiki.centos.org/HowTos/Subversion http://linuxwave.blogspot.ca/2008/02/inst...

SVN to Hudson/Jenkins - Repository Hooks

Image
While you can set Hudson/Jenkins to poll SVN at specific times an alternative is to let SVN inform Hudson when a new change has been committed to the repository. Requirements: You will need access to the server that hosts your SVN repository. You have a project setup and configured in Hudson. Adding the SVN Plugin The following Hudson plugin is installed, version 1.20 for this example. From the Hudson Console: Click Manage Hudson-Manage Plugins Ensure the Subversion Plugin is added. Adding the SVN Hook to SVN Once the plugin has been added its time to update the SVN hook. Using a text editor, VM or VIM edit the "post-commit" file in your SVN repository hooks directory. An example based on the "Oracle Virutal Developer Days VM" Repository directory: /home/oracle/labs/Dev_labs/svn_repos/otnvdd/hooks File: post-commit An sample "post-commit" file: Verify your changes: Once you have the SVN hook in place, its time to make a change ...

Setting up SVN on Apache on Windows

Image
As part of getting some new members up to speed I needed create an SVN repository for project related check-in. I decided to go with Apache SVN which is easy to setup on Apache. Installation the following software Apache HTTP Server 2.2.1 http://httpd.apache.org/ Apache Subverion - 1.7.1 Win32Svn (32-bit client, server and bindings, MSI and ZIPs; maintained by David Darj) http://subversion.apache.org/packages.html Reboot to ensure paths are set correctly Apache Installation note Using port 80 it should install as a service to ensure SVN is active on restart Creating a repository on the Server Copy required modules Copy the files mod_authz_svn.so and mod_dav_svn.so Configure Apache httpd.conf In the modules section ensure the following setting exist Create and add user(s) to the authfile Connect and Confirm using IE, Chrome or FireFox Setting up the standard directories Checkout the repository using TortiseSVN or a command line tool Create the follow...

Ant Task - Build Date and Number

Image
Ant Task - Build Date and Number Often we want to know the build number and date for an application. Having the build number and date at the bottom of the screen can provide the development team with valuable information when investigating defects. Sample output: Auto generated date and build number Web Project artifacts version.properties, contains the lastest build information WEB-INF\template\version.jsp, contains the jsp fragments to build the real version.jsp WebContent\version.jsp, contains the jsp fragments generated from the ant task index.jsp, includes the version.jsp at the bottom of the page. Ant task: The Eclipse Dynamic Web Project is available on github.com https://github.com/sfbishop/DisplayVersion

Continuous Build with Jenkins on Windows with Tomcat, github, Ant and Eclipse

Image
Continuous Build with Jenkins with Tomcat, github, Ant and Eclipse A quick look at setting up a Jenkins job to automatically build and deploy a Dynamic Web Project. For Windows here is what you need: Tomcat or another web container Ensure the default ports are changed, for my examples I used 8787 for tomcat Tomcat is installed and running http://tomcat.apache.org/tomcat-7.0-doc/ Eclipse with a github plugin see my previous post  http://straightforwardit.blogspot.com/2011/11/setting-up-eclipse-for-github.html You have a Java project checked into github.com If not,  https://github.com/sfbishop/TestProject  is accessible A github account (see github.com) Remember to setup the SSH keys Jenkins (see  http://jenkins-ci.org/ )  Download the lastest war file github client software http://help.github.com/win-set-up-git/ Start Jenkins  java -jar jenkins.war Visit  http://localhost:8080/  to access Jenkins Install Jenkins as a service ...

Setting up Eclipse for GitHub

A quick g uide for setting up Eclipse and github. The "Git for Windows" client was not installed. Prerequisites: Eclipse Version: Eclipse IDE for Java EE Developers, Indigo Service Release 1 Create a Github account Visit http://github.com/plans to sign up Select your plan type Updating Eclipse git plugin Click Help-Eclipse Marketplace Search for GIT Click install on "EGit" Follow the prompts to install Setup Eclipse SSH Eclipse has ssh key management options Open Eclipse Windows\Preferences      General\Network Connections\SSH2      or      Type "ssh" into the preference filter Open the "Key Management" tab. Click "Generate DSA key". Click "Save Private Key" Click "OK" to ignore the warnings Click "Save" with the "default location" to store the keys in your ssh directory Not this location Your ssh keys setup is complete in Eclipse Go to the location where the keys wh...