Reputation: 352
How can i import a perl project into eclipse workspace using commandline? I am using EPIC plugin along with padwalker for debugging
Upvotes: 2
Views: 1458
Reputation: 2094
You can do that using the following command (I'm using Eclipse Galileo in Mac OSX):
/Users/me/eclipse/Eclipse.app/Contents/MacOS/eclipse -nosplash \
-data /path/to/workspace \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-import /path/to/your/project
It requires 2 things:
.project
file in your project folder prior to importing itHere's an example EPIC .project
file, change my_project_name
so it matches your project's own:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>my_project_name</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.epic.perleditor.perlbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.epic.perleditor.perlnature</nature>
</natures>
</projectDescription>
Upvotes: 5