You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ja...@livemedia.com on 2000/11/01 23:29:12 UTC

include confusion...

in the docs, there is an example for javac that looks like:

    <javac destdir="${build}"
         classpath="xyz.jar"
         debug="on">
    <src path="${src}" />
    <src path="${src2}" />
    <include name="mypackage/p1/**,mypackage/p2/**" />
    <exclude name="mypackage/p1/testpackage/**" />
  </javac>

So why would this work:

<javac srcdir="${SRC}/${TESTS}/TestLifecycle" destdir="${test123}" >
   <include name="1234.java" />
   <include name="5678.java" />
   <classpath>
    <pathelement path="${SRC}" />
    <pathelement path="${test123}" />
    <pathelement location="${J2EE.JAR}" />
    <pathelement location="${JUNIT.JAR}" />
   </classpath>
  </javac>


ant not this?:

<javac srcdir="${SRC}/${TESTS}/TestLifecycle" destdir="${test123}" >
   <include name="1234.java,5678.java" />
   <classpath>
    <pathelement path="${SRC}" />
    <pathelement path="${test123}" />
    <pathelement location="${J2EE.JAR}" />
    <pathelement location="${JUNIT.JAR}" />
   </classpath>
  </javac>





thanks,
james@livemedia.com



Re: include confusion...

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "SB" == Stefan Bodewig <bo...@bost.de> writes:

 SB> You've found a documentation bug.

The online version of the documentation has been updated.

Stefan

Re: include confusion...

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "j" == james  <ja...@livemedia.com> writes:

 j> in the docs, there is an example for javac that looks like:

 j> <include name="mypackage/p1/**,mypackage/p2/**" />

You've found a documentation bug. The name attribute of the include
and exclude tags accept a single pattern, not a list of patterns (no
matter which delimiter you try).

Stefan

RE: include confusion...

Posted by Alan Gerhard <AG...@E-SyncNet.Com>.
doc's outdated ??

try this 
 <include name="1234.java 5678.java" />

instead of
 <include name="1234.java,5678.java" />


noticed myself (antv1.1) that the spaces work better than the commas :-)

  -----Original Message-----
  From: james@livemedia.com [mailto:james@livemedia.com]
  Sent: Wednesday, November 01, 2000 5:29 PM
  To: ant-user@jakarta.apache.org
  Subject: include confusion...


  in the docs, there is an example for javac that looks like:
   
      <javac destdir="${build}"
           classpath="xyz.jar"
           debug="on">
      <src path="${src}" />
      <src path="${src2}" />
      <include name="mypackage/p1/**,mypackage/p2/**" />
      <exclude name="mypackage/p1/testpackage/**" />
    </javac>
   
  So why would this work:
   
  <javac srcdir="${SRC}/${TESTS}/TestLifecycle" destdir="${test123}" >
     <include name="1234.java" />
     <include name="5678.java" />
     <classpath>
      <pathelement path="${SRC}" />
      <pathelement path="${test123}" />
      <pathelement location="${J2EE.JAR}" />
      <pathelement location="${JUNIT.JAR}" />
     </classpath>
    </javac>

   
  ant not this?:
   
  <javac srcdir="${SRC}/${TESTS}/TestLifecycle" destdir="${test123}" >
     <include name="1234.java,5678.java" />
     <classpath>
      <pathelement path="${SRC}" />
      <pathelement path="${test123}" />
      <pathelement location="${J2EE.JAR}" />
      <pathelement location="${JUNIT.JAR}" />
     </classpath>
    </javac>

   
   
   
   
  thanks,
  james@livemedia.com