I have looked at the code that you suggested for me.  Thank you.

I now need to figure out how to take a .java file, run it through my preprocessor, and write the file out somewhere so that it may be compiled by ant and the associated .class file placed in the proper location. What other classes/functions should I be looking at?

TIA for the help.

Martin wrote:

Mark:

What a great idea
Some of this functionality is covered by

org.apache.tools.ant.types
Class PatternSet.NameEntry
createInclude
public PatternSet.NameEntry createInclude()add a name entry on the include
list

   Overrides:
   createInclude in class MatchingTask

----------------------------------------------------------------------------
----

createIncludesFile
public PatternSet.NameEntry createIncludesFile()add a name entry on the
include files list


Overrides: createIncludesFile in class MatchingTask

   and PatternSet.NameEntry has
         PatternSet.NameEntry()

     Method Summary
          java.lang.String evalName(Project p)

          java.lang.String getName()

          void setIf(java.lang.String cond)

          void setName(java.lang.String name)

          void setUnless(java.lang.String cond)

          java.lang.String toString()



 so you see the list of included files is included based on the conditional
 of setIf() and setUnless() and evalName()
I have a sense that Im missing another feature of #if #elif #endif you are
speaking of???

This is something we should think about
Thanks,
Martin
----- Original Message -----
From: "Mark Webb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 23, 2003 1:18 PM
Subject: hello




I would like to join the ant developers.  I have about 5 years of Java
programming experience, and would like to help out.  What I am currently
working on is an ant java preprocessor.  This task would work similarly
to how a C preprocessor works you would use #ifdef, #ifndef, #elif and
#else.  Has anyone tried to write such a task?

As someone who is starting out, I have a few questions.

1. is there anything specific that I could start on?
2. Is there a coding style format that must be followed?
3. Is there an IRC server/room that the developers talk on?

Thank you in advance for your help.  I hope I can return the favor in
the future.

Mark Webb


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










Reply via email to