WOLips and P4WSAD

Incremental Builder fails on P4WSAD

P4WSAD keeps all files in read only mode unless you check it out. Eclipse für Mac sets the uchg flag (which makes a file immutable) on copying read only files. So the incremental builder works fine only once - updating changes will fail (there is a workaroung in WOLips for this, but it slows down your build process and this workaround fails when you restart eclipse).

The best solution is to recompile the native library liblocalfile_1_0_0.jnilib. Here is what to do:

  • Edit eclipse/plugins/org.eclipse.core.filesystem_1.1.0.v20070606/natives/macosx/localfile.c and set "#define USE_IMMUTABLE_FLAG 0"
  • recompile the libraray using "make"
  • copy the new library liblocalfile_1_0_0.jnilib to eclipse/configuration/org.eclipse.osgi/bundles/33/1/.cp/os/macosx
  • cleanup all build-directories
  • restart eclipse

After that eclipse will no longer set the uchg on copying read only files.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.