I've updated to the patched version of slice2java, which I thought would fix this issue, but it still happens sometimes and it's very annoying.
I have a central Eclipse project with all of my .ice files, and I set up my other projects with a special linked folder in the workspace pointing to the "slice" folder from the central project. I then point the slice2java builder at this slice file as the source of .ice files.
This usually works, but sometimes I get an "internal error" when running the builder. Looking at the output of the slice2java builder, it looks like instead of printing and XML list of .java files, it's instead printing this:
This naturally isn't parseable xml, so I then get the "content not allowed in prolog" error and my .java files don't get generated.slice2java: JavaUtil.cpp:379: std::string Slice::JavaGenerator::getPackagePrefix(const Slice::ContainedPtr&) const: Assertion `!file.empty()' failed.
The best solution for me would actually be being able to select a folder outside of the current project as the source of .ice files -- I've played a tiny bit with the plugin, but I don't know enough about Eclipse plugin development to make this happen. So it would be nice if using a linked folder worked reliably instead.
MEF

Reply With Quote

