标签: ant

如何在 OS X Mavericks 上安装 ant?

升级到 OS X 10.9 Mavericks 后,ant 不再在我的道路上。

[126] 11:23:26 rkarl-mba-4:~/mobile-baselayer > ant
zsh: permission denied: ant
[126] 11:23:50 rkarl-mba-4:~/mobile-baselayer > which ant
ant not found
Run Code Online (Sandbox Code Playgroud)

我尝试通过自制软件安装

[126] 11:23:09 rkarl-mba-4:~/mobile-baselayer > brew install ant
Error: No available formula for ant
Run Code Online (Sandbox Code Playgroud)

奇怪的是自制软件没有一个公式......

谷歌搜索后,我找到了这篇文章,其中建议使用用户自定义的 brew 公式。

[1] 11:23:56 rkarl-mba-4:~/mobile-baselayer > brew install https://raw.github.com/adamv/homebrew-alt/master/duplicates/ant.rb

curl: (22) The requested URL returned error: 404 Not Found
Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.9.4\ (Ruby\ 1.8.7-358;\ Mac\ OS\ X\ 10.9) https://raw.github.com/adamv/homebrew-alt/master/duplicates/ant.rb -o /Library/Caches/Homebrew/Formula/ant.rb
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激!

homebrew ant osx-mavericks macos

86
推荐指数
3
解决办法
11万
查看次数

如何安装蚂蚁和常春藤?

我已经安装了 ant...并且我已经安装了 ivy(都来自突触),但是 ant 找不到 ivy!

当我运行 ant 来构建'october-chess-engine' 时,我得到以下信息:

BUILD FAILED
/home/zeigfreid/repos/october-chess-engine/build.xml:32: Problem: failed to create task or type antlib:org.apache.ivy.ant:resolve
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/home/zeigfreid/.ant/lib …
Run Code Online (Sandbox Code Playgroud)

linux installation ant

11
推荐指数
2
解决办法
2万
查看次数

ant &lt;scp&gt; 支持 ssh-agent

我有一个使用 scp 的现有 build.properties 文件,如下所示:

<scp todir="${linux.user}@${linux.site}:@{todir}" keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}" trust="yes" verbose="@{verbose}">
   <filestocopy />
</scp>
Run Code Online (Sandbox Code Playgroud)

该命令的文档在这里:https : //ant.apache.org/manual/Tasks/scp.html

我想转向 ssh-agent 并删除密码。一些使用它的人将他们的 ssh 配置为不使用密码并将密码留空。

一种替代方法是使用http://www.jcraft.com/jsch-agent-proxy/,但我发现这个 1.5 年前的问题表示尚不支持:

/sf/ask/1377901661/

这在许多 ant 脚本中使用,所以我需要一个计划,允许我使用 ssh-agent,同时仍然允许其他人继续使用他们的方法。

我在 Windows 7 上尝试将文件 scp 到 Linux。我有一个兼容 Pageant 的 ssh-agent:KeePass2/KeeAgent。

ssh ssh-agent ant

5
推荐指数
1
解决办法
1005
查看次数

标签 统计

ant ×3

homebrew ×1

installation ×1

linux ×1

macos ×1

osx-mavericks ×1

ssh ×1

ssh-agent ×1