Professional Documents
Culture Documents
Using If Task Within Ant 1.4
Using If Task Within Ant 1.4
<path id="ant.antcontrib.classpath">
<pathelement location="../libext/ant/ant-contrib-1.0b3.jar" />
</path>
<!-- using this to get around some ant limitations with property settings -->
<taskdef resource="net/sf/antcontrib/antlib.xml"
classpathref="ant.antcontrib.classpath" />
<if>
<equals arg1="${foo}" arg2="bar" />
<then>
<echo message="The value of property foo is bar" />
</then>
<else>
<echo message="The value of property foo is not bar" />
</else>
</if>
The problem for anyone getting involved in politics in China, according to Hong Huang,
is that you never know how far you can go.
"I think every country has a line that you cannot cross. The problem in China is that that
line is a moving target," she said.
"There are times when you think the line has moved far away, but the next thing you
know, you are standing right on it."