---
title: "Class org.apache.tools.ant.taskdefs.ConditionTask doesn't   support the nested "
author: "iammonster"
date: "2010-04-02T10:47:07Z"
tags: []
categories: ["研发管理"]
slug: "class-org-apache-tools-ant-taskdefs-conditiontask-doesn-t-support-the-nested"
draft: false
lastmod: "2010-04-02T10:47:07Z"
id: 630591
url: "https://jiajun.iteye.com/blog/630591"
---

我在build hadoop的时候 发现ant有不支持的标签

 

 

```
Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the nested "typefound" element.
```

 

在这里得到解决：

http://getsatisfaction.com/cloudera/topics/make\_sure\_srpms\_can\_be\_rebuilt\_on\_rhel

 

1. Download the Apache Ant 1.8.0 tarball
2. Extract it
3. Setup the environment variable ANT\_HOME to point to the location you extracted the tarball
4. Add $ANT\_HOME/bin to the front of your $PATH

在.bash\_profile里面设置