-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
OSX Yosemite Ant #32851
Comments
Hmm, i have installed Ant the good old way and it seems to me that the brew formula for ant is missing the |
It's installed the way it is (in libexec) because we don't want all of the jar files present linked into |
I don't understand... ant simply does not work then, at least in my case. How can you get it to work then? And could you maybe explain to me why they would be automatically linked into |
I'm not denying there is a problem (thought it does work for at least some use cases; several things in homebrew depend on it at build-time).
Yes. In |
Aha, thank you. I can understand that we don't want that. Oh well, i'm fine with going for the 'regular' .pkg installation for ant (i'm using it together with IntelliJ TeamCity, which AFAIK just needs to be able to run ant in your project folder), although it's an addiction to have as many stuff installed by homebrew and homebrew-cask, of course 👍 |
If it doesn't work, there's a bug. |
oops, too quick! |
On 10.9, I see this:
so it seems to be dereferencing the symlink correctly and looking in Can you gist your |
For me it also works on 10.10:
|
Ha, that's weird. It must have something to do with my environment then: |
I do run doctor quite regularly but i still needed to clean up some mess created by some scientific robot simulator package i downloaded and tried to compile, sorry for that :) |
What's the status on this? I presume if this is tagged user config it doesn't need adding to the 10.10 fail list? |
Correct, it does not appear to be a 10.10 issue. |
I can reproduce this if I set That may not be the exact problem here, but I think it is safe to assume this is an environment issue rather than a problem with the formula. |
So we shouldn't be setting |
I just ran into this problem. Solution was to just download Ant directly from Apache and copy is to /usr/local |
I was having the same issue. I had set my |
Hi,
I am currently running OSX Yosemite beta 4, and this is what my ant installation adventure looks like:
which ant
returns nothing
ant
-bash: ant: command not found
brew install ant
/usr/local/Cellar/ant/1.9.4: 1597 files, 39M, built in 17 seconds
which ant
/usr/local/bin/ant [ o.k., great! ]
ant --execdebug
exec "/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/bin/java" -classpath "/usr/local/Cellar/ant/1.9.4/lib/ant-launcher.jar" -Dant.home="/usr/local/Cellar/ant/1.9.4" -Dant.library.dir="/usr/local/Cellar/ant/1.9.4/lib" org.apache.tools.ant.launch.Launcher -cp ""
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher [ uhh wut ? ]
cd /usr/local/Cellar/ant/1.9.4/ *TAB*
INSTALL_RECEIPT.json
bin/
libexec/
[ so, no /lib folder ]
But, there is a /lib folder in /libexec:
cd /usr/local/Cellar/ant/1.9.4/libexec/lib/
Is this something OSX Yosemite specific? or am i doing something wrong? I never had similar problems when i was on OSX Mavericks :(
[update]
if i execute the following:
"/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/bin/java" -classpath "/usr/local/Cellar/ant/1.9.4/libexec/lib/ant-launcher.jar" -Dant.home="/usr/local/Cellar/ant/1.9.4" -Dant.library.dir="/usr/local/Cellar/ant/1.9.4/lib" org.apache.tools.ant.launch.Launcher -cp ""
then the output becomes:
Buildfile: build.xml does not exist!
Build failed
Which makes sense, because in my root (
~/
) i don't have any buildfiles. Halp ?The text was updated successfully, but these errors were encountered: