Re: WOCompile cannot be found.
Re: WOCompile cannot be found.
- Subject: Re: WOCompile cannot be found.
- From: Douglas Andrews <email@hidden>
- Date: Thu, 19 Nov 2015 12:43:02 +0000
- Thread-topic: WOCompile cannot be found.
The problem was resolved by not using the -lib argument at all.
I added the -classpath variable instead and that seemed to work.
In the <target name="compile" depends="init.properties"> portion, my tasked now looks like this:
<taskdef name="wocompile" classpath="/home/ec2-user/org.objectstyle.wolips.woproject.ant_3.4.5830/lib/woproject.jar" classname="org.objectstyle.woproject.ant.WOCompile" />
You will probably have to do something similar in the <target name="build.woapp" depends="compile"> portion as well so that it can find woapplication.
<taskdef name="woapplication" classpath="/home/ec2-user/org.objectstyle.wolips.woproject.ant_3.4.5830/lib/woproject.jar" classname="org.objectstyle.woproject.ant.WOApplication"/>
On Nov 19, 2015, at 1:15 AM, Paul Hoadley wrote:
> Hi Douglas,
>
> On 13 Nov 2015, at 6:27 am, Douglas Andrews <email@hidden> wrote:
>
>> I am having trouble compiling an app via command line on an Amazon Linux box.
>> I've see this problem before on the list, but cannot seem to resolve it.
>> I keep getting the following build error:
>> taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
>>
>> How can I make it find WOCompile?
>
> Did you sort this out? As luck would have it, I ran into this precise problem today trying to move a Jenkins project to a new build server: latest Amazon Linux, Ant 1.8.3, OpenJDK 1.8.0. This seems very peculiar, as it’s just a project that I’m moving from a working state elsewhere (albeit from an older version of Amazon Linux and OpenJDK 1.6). I copied the known-good woproject.jar from the existing build server, so that’s not the issue. I just cannot get ‘-lib’ to make Ant find the WOCompile class.
>
> Let me know if you made any progress.
>
>
> --
> Paul Hoadley
> http://logicsquad.net/
>
>
>
_______________________________________________
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