ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@mad.scientist.com>
Subject Re: Problem with javac task using -sourcepath
Date Thu, 06 Jul 2000 15:08:47 GMT

Try:

<?xml version="1.0"?>

<project name="foo" default="all" base="/test">
  <target name="init">
    <property name="in" value="${base}/java" />
    <property name="out" value="${base}/classes" />
  </target>
  <target name="all" depends="init"> 
    <!-- changed to -->
    <javac srcdir="${in}" destdir="${out}" includes="testa/**" />
    <!-- or -->
    <javac srcdir="${in}" destdir="${out}">
	<include name="testa/**" />
    </javac>
    <!-- or -->
    <javac srcdir="${in}" destdir="${out}">
	<exclude name="testb/**" />
    </javac>

  </target>
</project>

>Am I missing something?

No. Everyone seems to fall for that (or at least a lot of traffic ion list
is gernearated for it. So you are not alone :P
Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Mime
View raw message