Creating an Eclipse Command Line

I am using the below bash script to create an Eclipse workspace from the command line. I did not understand how to create a specific project in the workspace, though ... how would I do this?

#!/bin/sh echo Eclipse path: ${ECLIPSE} echo Eclipse workspace path: ${ECLIPSE_WORKSPACE} stdout=$("${ECLIPSE}/eclipsec" -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data "${ECLIPSE_WORKSPACE}" 2>/dev/null) echo ${stdout} if [[ ${stdout} == *error* ]] then exit 1 fi exit 0 
+4
source share
1 answer

It has been a long time since you asked this question, but I saw it in the "unanswered" section of StackOverflow.

I see how you create a Bash script on Linux, and here is how I understood it one fine day when setting up my eclipse.ini:

  • When starting Eclipse, open a terminal and run:

     ps aux | grep eclipse 
  • This will give you the result, for example:

     /usr/bin/java -XX:MaxPermSize=256m -jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /usr/lib/eclipse/eclipse -name Eclipse --launcher.library /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.dist/eclipse_1407.so -startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar --launcher.overrideVmargs ... and so on 
  • This is an accurate process and its arguments. You can verify this by copying and pasting it into the Terminal and running it yourself. Additional arguments are stored in eclipse.ini. For more information on setting up eclipse.ini for your script, you can check the following: What are the best JVM settings for Eclipse?

enter image description here

+4
source

All Articles