ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christof Schablinski <schablin...@danet.de>
Subject Subpackage build script compiles java-sources in sibling-package
Date Mon, 13 Aug 2001 14:19:29 GMT
Hi,

I'm calling Ant with the following build-file in a subpackage directory.
Ant echos the number of files in the subpackage that must be recompiled,
but first starts to compile java sources in a sibling package.
How can I prevent Ant from checking the sibling packages?

<project name="client-package" default="compile">

  <property environment="ENV" />
  <property name="builddir"
            value="${ENV.PROJDIR}/Team/${ENV.USER}/program/classes" />
  <property name="srcdir"
            value="${ENV.PROJDIR}/Team/${ENV.USER}/program/java" />
  <property name="package" value="com/dcag/spb/client/mainwindow" /> 


  <target name="init">
     <mkdir dir="${builddir}" />
  </target>

  <target name="clean">
     <delete dir="${builddir}/${package}" />
  </target>

  <path id="classpath.project">
     <pathelement location="${builddir}" />
     <pathelement location="${builddir}/../lib/jh.jar" />
  </path>
 
  <target name="compile" depends="init">
    <javac srcdir="${srcdir}" destdir="${builddir}" >
       <classpath refid="classpath.project" />
       <patternset excludes="${srcdir}/com/dcag/spb/client/**/*.java"/>
       <patternset includesfile="includes.ant" />
    </javac>
  </target>
</project>

Mime
View raw message