ANT Compiler Settings with more than one project
Hi all
I have a strange problem with the ANT Integration in NB 3.4B3. I have 2 projects in Netbeans with ANT as Default Compiler and (of course) 2 different build scripts. I copied the Compiler in the Netbeans Options and rename them (TCG-Compiler in the first project and FSA-Compiler in the other). When I now switch the project the compiler is switched but the build script is still the same. Because of that I have to change this manually. Both projects have only one build script mounted within the filesystem so the build script from one project is not visible from the other.
Did anyone had the the same problem? And, did anyone a solution for this?
Regards
Dieter
# 1
Lamberty, Dieter-Bernd wrote:
> I have a strange problem with the ANT Integration in NB 3.4B3. I have 2 projects in Netbeans with ANT as Default Compiler and (of course) 2 different build scripts. I copied the Compiler in the Netbeans Options and rename them (TCG-Compiler in the first project and FSA-Compiler in the other). When I now switch the project the compiler is switched but the build script is still the same. Because of that I have to change this manually. Both projects have only one build script mounted within the filesystem so the build script from one project is not visible from the other.
Maybe you'd better give a precise example of what you did. File a bug
report if possible (ant/code). Check the Default Compiler in Java
Sources and confirm that it is the right one in each project. Also check
the Compiler property on a particular source file you tried to compile.
-Jesse
--
Jesse Glick <mailto:jesse.glick@sun.com> x22801
NetBeans, Open APIs <http://www.netbeans.org/>
# 2
Hi Jesse
Thank you for your reply.
I will try to describe my problem more precise ...
I have 2 projects in NetBeans. One is called FSAdapterService the other grete.
Both projects have an ANT build file. The buildfile for FSAdapterService is at ...\project\FSAdapterService\build\build.xml, the buildfile for grete is at ...\project\grete\build\build.xml.
The Default Compiler for FSAdapterService is FSA-Compiler, for grete it is TCG-Compiler. Both Compiler were "Indirect Ant Compiler" which I copied and renamed. But on each project there is only one of these compilers (and the original "Indirect Ant Compiler"). The compiler have the correct build file (Property "Script"). Everything works fine if I compile ...
But now my problem :
Lets say I work on grete. The compiler property for the source files is TCG-Compiler with the grete build file.
Now I have to switch to FSAdapterService (Project Manager/Open). The project will open, the sources will open, everything seems to be fine. The compiler property for the source files is switched to FSA-Compiler. But when I now try to compile the grete build file is still be used. When I open the Compiler properties the build file is ...\grete\...\build.xml and I have to change manually to the correct build file again. This makes me wonder because the grete build file is not even mounted within the NB filesystem so it is not possible for me to switch to that file (I don't want it, but ...)
I hope this will clarify my problem
Regards
Dieter
PS: I did not file a bug because I have no idea how to declare this within a few lines ;-)
--Ursprüngliche Nachricht--
Von: Jesse Glick [mailto:jesse.glick@sun.com]
Gesendet am: Dienstag, 16. Juli 2002 14:57
An: nbusers@netbeans.org
Betreff: Re: ANT Compiler Settings with more than one project
Lamberty, Dieter-Bernd wrote:
> I have a strange problem with the ANT Integration in NB 3.4B3. I have 2 projects in Netbeans with ANT as Default Compiler and (of course) 2 different build scripts. I copied the Compiler in the Netbeans Options and rename them (TCG-Compiler in the first project and FSA-Compiler in the other). When I now switch the project the compiler is switched but the build script is still the same. Because of that I have to change this manually. Both projects have only one build script mounted within the filesystem so the build script from one project is not visible from the other.
Maybe you'd better give a precise example of what you did. File a bug
report if possible (ant/code). Check the Default Compiler in Java
Sources and confirm that it is the right one in each project. Also check
the Compiler property on a particular source file you tried to compile.
-Jesse
--
Jesse Glick <mailto:jesse.glick@sun.com> x22801
NetBeans, Open APIs <http://www.netbeans.org/>
# 3
Lamberty, Dieter-Bernd wrote:
> I will try to describe my problem more precise ...
I filed #25701 though I was not able to reproduce the exact problem you
describe.
-Jesse
--
Jesse Glick <mailto:jesse.glick@sun.com> x22801
NetBeans, Open APIs <http://www.netbeans.org/>