Community
Participate
Working Groups
With a custom ant builder, the Ant target selected for "Auto build" will not be triggered on file save, unless the section "After a clean" has an ant target. It can be reproduced easily: Create a new java project. Be sure to allow auto build. Add a text file to your new project Create a new ant build.xml file with a simple target. Create a custom ant builder, select your target in the auto build section, select no target at all in the "after a clean" section. Edit your text file, your ant target won't be triggered. It should have been trigerred. Then, modify the custom builder and select a target in the "after a clean" section. Edit your text file, your ant target will now be triggered. Eclipse Version: 3.3.0 Build id: I20070625-1500 This was working in 3.1 and 3.2.1
We experience this bug with manual builds as well. The build-command succeeds once or twice and then ceases to function. Coincidentially in the .project file the config-element for the ant-builder changes from <buildcommand ... <triggers>full,incremental,> ... to <buildcommand ... <triggers>incremental,> ... All we do is to open the project and issue "Build Project". As soon as the former state is restored, the build will work again. regards michael
*** Bug 230860 has been marked as a duplicate of this bug. ***
Created attachment 99040 [details] Exported Project containing trivial Java and ant build.xml Build ID: I20080409-1425 Steps To Reproduce: Create a project from the attached exported project archive. Disable the eclipse java project builder. Add an ant projectbuilder. Select the build.xml file. Set targets for the Compile and Clean. Attempt combinations of building and cleaning the project. If compiling works, alter the build.xml file, such as adding another target, and try again. More information: Some times Build is not available from the menu. It is disabled even after performing a clean. Clean seems to always work. If the associated target is set to the Compile target in the build.xml file, then Eclipse will Compile when told to Clean. This is with 3.4M6a If I start the Eclipse bundled ant from the command line with a command similar to the following, it works fine: java -cp "C:/Program Files/Java/jdk1.6.0_06/lib/tools.jar;C:/Eclipse/3.4M6a/plugins/org.apache.ant_1.7.0.v200803061910/lib/ant-launcher.jar" -Dant.home=C:/Eclipse/3.4M6a/plugins/org.apache.ant_1.7.0.v200803061910 org.apache.tools.ant.launch.Launcher
https://bugs.eclipse.org/bugs/attachment.cgi?id=99040 A project as test example.
This is a problem on 3.4.2 and 3.5 (latest I-build).
Verified the problem also exists in 3.3.2
*** This bug has been marked as a duplicate of bug 114563 ***