ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mani G. Iyer" <>
Subject RE: Problem to set property with refid
Date Wed, 19 May 2004 01:57:47 GMT
Are there any *.java files under those packages?  


-----Original Message-----
From: Neta Bar Tal [] 
Sent: Tuesday, May 18, 2004 12:21 PM
To: Ant Users List
Subject: Problem to set property with refid

Hi all,
I'm trying to do the following:

<for list="${dynamics}" delimiter=" " param="dir">
   <path id="sources.path">
          <fileset dir="${env.CCWSCA}/@{dir}">
            <include name="*.java" />
       <property name="sources" refid="sources.path"/>
       <echo>the sources are ${sources}</echo>    


     <echo>compiling package:@{dir}</echo>
      <javac debug="${env.JAVA_DEBUG}" destdir="${env.CCWPA}/classes"
failonerror="false" includeantruntime="false" listfiles="no"
optimize="on" srcdir="${env.CCWSCA}">
                    <include name="@{dir}/*.java" />
                <classpath path="${classpath}"/>

I'll explain - i'm iteraring over all my packages and run the <javac>
command for each package.
I want to set the property ${sources} to see if there are java files in
it and run it only if there are files.
the output is:

   [depend] Deleted 325 out of date files in 19 seconds
     [echo] the sources are
     [echo] compiling package:amdocs
Overriding previous definition of reference to sources.path
     [echo] the sources are
     [echo] compiling package:amdocs/csm3g
Overriding previous definition of reference to sources.path
     [echo] the sources are
     [echo] compiling package:amdocs/csm3g/sessions

can you please help me with this issue?

The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated
of the message. If the reader of this message is not the intended
you are hereby notified that any dissemination, use, distribution or
copying of

this communication is strictly prohibited and may be unlawful.

If you have received this communication in error, please notify us
by replying to the message and deleting it from your computer.
Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message