I just started working on a project (framework) where I would like to use
the wogen task. However, I cannot get it to work.
Eclipse 3M8, WOLips 1.1.0.25, Win XP Pro
I added a target to my build.xml file (I realize my directory setup is a
bit different, but I have to maintain compatibility with legacy project
here):
<target name="generate.java">
<wogen model="GeneratedEO.subproj/PTS.eomodeld" destDir=
"GeneratedEO.subproj"/>
<wogen model="GeneratedEO.subproj/PTS.eomodeld" destDir=
"CustomEO.subproj"/>
<delete verbose="true">
<fileset dir="GeneratedEO.subproj">
<include name="**/*.java"/>
<exclude name="**/_*.java"/>
</fileset>
<fileset dir="CustomEO.subproj">
<include name="**/_*.java"/>
</fileset>
</delete>
</target>
but when I run this target, all I get is:
Apache Ant version 1.6.1 compiled on February 12 2004
Buildfile: c:\src\PTSObjectModel\build.xml
parsing buildfile c:\src\PTSObjectModel\build.xml with URI =
file:///C:/src/PTSObjectModel/build.xml
Project base dir set to: C:\src\PTSObjectModel
Arguments: -verbose -Dorg.eclipse.ant.ui.ATTR_ANT_PROCESS_ID=1084405600968
Build sequence for target `generate.java' is [generate.java]
Complete build sequence is [generate.java, setProps, init.install,
build.woframework, install, copy.strings, clean, init.build, build, ]
generate.java:
[wogen] Error generating classes.
BUILD FAILED: C:\src\PTSObjectModel\build.xml:79: Error generating classes.
Total time: 156 milliseconds
line 79 is the first <wogen> invocation. The webpage example says it's
<wogen map=..., but the docs say it's <wogen model=.... I tried them both
and they both give the same error.
Any ideas what I'm doing wrong? I downloaded EOGenerator from Rubicode and
it works great, but it would be nice to keep it all in Eclipse.
Also, in my External Tools setup, I'm only choosing the target
"generate.java", and it has no dependencies, but the complete build
sequence includes all of the other targets as well. Is that a bug in how
WOLips calls the build file, or am I doing something wrong in my build file
or when I run the ant task?
thanks,
Logan Allred
-- "NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected."
This archive was generated by hypermail 2.0.0 : Wed May 12 2004 - 21:04:19 EDT