ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: building myrmidon
Date Sun, 13 Jan 2002 00:09:43 GMT
Peter,

As you'll see from my commit message and the changes in CVS, I made a simple
proof-of-concept addition to myrmidon to demonstrate the use of XDoclet.  It
should be harmless to the main build.

I know, the dependency on log4j is a bummer, sorry!  :)

Run 'ant xdoclet' and after waiting a little while (yeah, an <uptodate> is
needed when integrated into a main build process).  Then look at
build/core-ant-descriptor.xml.

Its currently not working perfectly, as it misses two classes that extend
AbstractContainerTask rather than AbstractTask directly - I'm not sure if
the problem is on my template or <xdoclet>/<template> usage or perhaps an
XDoclet bug. It should pick up all classes that extend from AbstractTask.

Thoughts?  Seem like a decent way to embed the metadata into the Java files
and generate the other artifacts?

I still get compile errors, but I see you are moving stuff around a bit so
I'll wait before reporting them again.

    Erik



----- Original Message -----
From: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
To: "ant-dev" <ant-dev@jakarta.apache.org>
Sent: Saturday, January 12, 2002 10:18 AM
Subject: building myrmidon


> Peter,
>
> I wanted to have a look at myrmidon in more detail and went to build it
> (using both Ant 1.4.1 and a new bootstrapped from CVS version of Ant
> 1.5alpha) and I get these errors:
>
> compile:
>     [javac] Compiling 79 source files to
> C:\jakarta\jakarta-ant\proposal\myrmido
> n\build\classes
>     [javac]
> C:\jakarta\jakarta-ant\proposal\myrmidon\src\main\org\apache\tools\a
> nt\taskdefs\optional\net\FTP.java:400: incompatible types
>     [javac] found   : java.lang.String
>     [javac] required: java.io.File
>     [javac]             File file = resolveFile( new File( dir,
> filename ).getPa
> th() );
>     [javac]                                    ^
>     [javac]
> C:\jakarta\jakarta-ant\proposal\myrmidon\src\main\org\apache\tools\a
> nt\taskdefs\optional\net\FTP.java:698: resolveFile(java.lang.String) in
> org.apac
> he.tools.ant.taskdefs.optional.net.FTP cannot override
> resolveFile(java.lang.Str
> ing) in org.apache.myrmidon.api.AbstractTask; overridden method is final
>     [javac]     protected String resolveFile( String file )
>     [javac]                      ^
>     [javac]
> C:\jakarta\jakarta-ant\proposal\myrmidon\src\main\org\apache\tools\a
> nt\taskdefs\optional\net\FTP.java:725: incompatible types
>     [javac] found   : java.lang.String
>     [javac] required: java.io.File
>     [javac]             File file = resolveFile( new File( dir,
> filename ).getPa
> th() );
>     [javac]                                    ^
>     [javac]
> C:\jakarta\jakarta-ant\proposal\myrmidon\src\main\org\apache\tools\a
> nt\taskdefs\optional\PropertyFile.java:262: warning:
> save(java.io.OutputStream,j
> ava.lang.String) in java.util.Properties has been deprecated
>     [javac]             m_properties.save( bos, m_comment );
>     [javac]                         ^
>     [javac] 3 errors
>     [javac] 1 warning
>
> BUILD FAILED
> C:\jakarta\jakarta-ant\proposal\myrmidon\build.xml:198: Compile failed,
> messages
>  should have been provided.
>
> Total time: 6 seconds
>
> I'm using build.compiler=modern, in case that matters.
>
> What am I missing or doing wrong?
>
> What I'd like to do is put in XDoclet's JAR file to the lib directory and
> add some javadoc comments to some files (probably the converters) and then
a
> target to the build to generate the an XML descriptor file
> (core-ant-descriptor.xml probably) just as a proof-of-concept so that we
can
> get that functionality plugged in sooner rather than later if it seems an
> agreeable way to go.
>
>     Erik
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message