ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Alth" <>
Subject Problems with API ProjectHelper
Date Tue, 25 Mar 2003 08:30:43 GMT

I am trying to use the ProjectHelper.configureProject() Method
to build up a project object with an build.xml file.
When I call this method, it recognizes only one target in the buildfile
with the getTargets() Method.
This is not true, I have got two targets. Can anybody tell me what i am
doing wrong?

Here's my build.xml file:

<project name="built_in_types" default="rexx" basedir=".">

<!-- Please define here the basedirs
where the tools have to be executed -->
<property name="rexx.dir" value="tools/rexx"/>
<property name="gnuc.dir" value="tools/gnuc"/>

<!-- This property can/must be overriden when calling
a task inside this file. It serves Xtcm to specify arguments
that the specific task needs -->

<property name="ext.progname" value=""/>
<property name="ext.arguments" value=""/>
<!-- Regedit Builtin Type -->

<target name="regedit">
<exec executable="regedit" dir="/windows/system32" vmlauncher="false">
 <arg value="jdsk"/>

<!-- Rexx Builtin Type -->
<target name="rexx">
<exec executable="rexxrun" dir="${rexx.dir}" vmlauncher="false">
 <arg value="${ext.progname}"/>
 <arg line="${ext.arguments}"/>

And here's the java code.

 public void test(String configFile)

     project = new Project();
     project.setUserProperty( "ant.file" , new
     File(configFile).getAbsolutePath() );
     ProjectHelper.configureProject(project, new File(configFile));


Thanks, Oliver

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

View raw message