Note that there are some explanatory texts on larger screens.

plurals
  1. POProgrammatically generate an Eclipse project
    primarykey
    data
    text
    <p>I use eclipse to work on an application which was originally created independently of eclipse. As such, the application's directory structure is decidedly not eclipse-friendly.</p> <p>I want to programmatically generate a project for the application. The <code>.project</code> and <code>.classpath</code> files are easy enough to figure out, and I've learned that projects are stored in the workspace under <code>&lt;workspace&gt;/.metadata/.plugins/org.eclipse.core.resources/.projects</code></p> <p>Unfortunately, some of the files under here (particularly <code>.location</code>) seem to be encoded in some kind of binary format. On a hunch I tried to deserialize it using <code>ObjectInputStream</code> - no dice. So it doesn't appear to be a serialized java object.</p> <p>My question is: is there a way to generate these files automatically?</p> <p>For the curious, the error I get trying to deserialize the <code>.location</code> file is the following:</p> <p><code>java.io.StreamCorruptedException: java.io.StreamCorruptedException: invalid stream header: 40B18B81</code></p> <p><strong>Update:</strong> My goal here is to be able to replace the New Java Project wizard with a command-line script or program. The reason is the application in question is actually a very large J2EE/weblogic application, which I like to break down into a largish (nearly 20) collection of subprojects. Complicating matters, we use clearcase for SCM and create a new branch for every release. This means I need to recreate these projects for every development view (branch) I create. This happens often enough to automate.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload