Re: ant build not working - again after update (Lion this time)
Re: ant build not working - again after update (Lion this time)
- Subject: Re: ant build not working - again after update (Lion this time)
- From: Alexander Spohr <email@hidden>
- Date: Thu, 21 Jul 2011 16:37:26 +0200
Bogdan, that did the tick (under Lion).
Thanx a lot!
atze
Am 21.07.2011 um 16:13 schrieb Bogdan Zlatanov:
> Hi Alexander,
>
> Link or copy the woproject.jar to your ant home ( /usr/share/ant/lib on Snow Leopard ).
>
> HTH
>
> On Thu, Jul 21, 2011 at 5:01 PM, Alexander Spohr <email@hidden> wrote:
> Hi people,
>
> I feel stupid. After the upgrade to Lion the start of Eclipse told me to download Java first.
> I did that and Eclipse works as expected.
>
> Now I tried to run ant from the cli. And again it fails as it did when I last updated Java under Snow Leopard. The last time the problem was that woproject.jar was placed at /Library/Java/Extensions. Removing it from that place helped to make ant work again.
>
> This time there its no woproject.jar at /Library/Java/Extensions. Only in
> /Applications/Developer/eclipse/plugins/org.objectstyle.wolips.woproject.ant_3.6.70244/lib/
> and
> /Applications/Developer/eclipse/plugins/org.objectstyle.wolips.woproject.ant_3.6.70245/lib/
>
> But the build fails again with
> taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
>
> I am at loss what I am doing wrong. Do I have to tell ant where woproject.jar is? I don’t think so as it worked fine before the upgrade. What am I doing wrong?
> My ant is /usr/share/ant/java/ant-1.8.2
>
> Here is the verbose output:
>
> MBP17Atze:XYFoundation atze$ ant -verbose
> Apache Ant(TM) version 1.8.2 compiled on June 3 2011
> Trying the default build file: build.xml
> Buildfile: /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml
> Detected Java version: 1.6 in: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Detected OS: Mac OS X
> parsing buildfile /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml with URI = file:/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml
> Project base dir set to: /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation
> Build sequence for target(s) `build' is [init.properties, init.build, compile, build.woframework, javaclient, package, build]
> Complete build sequence is [init.properties, init.build, compile, build.woframework, javaclient, package, build, init.install, install, clean, ]
>
> init.properties:
> parsing buildfile jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
> [property] Loading /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.properties
> [property] Loading /Users/atze/Library/Application Support/WOLips/wolips.properties
> Override ignored for property "wolips.properties"
>
> init.build:
>
> compile:
>
> BUILD FAILED
> /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml:87: taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
> using the classloader AntClassLoader[]
> at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:622)
> at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:390)
> at org.apache.tools.ant.Target.performTasks(Target.java:411)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.Main.runBuild(Main.java:809)
> at org.apache.tools.ant.Main.startAnt(Main.java:217)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
> Caused by: java.lang.ClassNotFoundException: org.objectstyle.woproject.ant.WOCompile
> at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
> at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
> at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:594)
> ... 18 more
>
> Total time: 0 seconds
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden