Im Using Eclipse 3.2 and tried out your Person example
using the build.xml and got the following console output:
Buildfile: E:\eclicpse_ws\test_ocl\build.xml
OclAntTask:
[delete] Deleting directory
E:\eclicpse_ws\test_ocl\src.generated
[mkdir] Created dir:
E:\eclicpse_ws\test_ocl\src.generated
[oclcompile] jar:
'src.zip'->E:\programme\Java\jdk1.5.0_08\src.zip
[oclcompile] If you wish to report a Bug in ocl4java,
PLEASE do so at
'https://sourceforge.net/tracker/?group_id=145909&atid=763439'
! We need your bug-reports to fix them!
[oclcompile] java.lang.NullPointerException
[oclcompile] at
org.ocl4java.jdt.JDTSourceIntrospector.getFullyQualifiedTypeName(JDTSourceIntrospector.java:1652)
[oclcompile] at
org.ocl4java.ocl.JDTModelFacade.JDTFacade.getClassAny(JDTFacade.java:637)
[oclcompile] at
org.ocl4java.ocl.OCLCodeGenerator.initModelFacadeForType(OCLCodeGenerator.java:1107)
[oclcompile] at
org.ocl4java.ocl.OCLCodeGenerator.parseType(OCLCodeGenerator.java:364)
[oclcompile] at
org.ocl4java.ocl.OCLCodeGenerator.parseSourceToCompilationUnit(OCLCodeGenerator.java:313)
[oclcompile] at
org.ocl4java.ocl.OCLCodeGenerator.generateForSource(OCLCodeGenerator.java:246)
[oclcompile] at
org.ocl4java.ocl.OCLCodeGeneratorAntTask.execute(OCLCodeGeneratorAntTask.java:260)
[oclcompile] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[oclcompile] at
org.apache.tools.ant.Task.perform(Task.java:364)
[oclcompile] at
org.apache.tools.ant.Target.execute(Target.java:341)
[oclcompile] at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[oclcompile] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[oclcompile] at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[oclcompile] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[oclcompile] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[oclcompile] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[oclcompile] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[oclcompile] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
compile:
[echo] E:\programme\Java\jdk1.5.0_08\jre
[delete] Deleting directory
E:\eclicpse_ws\test_ocl\classes.generated
[mkdir] Created dir:
E:\eclicpse_ws\test_ocl\classes.generated
BUILD SUCCESSFUL
Total time: 7 seconds
simple example