cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Ant build file

Former Member
0 Kudos

Doing some exercises with Ant build files for my understanding, I got with the below given coding

<?xml version="1.0" encoding="UTF-8"?>
<project name="bsp1203" default="main" basedir=".">
 <fileset dir="." id="id_fs1"/>

  <target name="main" depends="check">
    <echo message="id_xyz existiert           : ${c1}" 
          id="id_echo1"/>
    <echo message="id_fs1 existiert           : ${c2}"/>
    <echo message="id_fs1 ist ein Property    : ${c3}"/>
    <echo message="id_fs1 ist ein Fileset     : ${c4}"/>
    <echo message="id_echo1 ist ein echo-task : ${c5}"/>
  </target>

  <target name="check">
    <condition property="c1" value="ja">
      <isreference refid="id_xyz" />
    </condition>
    <property name="c1" value="nein"/>

    <condition property="c2" value="ja">
      <isreference refid="id_fs1" />
    </condition>
    <property name="c2" value="nein"/>

    <condition property="c3" value="ja">
      <isreference refid="id_fs1" type="property"/>
    </condition>
    <property name="c3" value="nein"/>

    <condition property="c4" value="ja">
      <isreference refid="id_fs1" type="fileset"/>
    </condition>
    <property name="c4" value="nein"/>

    <condition property="c5" value="ja">
      <isreference refid="id_echo1"  type="echo" />
    </condition>
    <property name="c5" value="nein"/>
  </target>

</project>

following error message within NetWeaver Developer Studio v7.0.11

BUILD FAILED: file:X:/path/bsp1203.xml:15: The <condition> task doesn't support the nested "isreference" element.

Is there anyone who can guide me to the documents which give me the actual command set words being realized so fare in that DS version for ANT?

Thank you.

Regards

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Looking at

Link: [http://ant.apache.org/manual/CoreTasks/condition.html]

It does not have isreference element under the condition task??

Former Member
0 Kudos

Thank you for the link.

Meanwhile I became aware of that my DS version uses Apache Ant v1.5.3 and the linked documentation is saying that the nested element isreference has been added with Apache Ant v1.6.

Regards

Christian