我使用下面的bash脚本从命令行构建Eclipse工作区。我还没有想好如何在工作区though...how中构建一个特定的项目,我会这样做吗?
#!/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发布于 2012-01-26 12:32:22
你问这个问题已经很久了,但我在StackOverflow的“未回答”部分看到了这个问题。
我看到你用Linux做了一个Bash脚本,下面是我有一天在配置我的eclipse.ini时是如何弄明白这一点的:
ps aux | grep eclipse
/usr/bin/ /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.dist/eclipse_1407.so -XX:MaxPermSize=256m -jar Eclipse -os linux -ws gtk -arch x86_64 -showsplash -launcher /usr/lib/eclipse/eclipse -name --/usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.dist/eclipse_1407.so-name -startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar --启动.overrideVmargs ...在

https://stackoverflow.com/questions/7835871
复制相似问题