Skip to main content

Ant - Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

This post is all about this error and on how to resolve this error.

Just to give some background:
Apache Ant is a Java-based build tool. For more information on Apache Ant, you can visit Apache Ant. The recent version is Apache Ant is Ant 1.71 and can be downloaded from here.
We can add a else attribute in the conditionTask for making a choice.

Coming back to the error that you have encountered:
Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

This can happen if you have Apache ant with a version less than 1.65
So, Make sure to update your ant to a version more than 1.65. Recent version, as I mentioned is, 1.71.

Does this fix the problem that you encountered with ant?
If yes, Great.

No, then continue reading. We have other fix available for Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

If you get this error even though you have the ant 1.65 or more, then the following information may be helpful.
-> Check whether the file is marked executable.
You can check the permissions of the file using "ls -l /ant"
->when you don't have execute permissions, mark the file as executable for you/your group.
->Then continue to run. It should run now.

you can mark the file as executable by executing the command,
"chmod 777 \ant" - "rwxrwxrwx" - universal writable.
or
"chmod 775 \ant" - "rwxrwxr-x" - only owner and the group can write.

Comments

  1. I tried both the solutions: 1. Ant version is 1.7.1 and 2. Executable
    But i am still getting the same error

    ReplyDelete

Post a Comment

Popular posts from this blog

Nokia E51 WLAN Settings

Nokia E51 is a smart phone with almost all the features available in it. It looks really slim and comes in three colors. It has loads of features and highlight of them all is the connection through the Internet through WLAN. You can get a Internet connection from the service provider and ask for the wi-fi router. With the wi-fi router, you can connect to the Internet through various other devices like Laptop, Nokia E51 etc., You will be provided with the password for the WLAN connection and only if you enter the password correctly you will be connected to the Internet through that WLAN. As you may expect, this password will be asked only when you connect to Internet through this WLAN for the very first time. In Laptop/Computer, you have Network settings to identify and modify the settings if wrongly entered. But this is somewhat tricky in case of Nokia E51! In Nokia E51, You have the option of Browse WLAN right at the home page for you. If you have customized for something different, u

Igate delisting - Is it worth the bet? - Part II

I said it is worth the bet in my previous post . For delisting, the owner should atleast have 90% of the company's share. This is not the case with Igate which has only 80.1% currently. But it can continue with delisting process as it is approved by the shareholders. The floor price for the delisting process is set at Rs. 288.90/- , which is the 26 day average of high and low price. The current market price is Rs. 374/-. As I said before, there is no ceiling price and one can bid at whatever price he likes! The price will be decided after the Reverse book building process and it is decided by the price quoted by majority of the people much similar to IPO book building. The management then decided to carry on or cancel the de-listing process at will after the exit price is known. If the exit price is approved, then that price will be the price at which the management buy back all the shares. If the price you quoted is greater than exit price then yours will not be bought by the comp

What does customer experience mean?

Customer experience is the experience of the customer from the period they came to know about the existence of the product until they finish using the product. For a hotel like Saravana Bhavan, the customer experience is from the point they came to know about its existence (the day they started) until they are associated with that particular customer (probably, forever for Saravana Bhavan but it depends on each of the customer). For a typical brokerage firm, it is all about how easy it is to open the account and the experience until the customer closes the account. For BSNL or Samsung, it is from when the customer gets to know about their products (the point when they want to buy it) until the time they stopped using it. Customer service is also part of it. Its all about the customer service, once the customer has become the owner of the product. Most of the times, I have seen, the Customer Experience is great until one procure the product or service and after that, because of t