saiddfhi / gwt-maven

Automatically exported from code.google.com/p/gwt-maven
0 stars 0 forks source link

Incorrect gwt dev platform specific jar used when plugin is auto configured on SunOS #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is this Maven 1 or Maven 2? Maven 2

What steps will reproduce the problem?
1. Set up gwt plugin to auto configure.
2. Run compile goal on a Sun Solaris OS machine

What is the expected output? What do you see instead?

Generated compile.sh should use gwt-dev-1.5.3-linux.jar. Instead it uses 
the windows version of the jar. 

What version of the product are you using? On what operating system?

GWT plugin:
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<version>2.0-beta26</version>

SunOS [removed name of machine] 5.10 Generic_127112-10 i86pc i386 i86pc

Please provide any additional information below:

In the java system properties
os.name = SunOS

ScriptWriterFactory defaults to using ScriptWriterUnix (i.e. nix) if not 
windows, however, ArtifactNameUtil.getPlatformName defaults to windows. 

ArtifactNameUtil.getPlatformName is the cause of the bug when using auto-
configure. If gwt home were specified this problem doesn't occur.

Workaround:

Add -Dos.name=linux when running maven.

Original issue reported on code.google.com by bee...@gmail.com on 17 Dec 2008 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by charlie....@gmail.com on 4 Jan 2009 at 4:23

GoogleCodeExporter commented 9 years ago

Original comment by charlie....@gmail.com on 24 Jan 2009 at 11:21

GoogleCodeExporter commented 9 years ago
I will fix so that things are consistent, i.e. default to nix in both places. 
Even so
though, I am not sure things will work on Solaris.  Is there a GWT version for 
Solaris? 

Original comment by charlie....@gmail.com on 26 Jan 2009 at 11:03

GoogleCodeExporter commented 9 years ago
I'm using the linux binary. Runs fine on SunOS 5.10 Generic_137112-06 i86pc 
i386 
i86pc.

Original comment by bee...@gmail.com on 26 Jan 2009 at 2:18

GoogleCodeExporter commented 9 years ago
Ok, I should have stated that more clearly, does hosted mode work on Solaris?  
It
might I suspect, if you have the correct compat libs. Either way I will patch
GWT-Maven, I am just curious. 

Original comment by charlie....@gmail.com on 27 Jan 2009 at 12:23

GoogleCodeExporter commented 9 years ago
The compile mojo should work on solaris, but no, GWTTest[Case|Suite] is going 
to bomb. 

Correcting this for  rev 965

Original comment by keber...@gmail.com on 22 Mar 2009 at 8:57

GoogleCodeExporter commented 9 years ago
In 2.0-RC1. 

Original comment by charlie....@gmail.com on 3 Apr 2009 at 1:16