René's URL Explorer Experiment


Title: How to change Java Version/JAVA_HOME for Ant? | Darshit Patel's Blog

Open Graph Title: How to change Java Version/JAVA_HOME for Ant?

X Title: How to change Java Version/JAVA_HOME for Ant?

Description: Learn how to change the Java version for Ant builds using the ~/.antrc file on Unix systems. Step-by-step guide for switching JAVA_HOME per-project.

Open Graph Description: Learn how to change the Java version for Ant builds using the ~/.antrc file on Unix systems. Step-by-step guide for switching JAVA_HOME per-project.

X Description: Learn how to change the Java version for Ant builds using the ~/.antrc file on Unix systems. Step-by-step guide for switching JAVA_HOME per-project.

Keywords:

Opengraph URL: https://darshit.dev/posts/change-java-version-ant/

X: @darshitpp

Generator: Hugo 0.169.0

direct link

Domain: darshit.dev


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Posts","item":"https://darshit.dev/posts/"},{"@type":"ListItem","position":2,"name":"How to change Java Version/JAVA_HOME for Ant?","item":"https://darshit.dev/posts/change-java-version-ant/"}]}
{"@context":"https://schema.org","@type":"BlogPosting","headline":"How to change Java Version/JAVA_HOME for Ant?","name":"How to change Java Version\/JAVA_HOME for Ant?","description":"Learn how to change the Java version for Ant builds using the ~/.antrc file on Unix systems. Step-by-step guide for switching JAVA_HOME per-project.","keywords":["java","linux","ant"],"articleBody":"I wrote this earlier on a Github gist, but putting it here for a consolidated reference.\nWant to change Java Version/JAVA_HOME for Ant builds? Open ~/.antrc file by running vim ~/.antrc Add JAVACMD=/bin/java and save The Ant wrapper script for Unix will source (read and evaluate) the file ~/.antrc before it does anything. On Windows, the Ant wrapper batch-file invokes %HOME%\\antrc_pre.bat at the start and %HOME%\\antrc_post.bat at the end. You can use these files, for example, to set/unset environment variables that should only be visible during the execution of Ant.\nThe wrapper scripts use the following environment variables (if set):\nJAVACMD—full path of the Java executable. Use this to invoke a different JVM than JAVA_HOME/bin/java(.exe). ANT_OPTS—command-line arguments that should be passed to the JVM. For example, you can define system properties or set the maximum Java heap size here. ANT_ARGS—Ant command-line arguments. For example, set ANT_ARGS to point to a different logger, include a listener, and to include the -find flag. Note: If you include -find in ANT_ARGS, you should include the name of the build file to find, even if the file is called build.xml. Source: https://ant.apache.org/manual/running.html\n","wordCount":"188","inLanguage":"en","image":"https://darshit.dev/og-image.png","datePublished":"2020-06-15T10:40:40+05:30","dateModified":"2020-06-15T10:40:40+05:30","author":{"@type":"Person","name":"Darshit Patel"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://darshit.dev/posts/change-java-version-ant/"},"publisher":{"@type":"Person","name":"Darshit Patel's Blog","logo":{"@type":"ImageObject","url":"https://darshit.dev/favicon.ico"}}}

NoneIE=edge
authorDarshit Patel
theme-color#2e2e33
msapplication-TileColor#2e2e33
og:site_nameDarshit Patel's Blog
og:localeen
og:typearticle
article:sectionposts
article:published_time2020-06-15T10:40:40+05:30
article:modified_time2020-06-15T10:40:40+05:30
og:imagehttps://darshit.dev/og-image.png
twitter:cardsummary_large_image
twitter:imagehttps://darshit.dev/og-image.png

Links:

Darshit Patel's Bloghttps://darshit.dev/
Postshttps://darshit.dev/posts/
Nothing of Consequencehttps://darshit.dev/nothing-of-consequence/
Abouthttps://darshit.dev/about/
Github gisthttps://gist.github.com/darshitpp/f8017cdb61f4056c100edbf0182a6be0
#https://darshit.dev/posts/change-java-version-ant/#want-to-change-java-versionjava_home-for-ant-builds
https://ant.apache.org/manual/running.htmlhttps://ant.apache.org/manual/running.html
« PrevThe Java Constants Interface Anti-Pattern https://darshit.dev/posts/java-constants-interface/
Next »How To Implement Two Way SSL With Nginxhttps://darshit.dev/posts/two-way-ssl-nginx/
https://x.com/intent/tweet/?text=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f&url=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f&hashtags=java%2clinux%2cant
https://www.linkedin.com/shareArticle?mini=true&url=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f&title=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f&summary=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f&source=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f
https://reddit.com/submit?url=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f&title=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f
https://facebook.com/sharer/sharer.php?u=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f
https://api.whatsapp.com/send?text=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f%20-%20https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f
https://telegram.me/share/url?text=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f&url=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f
https://news.ycombinator.com/submitlink?t=How%20to%20change%20Java%20Version%2fJAVA_HOME%20for%20Ant%3f&u=https%3a%2f%2fdarshit.dev%2fposts%2fchange-java-version-ant%2f
comments powered by Disqus.https://disqus.com/?ref_noscript
comments powered by Disqushttps://disqus.com
Darshit Patel's Bloghttps://darshit.dev/
Hugohttps://gohugo.io/
PaperModhttps://github.com/adityatelange/hugo-PaperMod/
https://darshit.dev/posts/change-java-version-ant/#top

Viewport: width=device-width,initial-scale=1,shrink-to-fit=no

Robots: index, follow


URLs of crawlers that visited me.