Eclipse的命令行构建 [英] Eclipse command line build

查看:280
本文介绍了Eclipse的命令行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的bash脚本用于构建命令行Eclipse工作空间。我还没有想出如何建立工作空间内的具体项目,但...我会怎么做呢?

 #!/ bin / sh的
Eclipse的回声路径:$ {} ECLIPSE
回声Eclipse工作空间路径:$ {} ECLIPSE_WORKSPACE
标准输出= $($ {} ECLIPSE / eclipsec-nosplash -application org.eclipse.jdt.apt.core.aptBuild -data$ {} ECLIPSE_WORKSPACE2 - ;的/ dev / null的)
回声$ {}标准输出
如果[[$ {}标准输出* ==错误*]
然后
    1号出口
科幻
退出0


解决方案

这是一个很长的时间,因为你已经问过这个问题,但我看到了它的StackOverflow的解答部分。

我看到你在做一个Linux的Bash脚本,这里是在配置的eclipse.ini我我怎么想通了这一点第一天:


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

     的ps aux | grep的日食


  2. 这会给你的输出,例如:

     的/ usr / bin中/ JAVA -XX:MaxPermSize参数=256米-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目录/日食/月食-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 ...等


  3. 这是确切的过程,它的参数。您可以通过复制并在终端粘贴和你自己运行它进行测试。额外的参数都存储在的eclipse.ini。
    有关配置的eclipse.ini为您的脚本的详细信息,您可以查看以下内容:
    什么是Eclipse的?


I use the below bash script for building an Eclipse workspace from command line. I haven't figured out how to build a specific project within the workspace though...how would I do that?

#!/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

解决方案

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

I see your making a Bash script in Linux and here is how I figured this out one day while configuring my eclipse.ini:

  1. While running Eclipse, open a Terminal and run:

    ps aux | grep eclipse
    

  2. This will give you an output such as:

    /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. That is the exact process and its arguments. You can test this by copying and pasting it in the Terminal and running it yourself. The extra arguments are stored in the eclipse.ini. For more information on configuring the eclipse.ini for your script you can check out the following: What are the best JVM settings for Eclipse?

这篇关于Eclipse的命令行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆