Best Groovy/Java versions for GPars build?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Best Groovy/Java versions for GPars build?

Alan Thompson
Hi - Just forked GPars and tried to build on Cygwin.  Got a bunch of errors and am wondering if my Groovy/Java versions are to blame:

~/github/gpars > gradlew
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
:compileJava UP-TO-DATE
:compileGroovywarning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\cygwin\home\alathompson\github\gpars\src\main\groovy\groovyx\gpars\util\AsyncFunASTTransformation.java:50: error: unmappable character for encoding Cp1252
 * @author Dinko Srko▒?
                      ^
C:\cygwin\home\alathompson\github\gpars\src\main\groovy\groovyx\gpars\extra166y\CustomConcurrentHashMap.java:9: warning: Unsafe is internal proprietary API and may be removed in a future release
import sun.misc.Unsafe;
               ^
......etc.   I'm currently configured as:

~/github/gpars > groovy --version
Groovy Version: 2.1.0-beta-1 JVM: 1.7.0_09 Vendor: Oracle Corporation OS: Windows 7

What is the best config for building GPars?
Thanks,
Alan Thompson

On Tue, Nov 27, 2012 at 11:41 PM, Václav Pech <[hidden email]> wrote:
> Hi Alan,
>
> thank you for the offer. The on-line documentation is managed by the
> codehaus wiki, so all you need to edit the pages is a codehaus account, I
> guess.
> The user guide resides in the github repo together with the sources, so the
> same workflow applies as for code contributions
> (http://gpars.codehaus.org/Developer+Zone).
> Please let me know if something doesn;t work as expected. Good luck!
>
> Best regards,
>
> Vaclav
>
>
>
> On Tue, Nov 27, 2012 at 6:35 PM, Alan Thompson <[hidden email]>
> wrote:
>>
>> Hi - I am a new user of GPars and wanted to contribute some typo fixes in
>> the documentation. Is this kept in a wiki, or is another way best?
>> Thanks,
>> Alan Thompson
>
>
>
>
> --
> E-mail: [hidden email]
> Blog: http://www.jroller.com/vaclav
> Linkedin page: http://www.linkedin.com/in/vaclavpech

Reply | Threaded
Open this post in threaded view
|

Re: Best Groovy/Java versions for GPars build?

Russel Winder-3
On Tue, 2013-01-08 at 10:40 -0800, Alan Thompson wrote:
[…]
> C:\cygwin\home\alathompson\github\gpars\src\main\groovy\groovyx\gpars\util\AsyncFunASTTransformation.java:50:
> error: unmappable character for encoding Cp1252
>  * @author Dinko Srko▒?
>                       ^

This is because the source is UTF-8 encoded and your environment sets a
different encoding.  In the itnerim can you set you environment to
UTF-8.  Also add a JIRA issue to the GPars issue set to get the build to
forcibly set the encoding.

> C:\cygwin\home\alathompson\github\gpars\src\main\groovy\groovyx\gpars\extra166y\CustomConcurrentHashMap.java:9:
> warning: Unsafe is internal proprietary API and may be removed in a future
> release
> import sun.misc.Unsafe;
>                ^

This one is here to stay, exactly because Unsafe is unsafe. But it is
only a warning so won't stop the build. If you need a warning free build
we will have to do some hacking around.

--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Best Groovy/Java versions for GPars build?

Alan Thompson
On Tue, Jan 8, 2013 at 11:01 AM, Russel Winder <[hidden email]> wrote:

> On Tue, 2013-01-08 at 10:40 -0800, Alan Thompson wrote:
> […]
>> C:\cygwin\home\alathompson\github\gpars\src\main\groovy\groovyx\gpars\util\AsyncFunASTTransformation.java:50:
>> error: unmappable character for encoding Cp1252
>>  * @author Dinko Srko▒?
>>                       ^
>
> This is because the source is UTF-8 encoded and your environment sets a
> different encoding.  In the itnerim can you set you environment to
> UTF-8.  Also add a JIRA issue to the GPars issue set to get the build to
> forcibly set the encoding.
>
I've never had to change the encoding....How is that done?
Alan

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Best Groovy/Java versions for GPars build?

Russel Winder-3
On Tue, 2013-01-08 at 11:06 -0800, Alan Thompson wrote:
[…]
> I've never had to change the encoding....How is that done?
> Alan

Given that you are on Windows, I'm afraid I haven't a clue.

I think you probably need to hassle me to fix this in the mainline
master so we have a platform agnostic solution.

--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

signature.asc (205 bytes) Download Attachment