Hmm...

I'm at a loss...

Just curious, why are you doing this or need to do this?

On Mon, 23 Jun 2008, Roman Kennke wrote:

Hi Scot,

Give this a try:

<javac ..>
        <include name="src/proj1/Class1.java src/proj2/Class2.java"/>
</javac>

I don't think this works because the include/exclude is always relative
to the src dirs. I think I could trick it by setting the source dir to
some common top-level dir of the two subprojects, but then the javac
task could not map the source to class files anymore and I would end up
compiling all the stuff all the time (something I'd like to avoid).

The javac task HTML has some more information on this...

Yeah, I already read through it and tried a couple of options, but none
of them seemed to work, for example:

   <javac>
     <src>
       <pathelement location="proj1" />
       <exclude name="Class1.java" />
     </src>
     <src>
       <pathelement location="proj2" />
     </src>
   </javac>

doesn't work.

    <javac>
     <src>
       <fileset dir="proj1">
         <include name="Class1.java" />
       </fileset>
       <fileset dir="proj2">
          <include name="Class2.java" />
       </fileset>
      </src>
   </javac>

Doesn't work either. Etc etc. The basic problem is that javac only
accepts one set of includes/excludes per javac task, but I need one set
of includes/excludes per srcdir. I'm hoping that I simply overlooked
something...?

If this is really not possible, I'd think about extending the javac task
for that, OR implement a special task that can do this. Then I'd like to
discuss at which point you think I should add the includes/excludes.

/Roman

--
http://kennke.org/blog/


Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to