Eclipse命令行构建
我使用下面的bash脚本从命令行构建Eclipse工作区。我还没有弄明白如何在工作区内构建一个特定的项目……我该怎么做Eclipse命令行构建,eclipse,bash,command-line,build,Eclipse,Bash,Command Line,Build,我使用下面的bash脚本从命令行构建Eclipse工作区。我还没有弄明白如何在工作区内构建一个特定的项目……我该怎么做 #!/bin/sh echo Eclipse path: ${ECLIPSE} echo Eclipse workspace path: ${ECLIPSE_WORKSPACE} stdout=$("${ECLIPSE}/eclipsec" -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data "${ECL
#!/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
你已经很久没有问这个问题了,但我在StackOverflow的“未回答”部分看到了 我看到您在Linux中编写了一个Bash脚本,下面是有一天我在配置eclipse.ini时如何解决这个问题的:
ps aux | grep eclipse
/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