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 »