3

I have defined a custom builder for an Eclipse project (Project -> Properties -> Builders -> New ...)

The task that the Builder does is not important, since it is working correctly.

The problem is then: what happens if, for example due to the configuration of the developer, such Builder fails? An error is shown in the console, but the project is not marked as "failed". I would like the project to be marked as failed, since the developers are used to watch for red crosses in the Package Explorer and not to proceed if they see it.

Can I somehow configure the builder to do so? Any idea how? Any workaround?

Thanks,

1
  • Not sure exactly but a couple ideas: 1. replace your regular java builder with a javac task and then use the 'Create problem markers from "javac" results' checkbox in Preferences->Ant (General) 2. detect errors in your ant script and then deliberately write some invalid code to a specific java file/class file to create the red crosses
    – vazor
    May 7, 2015 at 22:25

1 Answer 1

0

The Laid Problem Marker plug-in is a tool for creating problem markers from builder output.

The plug-in adds a Problem Markers tab to the build configuration dialog for Program builders and Ant builders.

Screenshot:

enter image description here

A custom build output parser can be created either with a regex or by implementing a parser in Java. The parser is passed the console output from the builder, and the result from the parser is used to put problem markers on project resources that appear in editors and the Problems view.

See to project description for details.

The plug-in can be installed using the Install New Software GUI from the project update site:

https://bitbucket.org/lii/laid_language_tools/raw/master/se.lidestrom.laid.update_site/

Disclaimer: I am the project author.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.