ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harna...@mail05.harlau.de
Subject RE: Relative paths
Date Fri, 13 Jan 2006 11:56:47 GMT
Something like this maybe help you in your root build.xml:

    <target name="compileApp1">
        <ant antfile="apps/app1/nbproject/build.xml" target="compileApp1"
inheritall="true" inheritrefs="true"/>
    </target>

    <target name="compileApp2">
        <ant antfile="apps/app2/nbproject/build.xml" target="compileApp2"
inheritall="true" inheritrefs="true"/>
    </target>

    <target name="packageApp1">
        <ant antfile="apps/app1/nbproject/build.xml" target="packageApp1"
inheritall="true" inheritrefs="true"/>
    </target>

    <target name="packageApp2">
        <ant antfile="apps/app2/nbproject/build.xml" target="packageApp2"
inheritall="true" inheritrefs="true"/>
    </target>

It isn't nice, but it should work.

Regards, Frank



Quoting Paulo Jorge Guedes <Paulo.Guedes@artelecom.pt>:

> I already discovered why:
> http://ant.apache.org/manual/CoreTasks/import.html
>
> The problem is I can't touch on the nbproject build file as it is
> automatically generated by the IDE.
> Is there any way to workaround it instead of overriding the targets in
> the app1 folder?
>
> Paulo
>
> > -----Original Message-----
> > From: Paulo Jorge Guedes [mailto:Paulo.Guedes@artelecom.pt]
> > Sent: sexta-feira, 13 de Janeiro de 2006 10:49
> > To: Ant Users List
> > Subject: Relative paths
> >
> > Hi,
> >
> > I have this directory structure:
> >
> > Root
> > 	Apps
> > 		App1
> > 			Nbproject
> > 			Src
> >
> > The build.xml files just import the files in the inner directories.
> The
> > build file on nbproject folder does all the work.
> > In each file I set the "basedir" attribute of "project" element to
> ".".
> > The problem is that the build file in nbproject is ignoring its
> basedir
> > setting using the one defined by the build file in the root directory.
> >
> > I'm out of ideas and would appreciate any help.
> >
> > Thanks in advance,
> >
> > Paulo
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>





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


Mime
View raw message