Discussion:
[Middlegen-user] MiddlegenTask not found
GOLDMAN Jacques
2003-02-13 09:38:07 UTC
Permalink
hello,

I've installed the middlegen-2.0-b1. I wen through the getting started doc
and everything was working fine with mysql db that i'm using until I ran in
a shell :
------------------ SHELL --------------------------------
D:\middlegen-2.0-b1\samples>D:\jakarta-ant-1.5.1\bin\ant

Buildfile: build.xml

check-driver-present:

panic-if-driver-not-present:

middlegen:

BUILD FAILED

D:\middlegen-2.0-b1\samples\build.xml:125: taskdef class
middlegen.MiddlegenTask cannot be found

Total time: 0 seconds
D:\middlegen-2.0-b1\samples>

-----------------------------------------------------------

Of course I checked the classpathref etc and put the middlegen.jar into
winzip to see if the class exist etc...
I tried with some other class of the same jar. The class was found but of
course the build failed...

But nothing works.....maybe the middlegen.jar in the distribution is
corrupted ??

maybe do you have a hint. Something I have overlooked ? no more ideas...

Thanks in advance,

Kind Regards,
Rod Macpherson
2003-02-13 10:56:04 UTC
Permalink
Several choices. Here's two: a) drop middlegen jars right in [ant]/lib or b) use a taskdef to map a task name to the middlegen class and its buddies.

<path id="classpath">
<fileset dir="/middlegen">
<include name="*.jar"/>
</fileset>
... blah ...
</path>

<taskdef name="middlegen" classname="middlegen.MiddlegenTask" classpathref="classpath"/>

<middlegen ... > ... blah ... </middlegen>


-----Original Message-----
From: GOLDMAN Jacques [mailto:***@oami.eu.int]
Sent: Thu 2/13/2003 3:37 AM
To: 'middlegen-***@lists.sourceforge.net'
Cc:
Subject: [Middlegen-user] MiddlegenTask not found




hello,

I've installed the middlegen-2.0-b1. I wen through the getting started doc
and everything was working fine with mysql db that i'm using until I ran in
a shell :
------------------ SHELL --------------------------------
D:\middlegen-2.0-b1\samples>D:\jakarta-ant-1.5.1\bin\ant

Buildfile: build.xml

check-driver-present:

panic-if-driver-not-present:

middlegen:

BUILD FAILED

D:\middlegen-2.0-b1\samples\build.xml:125: taskdef class
middlegen.MiddlegenTask cannot be found

Total time: 0 seconds
D:\middlegen-2.0-b1\samples>

-----------------------------------------------------------

Of course I checked the classpathref etc and put the middlegen.jar into
winzip to see if the class exist etc...
I tried with some other class of the same jar. The class was found but of
course the build failed...

But nothing works.....maybe the middlegen.jar in the distribution is
corrupted ??

maybe do you have a hint. Something I have overlooked ? no more ideas...

Thanks in advance,

Kind Regards,




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Loading...