Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Cancel Tycho Build if compile warning is present

Thanks Jan for the info.

On Thu, Mar 31, 2016 at 4:57 PM, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
> you could change the compiler warnings to errors either using the jdt .prefs file or one of the various commandline options from
>
> http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_batch_compiler.htm
>
>
> AFAIK there is no global "failOnWarning" switch.
>
> Regards
> Jan
>
>
>
>
> On 31/03/16 16:43, "tycho-user-bounces@xxxxxxxxxxx on behalf of Lars Vogel" <tycho-user-bounces@xxxxxxxxxxx on behalf of lars.vogel@xxxxxxxxxxx> wrote:
>
>>Hi,
>>
>>can I cancel the Tycho build if one of the plug-ins has a compiler
>>warning? We want to use that for our Gerrit validation builds to
>>ensure that plug-ins without any compiler warnings stay "clean" with
>>the new contributions.
>>
>>Similar to http://stackoverflow.com/questions/9192613/how-do-i-get-a-java-maven-build-to-fail-for-compiler-warnings
>>I tried the following:
>>
>><build>
>>  <plugins>
>>    <plugin>
>>        <artifactId>tycho-compiler-plugin</artifactId>
>>        <version>0.24.0</version>
>>        <configuration>
>>            <showWarnings>true</showWarnings>
>>            <compilerArgs>
>>                <arg>-Xlint:all</arg>
>>                <arg>-Werror</arg>
>>            </compilerArgs>
>>        </configuration>
>>    </plugin>
>> </plugins>
>></build>
>>
>>Also using the solution described by the SO answer did not work:
>>
>> <plugin>
>>        <artifactId>maven-compiler-plugin</artifactId>
>>        <version>3.3</version>
>>        <configuration>
>>            <source>1.8</source>
>>            <target>1.8</target>
>>            <showWarnings>true</showWarnings>
>>            <compilerArgs>
>>                <arg>-Xlint:all</arg>
>>                <arg>-Werror</arg>
>>            </compilerArgs>
>>        </configuration>
>>    </plugin>
>>
>>Best regards, Lars
>>
>>--
>>Eclipse Platform UI and e4 project co-lead
>>CEO vogella GmbH
>>
>>Haindaalwisch 17a, 22395 Hamburg
>>Amtsgericht Hamburg: HRB 127058
>>Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
>>USt-IdNr.: DE284122352
>>Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com
>>_______________________________________________
>>tycho-user mailing list
>>tycho-user@xxxxxxxxxxx
>>To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>>https://dev.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user



-- 
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top