I wanted to build java projects using eclipse command line tool. I have been following this answer. However, it doesn't talk about how to add projects to the newly created workspace via command line.
P.S. I am working on headless Linux box and hence I can't launch eclipse UI and add projects to the workspace from there.