ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bernard <ebern...@digitalthink.com>
Subject RE: how to javac?
Date Wed, 08 May 2002 04:37:29 GMT
How about this:

<javac ...>
  <fileset dir="com/somecompany">
    <exclude name="**/ClassA.java"/>
    <exclude name="**/ClassB.java"/>
  </fileset>
</javac>

(Of course the ... in the javac requires all the attributes you'll need)


-----Original Message-----
From: Bernhard Lenz [mailto:Blenz@BerMark.com]
Sent: Tuesday, May 07, 2002 9:16 PM
To: ant-user@jakarta.apache.org
Subject: how to javac?


Here is the challenge. We have a pretty messy packaging structure, but
until this structure is cleaned up the build has to perform some special
tasks:

The structure is
+com
 +somecompany
  +packagea
   {java files}
  +packageb
   {java files}
  +packagec
   +packagec1
    ClassA.java
    {other java files}
   +packagec2
    ClassB.java
    {other java files}

The goal is to compile packageb and packagec with the exception of
ClassA and ClassB. I tried many variations of the <javac> task but so
far wasn't able to exclude ClassA and ClassB from being compiled. 

Does anybody have a suggestion how the <javac> command has to look like
to compile packageb and packagec without CassA and ClassB?

Thanks for your help.
Bernie


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

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


Mime
View raw message