Skip to main content

Posts

Showing posts from October, 2009

SCM Tool for Eclipse IDE Users on Mac OS

Recently i got Mac PC to work on, no doubt the Mac experience is fabulous and gives you the feel that hardware is not an issue anymore with speed, graphics, UI etc. But one thing (as an software developer) which was very annoying to me was very little or should i say no choice in terms of complete SCM tool (like Tortoise SVN in windows). I tried couple of tools like svnX, scplugin etc. but none of them is completely usable as far as i am concerned. The latest tool i tried is subclipse . Its a plug-in for Eclipse and gives most of the features like Tortoise SVN. Tool feels better because of integration with eclipse learning cycle is almost nil. You can get the plug-in from the following update site: http://subclipse.tigris.org/ update_1.6.x

How to use Eclipse Compiler

Some use-cases require compiling the java file on the fly, hence using a class file with reflection API to the introspection. The scenario might not be frequent and there are plenty of ways to do it, but if you decide to use eclipse compiler (which can be debatable). That's how you can use it: Map m = new HashMap(); m.put(CompilerOptions.OPTION_Source, System.getProperty("java.specification.version")); org.eclipse.jdt.internal.compiler.batch.Main main = new org.eclipse.jdt.internal.compiler.batch.Main(new PrintWriter(System.out), new PrintWriter(System.err), false, m , null); return main.compile(new String[] { "-classpath ", classPathStr, srcFile.getAbsolutePath()});