Hi Lennart,

AFAIK the -d option does not work as expected with the reference enhancer.
Here is how I'm doing enhancement with an ant task and fully qualified
paths:
- <!--  ================================================================== 
  --> 
- <!--  jdo enhancer - enhancing Product class

  --> 
- <!--  ================================================================== 
  --> 
- <target name="enhance-jdori">
  <copy file="${src.dir}/jdori/org/apache/ojb/tutorial5/Product.jdo"
todir="target/classes/org/apache/ojb/tutorial5" /> 
  <copy file="${src.dir}/jdori/org/apache/ojb/tutorial5/jdo.dtd"
todir="target/classes/org/apache/ojb/tutorial5" /> 
+ <java fork="yes" failonerror="yes" classname="com.sun.jdori.enhancer.Main"
classpathref="compilation-classpath">
  <arg line="-v -f -d target/classes
target/classes/org/apache/ojb/tutorial5/Product.jdo
target/classes/org/apache/ojb/tutorial5/Product.class" /> 
  </java>
  </target>

cheers,
Thomas

> -----Original Message-----
> From: Lennart Benoot [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 11:34 AM
> To: [EMAIL PROTECTED]
> Subject: JDO Enhancer not changing class file
> 
> 
> Hi All,
> 
> with small steps, i'm making progress in using JDO with OJB. 
> After getting 
> an exception :
> --> javax.jdo.JDOUserException: Class given to getExtent does 
> not implement 
> javax.jdo.spi.PersistenceCapable
> I came to the conclusion that i should enhance my class bytcode
> 
> When i do this on my class with the following command line:
> %JAVA_HOME%\bin\java.exe -cp 
> c:\java\jdori\src\jdo.jar;c:\java\jdori\src\jdori.jar 
> com.sun.jdori.enhancer.Main --verbose --force -s . -d . %1 %2
> 
> the last logging line is:
> JDO ENHANCER: Enhancer: classfile not changed.
> 
> and indeed, the file is not changed. Nothing info on google found.
> 
> Anyone having a suggestion?
> 
> Lennart
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to