Hi!
When you are doing "ant -v", Ant must print an exception stack. Could
you post it here - it should tell exactly what failed in the process.
Thanks
Andrus
On May 12, 2004, at 9:07 PM, logan.allre..onvergys.com wrote:
> 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
This archive was generated by hypermail 2.0.0 : Sat May 15 2004 - 14:59:52 EDT