You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Steve Cohen <SC...@sportvision.com> on 2003/02/28 13:52:53 UTC
RE: how to export a reference ?
<ant antfile="${cfg.ORB.ant.dir}/build.xml" target="ORB_init" inheritrefs="true"/>
-----Original Message-----
From: Romain Rouvoy [mailto:Romain.Rouvoy@lifl.fr]
Sent: Fri 2/28/2003 7:43 AM
To: ant-user@jakarta.apache.org
Cc:
Subject: how to export a reference ?
Hello,
I just want to know if it is possible (and how to do) to export the refid of a path defined in a nested build.xml file which is called using the ant task.
Here is my code :
nested build.xml :
<target name="ORB_init" >
<path id="ORB.class.path" >
<fileset dir="${ORB.jar.dir}">
<include name="OB.jar" />
<include name="OBNaming.jar" />
<include name="OBUtil.jar" />
</fileset>
</path>
</target>
root build.xml :
<target name="common_init" depends="common_header">
<ant antfile="${cfg.ORB.ant.dir}/build.xml" target="ORB_init" />
<path id="project.boot.class.path">
<pathelement path="${build.class.dir}" />
<path refid="ORB.class.path" />
<pathelement path="${JDK.jar.file}" />
</path>
</target>
My problem comes from the directive <path refid="ORB.class.path" /> which told me "Reference ORB.class.path not found" =(
Does anyone knows how to do ?
Best Regards,
Romain ,,,
(. .)
---------------------------------.oOO--(_)--OOo.--
Romain Rouvoy - Master Thesis Student
Laboratoire d'Informatique Fondamentale de Lille
UPRESA 8022 CNRS - U.F.R. I.E.E.A. - Batiment M3
Universite des Sciences et Technologies de Lille
59655 Villeneuve d'Ascq CEDEX France
NEW Phone: (33) (0)3 20 43 47 28
Fax: (33) (0)3 20 43 65 66
E-Mail: Romain.Rouvoy@lifl.fr
ICQ: #159382122
Home Page: http://www.lifl.fr/~rouvoy/
See Also: http://www.objectweb.org/openccm/
http://www.objectweb.org/jotm/
--------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to export a reference ?
Posted by Romain Rouvoy <Ro...@lifl.fr>.
Hi,
This option (inheritrefs) is usefull when you want to export from the root build.xml to the nested build.xml but I wan't to know how to export from the nested build.xml to the calling root build.xml. =)
On Fri, 28 Feb 2003 06:52:53 -0600
"Steve Cohen" <SC...@sportvision.com> wrote:
> <ant antfile="${cfg.ORB.ant.dir}/build.xml" target="ORB_init" inheritrefs="true"/>
>
>
>
>
> -----Original Message-----
> From: Romain Rouvoy [mailto:Romain.Rouvoy@lifl.fr]
> Sent: Fri 2/28/2003 7:43 AM
> To: ant-user@jakarta.apache.org
> Cc:
> Subject: how to export a reference ?
>
> Hello,
>
> I just want to know if it is possible (and how to do) to export the refid of a path defined in a nested build.xml file which is called using the ant task.
>
> Here is my code :
>
>
> nested build.xml :
> <target name="ORB_init" >
> <path id="ORB.class.path" >
> <fileset dir="${ORB.jar.dir}">
> <include name="OB.jar" />
> <include name="OBNaming.jar" />
> <include name="OBUtil.jar" />
> </fileset>
> </path>
> </target>
>
>
>
> root build.xml :
> <target name="common_init" depends="common_header">
> <ant antfile="${cfg.ORB.ant.dir}/build.xml" target="ORB_init" />
>
> <path id="project.boot.class.path">
> <pathelement path="${build.class.dir}" />
> <path refid="ORB.class.path" />
> <pathelement path="${JDK.jar.file}" />
> </path>
> </target>
>
>
>
>
> My problem comes from the directive <path refid="ORB.class.path" /> which told me "Reference ORB.class.path not found" =(
>
> Does anyone knows how to do ?
>
>
>
>
>
> Best Regards,
> Romain ,,,
> (. .)
> ---------------------------------.oOO--(_)--OOo.--
> Romain Rouvoy - Master Thesis Student
> Laboratoire d'Informatique Fondamentale de Lille
> UPRESA 8022 CNRS - U.F.R. I.E.E.A. - Batiment M3
> Universite des Sciences et Technologies de Lille
> 59655 Villeneuve d'Ascq CEDEX France
>
> NEW Phone: (33) (0)3 20 43 47 28
> Fax: (33) (0)3 20 43 65 66
> E-Mail: Romain.Rouvoy@lifl.fr
> ICQ: #159382122
> Home Page: http://www.lifl.fr/~rouvoy/
> See Also: http://www.objectweb.org/openccm/
> http://www.objectweb.org/jotm/
> --------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org