Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Autotools template continues creating a project after throwing ProcessFailureException

Hello,

Does anyone know if this is the indented behaviour and there is another way to approach this or is it a bug ?

Thanks,
Ioana
________________________________________
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of Grigoropol, IoanaX [ioanax.grigoropol@xxxxxxxxx]
Sent: Wednesday, March 27, 2013 5:25 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Autotools template continues creating a project after throwing ProcessFailureException

Hello,

I am trying to create a C project using a custom Autotools Templates.
When validating the template, if something goes wrong, we throw a ProcessFailureException.
This results in showing one error dialog for this error, and another one coming from the  AutotoolsBuildWizardHandler's createProject method.
As it seems, even if we throw an error, the createProject method is not short-circuited, but continues and rans into a NullPointerException further down.
If we switch to another type of exception, such as OperationCanceledException, the second problem does not occur anymore since it is treated in the workspace.
The downside to the second approach is that we cannot configure the message shown in the error dialog, as with ProcessFailureException.
Is there any approach that we can use to both configure the message and short-circuit the creating of the project when processing a template ?

Thanks,
Ioana Grigoropol
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top