Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How we can set path path and classpath into an ant build file?

Answer Posted / Tannu Singh

The "path" property in Apache Ant is used to set the system PATH environment variable. This can be useful for adding directories to the PATH that contain executables that will be called during the build process.nnFor example:n<property name="java.home" location="/usr/lib/jvm/java-1.8.0" />n<path id="my.classpath">n <pathelement path="${java.home}/lib/tools.jar" />n</path>nnThe "classpath" property can be used to specify the classpath for a Java compile or run task. This can include directories and JAR files containing classes that need to be compiled or executed.nnFor example:n<javac srcdir="src" destdir="bin" classpath="lib/my-library.jar">n...n</javac>nIn this example, the "classpath" attribute specifies that the "my-library.jar" file should be included in the classpath for the Java compilation task."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category