【问题标题】:Eclipse command line buildEclipse 命令行构建
【发布时间】:2014-03-11 01:50:24
【问题描述】:

我使用以下 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 "${ECLIPSE_WORKSPACE}" 2>/dev/null)
echo ${stdout}
if [[ ${stdout} == *error* ]]
then
    exit 1
fi
exit 0

【问题讨论】:

    标签: eclipse bash command-line build


    【解决方案1】:

    您已经很久没有提出这个问题了,但我在 StackOverflow 的“未回答”部分看到了它。

    我看到你在 Linux 中制作了一个 Bash 脚本,这就是我有一天在配置我的 eclipse.ini 时如何解决这个问题的:

    1. 在运行 Eclipse 时,打开终端并运行:

      ps aux | grep eclipse
      
    2. 这将为您提供如下输出:

      /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
      
    3. 这就是确切的过程及其参数。您可以通过将其复制并粘贴到终端并自己运行来测试它。额外的参数存储在 eclipse.ini 中。 有关为您的脚本配置 eclipse.ini 的更多信息,您可以查看以下内容: What are the best JVM settings for Eclipse?

    【讨论】:

      猜你喜欢
      • 2010-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-29
      相关资源
      最近更新 更多