ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject Smart analzyer vs Ant depend
Date Tue, 06 May 2003 14:27:59 GMT
Hello:

I'm trying to find/figure out what the best solution is to deal with class
dependency compilation. At first glance smart analyzer appears to be the
most feature rich and I believe its web site states that it will replace
Ant's depend task. Has anyone had any experience with smart analyzer? I've
searched the archive and found nothing.

Thanks,
-Will

-----Original Message-----
From: Oliver Alth [mailto:OALTH@de.ibm.com] 
Sent: Friday, March 28, 2003 3:18 AM
To: user@ant.apache.org
Subject: API: Building up a project object from a build.xml file


Hello,

I am trying to build up a project object from a build.xml file with all of
its contents.

The problem I have is that when I try to get all tasks from a target, I get
an array of tasks. But all of the information is gone, like the dir
Attribute of an exec task is null.

What am I doing wrong?

Here's my code:

this.project = new Project();
 this.helper = new ProjectHelper();
project.init();
helper.configureProject(project,configFile);

 Hashtable h = project.getTargets();

 Enumeration en = h.elements();

 Task[] tasks;

 while (en.hasMoreElements())
 {
      Target t = (Target)en.nextElement();
      tasks = t.getTasks(); // When you look at those tasks, most of their
attributes are null  }


This is a part of the build.xml file:


<property name="rexx.dir" value="tools/rexx"/>
<property name="edit.dir" value=""/>



<!-- Regedit Builtin Type -->
<target name="regedit">
<exec executable="regedit" dir="${edit.dir}" vmlauncher="false"> </exec>
</target>

Thanks in advance for your help,

OIiver





__


________________________________________________________________
IBM Deutschland Entwicklung GmbH, Schönaicher Str. 220, D-71032 Böblingen
eServer Software Management, D4357, Intern: 7103-06, Tel. 902-2790,
Tel.: ++49-(0)7031-16-4280, Fax.: 07031-16-2790
Internet: OALTH@DE.IBM.COM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message