How to Use SVN Tasks with ANT ?

This post is about using ANT to perform some of the most common source-control related tasks such as export, tagging, and branching. I am using ANT version 1.7.0 and SVN…

Read more »
java-system-properties

How to access all Java system properties directly?

You could access all Java system properties directly via ${name}, e.g. ${user.name}, ${user.dir}, ${user.home}, … You could read environment properties and use them   <properties environment=”env”/>   ${env.ENVIRONMENT_VARIABLE} e.g.  …

Read more »

How to use ant Script to Reset BuildNumber?

To use this code, you need to have the file build.number containging: major.number=1 minor.number=0 hotfix.number=0 revision.number=0 continuous.number=0 Then the following 3 targets:   <taskdef resource=”net/sf/antcontrib/antlib.xml”/> <taskdef name=”unset” classname=”ise.antelope.tasks.Unset”/>     <target name=”initBuildNum” description=”Get…

Read more »
batch-program-to-shutdown-restart-computer

Batch Program to Shutdown and restart the computer.

Batch Program to Shutdown and restart the computer.  Restart echo off D:\Temp\tmp\SHUTDOWN.EXE /L /R /Y /C pause   Shutdown echo offd:\tmp\SHUTDOWN.EXE /L /Y /C pause

Read more »