Posts

Showing posts with the label Eclipse

SVN and Eclipse - Keyword Substitution

Setting up keyword substitution in Eclipse: Prerequisite: Subclipse or Subversive is installed Configuring in Eclipse: Right-click on your project Choose Team -> Set Property Enter the property name: svn:keywords  Enter the text: Id Author Date Revision Check Set property recursively  Click Ok Adding svn tags to your source file: Source file before check-in: Source file after SVN commit SVN keywords are now substituted when you commit your file(s). References: http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.tour.revs.keywords  http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html http://johnbokma.com/mexit/2008/09/30/subversion-svn-keywords-property.html http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/176

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

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...