fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Compilation issue due to rev 5fe697927a5d on Windows7 #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update playn local repository to the last changes (seems the problem was 
introduced with revision 5fe697927a5d)
2. "mvn clean install"

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

Compilation should run fine as usual, but it fails at the compile phase of the 
"PlayN HTML 1.1-SNAPSHOT" module. Seems the issue is about symlinks not taken 
in account by Windows operating systems.

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3:testCompile 
(default-testCompile) on project playn-html: Compilation failure:
Compilation failure:
[ERROR] \workstation2\playn\html\tests\playn\html\GwtTestHtmlJson.java:[17,24] 
package playn.shared.json does not exist
[ERROR]
[ERROR] \workstation2\playn\html\tests\playn\html\GwtTestHtmlJson.java:[18,24] 
package playn.shared.json does not exist
[ERROR]
[ERROR] \workstation2\playn\html\tests\playn\html\GwtTestHtmlJson.java:[19,24] 
package playn.shared.json does not exist
[ERROR]
[ERROR] \workstation2\playn\html\tests\playn\html\GwtTestHtmlJson.java:[20,24] 
package playn.shared.json does not exist
[ERROR]
[ERROR] \workstation2\playn\html\tests\playn\html\GwtTestHtmlJson.java:[30,38] 
cannot find symbol
[ERROR] symbol  : class JsonImplArrayTest
[ERROR] location: class playn.html.GwtTestHtmlJson
[ERROR]
[ERROR] \workstation2\playn\html\tests\playn\html\GwtTestHtmlJson.java:[65,39] 
cannot find symbol
[ERROR] symbol  : class JsonImplObjectTest
[ERROR] location: class playn.html.GwtTestHtmlJson

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

Lastest PlayN repository version (rev 5fe697927a5d)
Windows 7 x64
Maven 3.0.3
Java JDK 1.6.0_26

Please provide any additional information below.

Original issue reported on code.google.com by mbarbe...@gmail.com on 14 Jan 2012 at 8:58

GoogleCodeExporter commented 9 years ago
Really? It's 2012 and Windows still can't do symlinks? Is there no end to my 
suffering?

Original comment by m...@samskivert.com on 14 Jan 2012 at 6:36

GoogleCodeExporter commented 9 years ago
Well, it exists on NTFS drives. You can create the symlink on Vista/7 by using 
the following command:

mklink json ..\..\..\..\core\tests\playn\shared\json

But seems it's not the same format as the Unix symlink (or is there something 
else wrong ??)
And symlinks don't exist for other drives formats such as FAT32... 

So I don't think using symlinks is the correct solution :-\

Original comment by mbarbe...@gmail.com on 14 Jan 2012 at 7:32

GoogleCodeExporter commented 9 years ago
on win7, the '/j' option works.

  cd to 'html\tests\playn\shared'
  mklink json  /j ..\..\..\..\core\tests\playn\shared\json

Original comment by kuo...@gmail.com on 9 Feb 2012 at 2:51

GoogleCodeExporter commented 9 years ago
Yeah, I discovered it few days before :-)
It's still a mess to have to delete the GIT revised Linux-symlink and re-create 
it to a Win7 compatible one...

And what about other Windows platform ? I know XP is old now, but it's still 
used all other the world. 

Original comment by mbarbe...@gmail.com on 9 Feb 2012 at 7:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
**WORKAROUND for those on XP**

I just ran some various eclipse plug-in updates and ran into this issue.  Since 
I'm still on Windows XP and I didn't feel like installing anything extra for 
sym links.  I just reverted the html/pom.xml to the version prior to 
r5fe697927a5d

This might be obvious for others, but documenting anyway.  The trunk code base 
still appears to work with the old pom, as of rb2ec1abc09b1

Original comment by kirkkoh...@gmail.com on 23 Jul 2012 at 9:46