You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Lopez, William" <wi...@eds.com> on 2003/05/06 16:27:59 UTC
Smart analzyer vs Ant depend
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