Sorry, a little mistake.

It should be

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

Regards, Frank



Quoting [EMAIL PROTECTED]:

> 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 <[EMAIL PROTECTED]>:
>
> > 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:[EMAIL PROTECTED]
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to