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?



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

Answer / 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

More Apache Ant Interview Questions

How to hide password input?

1 Answers  


Can you define build tool?

1 Answers  


How many types of build tool you know?

1 Answers  


Explain how to import .jar files?

1 Answers  


Explain how to compile using ant script?

1 Answers  


How you can explain ant property?

1 Answers  


What is advantage of ant 1.7.1?

1 Answers  


How to use ant-contrib tasks?

1 Answers  


How can I use ant to run a java application?

1 Answers  


Explain how to debug my ant script?

1 Answers  


How you can prepare a project in ant?

1 Answers  


What are the capabilities of ant?

1 Answers  


Categories