Following Java program erase user given fixed number of characters from each line of a text file. Here the number of characters to be erased is 3. For the convenience input and output files are given as two separate file. Output file may contain the result you want.
Sunday, August 11, 2013
Wednesday, February 20, 2013
How to Create a Local SVN Repository
Apache Subversion (SVN) is a software versioning and revision control system which is widely used in software industry. SVN is very useful when we create important and huge code over a time period. Because, whatever change happened, we can go back to our previous versions of the code. And other important feature is we can mange our huge source code with a huge development team. Normally, we install SVN in a server machine.
But we can create an SVN repository in our own computer and we can mange our code locally. It is very simple and there are only few steps to complete.
First You have to install SVN in your computer. Here you can find the way to install. After installing, type the following command in the command line consecutively. This example is based on Linux OS.
mkdir /home/user/svndir - This will create a directory called 'svndir'.
cd /home/user/svndir - Go inside that directory.
cd /home/user/svndir - Go inside that directory.
svnadmin create mylocalrepo - 'mylocalrepo' is the name of your repository.
svn mkdir file:///home/user/svndir/mylocalrepo/ myproject - You create a directory called 'myproject' inside your repository.
svn import /home/user/HelloWorld file:///home/user/svndir/mylocalrepo/ myproject - You enter your 'HelloWorld' porject in to the local repository 'myproject' directory.
Now you are done..!
You can check your local repository content by executing following command.
svn list --verbose file:///home/user/svndir/mylocalrepo
You can use all the SVN command which has been listed here.
As an example, when you want to check out your project to your workspace type following command.
svn co file:///home/user/svndir/mylocalrepo/myproject /home/user/workspace
Friday, June 29, 2012
How to Install Apache Ant
Its really simple.
1. Make sure you have java environment installed in your system.
2. Download Ant binary distribution form here.
3. Uncompress the file downloaded.
4. Set the environment variables.
Click new button to add new environment variable. Type "
ANT_HOME" as the variable name and give the path of the directory where you uncompress Ant as the value. Then edit the path variable. For Windows add %ANT_HOME%/bin and for Linux add ${ANT_HOME}/bin to the value value of the path variable. At the end the value of the path variable should be shown like this. C:\Program Files\Java\jdk1.6.0_22\bin ; %ANT_HOME%/bin.
5. Click OK and save all the changes.
Now your are ready to use Apache Ant.
You can make sure that Ant is installed correctly by executing the command
ant -version in command prompt. If it is installed correctly it should show the version information of Ant distribution.
Subscribe to:
Posts (Atom)
