How to know what version of ant-contrib.jar to be used - ant

How to know what version of ant-contrib.jar to be used for the ant versions?
currently I am adapting my testing environment from ant 1.7.0 to ant 1.9.1
Thanks in advance

The version of ant-contrib need bear no particular relation to the version of Ant. If you already have a version that works with Ant 1.7 it will continue to work under 1.9.

Related

Ant sonar command not works

I am trying to insert sonarqube setup on build.xml, getting unsupported error.
My build Java version support 1.6
Ant.sonar.qube support 2.5
If I use have version 1.8 my ant sonar command is working.ant command is not working.if I use java 1.6 ant is working and ant sonar is not working.
You already know exactly what your problem is:
If I use have version 1.8 my ant sonar command is working
...
if I use java 1.6 ant is working and ant sonar is not working.
You're facing incompatibility with the version of Java you're trying to use. Since analysis will not work with 1.6, you're best off upgrading to Java 8 and working to make whatever your other Ant target is work with that.

ant Unsupported major.minor version 52.0

This is driving me nuts.
When running any ant command (even ant -version), I always get the following error on Mac OSX:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/tools/ant/launch/Launcher : Unsupported major.minor version 52.0
I removed and re-installed ant entirely, and still get the same error.
For our company we have to run Java7 to run the command, so I created an alias.
This used to work, I'm not sure what changed.
I see you have java 1.7 installed and post that you have installed Ant 1.10.
Ant 1.10 requires jdk 8
Refer : http://ant.apache.org/
The Apache Ant team currently maintains two lines of development. The
1.9.x releases require Java5 at runtime and 1.10.x requires Java8 at runtime. Both lines are based off of Ant 1.9.7 and the 1.9.x releases
are mostly bug fix releases while additional new features are
developed for 1.10.x. We recommend using 1.10.x unless you are
required to use versions of Java prior to Java8 during the build
process.
Try using Ant 1.9.x if you can't use java 8
Here is a list of minimum java version for given ant version

With Java 8 which version of sonar-ant-task need to be used?

I am using ant script for Sonar code scan .Currently with 'sonar-ant-task-2.2.jar' i am able to execute scan for Java 7.
With Java 8 which version of sonar-ant-task need to be used ?
Thanks & Regards
Ganesh Rao
Read point #2 of Prerequisites at documentation. Use At least the minimal version of Java supported by your SonarQube server is in use.
See this, any JRE v8 will do.
If you have a look at the documentation of the latest scanner you will find this Prerequisites section:
SonarQube is already installed
At least the minimal version of Java supported by your SonarQube server is in use
The language plugins for each of the languages you wish to analyze are installed
You have read Analyzing Code Source.
Ant 1.7.1 or higher
So using Java 8 is not a problem if you are using SonarQube 5.6+ and using the latest scanner will resolve some issues (see the changelog).

which version of sonarqube for depereciated delphi plugin?

I want to use the Delphi plugin for SonarQube, but apparantly it is depreciated. Hence, I would like to install an old version of SonarQube to use it. My 2 questions:
- which version of SonarQube should I use?
- where can I donwload the latest version of the Delphi plugin?
Thanks a lot and regards,
Pieter
We tested and is running the current version of Sonar:
Compatible with SonarQube 4.5.x and SonarQube 5.1.2
https://github.com/fabriciocolombo/sonar-delphi
Release: https://github.com/fabriciocolombo/sonar-delphi/releases
JAR: https://github.com/fabriciocolombo/sonar-delphi/releases/download/0.3.3-SNAPSHOT/sonar-delphi-plugin-0.3.3-SNAPSHOT.jar
PS: Translated from Portuguese to English by Google Translate.
take a look here:
https://github.com/darianmiller/devmachine/wiki/Delphi-Example-Project-for-Sonar
I'm using delphi plugin 0.2 with sonar 3.5.1

Difference between ANT 1.7.0 and ant 1.9.1 versions

I want to know where to find the differences between different versions of ant?
Currently I am using ant 1.7.0 for running my system testcases.I want to migrate to new ant version 1.9.1. After migrating I want to make sure that my testcases are compatible with ant 1.9.1 version
Get it here ant. Which will explain which ant was released with which extensions..

Resources