ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dittmann Werner <werner.dittm...@siemens.com>
Subject javac and exclude - strange behaviour
Date Thu, 21 Aug 2003 13:51:31 GMT
Hello all,

need some help/hints about the following ant script.
Both targs should do the same, shouldn't they?

The first target really excludes the listed
directory structures, the second target doesn't. According
to the manual both should behave the same.

I just want to compile some java modules located in the
basedir, the other source was already compiled during a 
previous step. The "init" target is empty.

The directories "src" and "build" are in the "basedir".

Please refer to the attached ant output in verbose mode.

Any ideas? What is wrong in the script/target? Must be
something obvious... 

Regards
Werner

<snippet>

  <target name="compile_test" depends="init" >
    <javac destdir="${basedir}" excludes="src/**,build/**" listfiles="yes" >
      <src path="${basedir}" />
	<classpath>
	    <pathelement location="${build}" />
	    <pathelement path="${classpath}" />
	</classpath>
    </javac>
  </target>

  <target name="compile_test1" depends="init" >
    <javac destdir="${basedir}" listfiles="yes">
      <src path="${basedir}" />
	<classpath>
	    <pathelement location="${build}" />
	    <pathelement path="${classpath}" />
	</classpath>
	<exclude name="src/**,build/**" />
    </javac>
  </target>

</snippet>


ant output (verbose):

Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.4 in: d:\j2sdk1.4\jre
Detected OS: Windows NT
parsing buildfile build.xml with URI = file:d:/axis_test/rpc-lit/build.xml
Project base dir set to: D:\axis_test\rpc-lit
Build sequence for target `compile_test' is [init, compile_test]
Complete build sequence is [init, compile_test, compile_test1, clean, testit, compile, dist]

init:

compile_test:
    [javac] build.xml skipped - don't know how to handle it
    [javac] Tester.java added as Tester.class doesn't exist.
    [javac] Compiling 1 source file to D:\axis_test\rpc-lit
    [javac] D:\axis_test\rpc-lit\Tester.java
    [javac] Using modern compiler
    [javac] Compilation arguments:
    [javac] '-d'
    [javac] 'D:\axis_test\rpc-lit'
    [javac] '-classpath'
    [javac] 'D:\axis_test\rpc-lit;D:\axis_test\rpc-lit\build;D:\Apache\apache-ant-1.5.3-1\lib\xml-apis.jar;D:\Apache\apache-ant-1.5.3-1\lib\xercesImpl.jar;D:\Apache\apache-ant-1.5.3-1\lib\optional.jar;D:\Apache\apache-ant-1.5.3-1\lib\ant.jar;D:\xml-axis;D:\xml-EtAl\xmlParserAPIs.jar;D:\xml-EtAl\xercesImpl.jar;D:\xml-axis\lib\axis.jar;D:\xml-axis\lib\axis-ant.jar;D:\xml-axis\lib\commons-discovery.jar;D:\xml-axis\lib\commons-logging.jar;D:\xml-axis\lib\jaxrpc.jar;D:\xml-axis\lib\log4j-20030730.jar;D:\xml-axis\lib\saaj.jar;D:\xml-axis\lib\wsdl4j.jar;D:\xmlsec\libs\bc-jce-jdk13-118.jar;D:\xmlsec\libs\xmlsec.jar;D:\xmlsec\libs\xml-apis.jar;D:\j2sdk1.4\lib\tools.jar'
    [javac] '-sourcepath'
    [javac] 'D:\axis_test\rpc-lit'
    [javac] '-g:none'
    [javac] 
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.
    [javac] File to be compiled:
    [javac]     D:\axis_test\rpc-lit\Tester.java

BUILD SUCCESSFUL
Total time: 18 seconds


Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.4 in: d:\j2sdk1.4\jre
Detected OS: Windows NT
parsing buildfile build.xml with URI = file:d:/axis_test/rpc-lit/build.xml
Project base dir set to: D:\axis_test\rpc-lit
Build sequence for target `compile_test1' is [init, compile_test1]
Complete build sequence is [init, compile_test1, clean, testit, compile, compile_test, dist]

init:

compile_test1:
    [javac] build\org\csapi\www\parlayx\common\ArrayOfEndUserIdentifier.class skipped - don't
know how to handle it
    [javac] build\org\csapi\www\parlayx\common\ArrayOfURI.class skipped - don't know how to
handle it
    [javac] build\org\csapi\www\parlayx\common\EndUserIdentifier.class skipped - don't know
how to handle it
    [javac] build\org\csapi\www\parlayx\common\InvalidArgumentException.class skipped - don't
know how to handle it
    [javac] build\org\csapi\www\parlayx\common\UnknownEndUserException.class skipped - don't
know how to handle it
    [javac] build\org\csapi\www\parlayx\payment\AmountChargingBindingImpl.class skipped -
don't know how to handle it
    [javac] build\org\csapi\www\parlayx\payment\AmountChargingBindingSkeleton.class skipped
- don't know how to handle it
    [javac] build\org\csapi\www\parlayx\payment\AmountChargingBindingStub.class skipped -
don't know how to handle it
    [javac] build\org\csapi\www\parlayx\payment\AmountChargingPort.class skipped - don't know
how to handle it
    [javac] build\org\csapi\www\parlayx\payment\AmountChargingService.class skipped - don't
know how to handle it
    [javac] build\org\csapi\www\parlayx\payment\AmountChargingServiceLocator.class skipped
- don't know how to handle it
    [javac] build\org\csapi\www\parlayx\payment\ChargeFailureException.class skipped - don't
know how to handle it
    [javac] build\Tester.class skipped - don't know how to handle it
    [javac] build.xml skipped - don't know how to handle it
    [javac] err.txt skipped - don't know how to handle it
    [javac] out skipped - don't know how to handle it
    [javac] src\org\csapi\www\parlayx\common\ArrayOfEndUserIdentifier.class skipped - don't
know how to handle it
    [javac] src\org\csapi\www\parlayx\common\ArrayOfEndUserIdentifier.java omitted as src/org/csapi/www/parlayx/common/ArrayOfEndUserIdentifier.class
is up to date.
    [javac] src\org\csapi\www\parlayx\common\ArrayOfURI.class skipped - don't know how to
handle it
    [javac] src\org\csapi\www\parlayx\common\ArrayOfURI.java omitted as src/org/csapi/www/parlayx/common/ArrayOfURI.class
is up to date.
    [javac] src\org\csapi\www\parlayx\common\EndUserIdentifier.class skipped - don't know
how to handle it
    [javac] src\org\csapi\www\parlayx\common\EndUserIdentifier.java omitted as src/org/csapi/www/parlayx/common/EndUserIdentifier.class
is up to date.
    [javac] src\org\csapi\www\parlayx\common\InvalidArgumentException.class skipped - don't
know how to handle it
    [javac] src\org\csapi\www\parlayx\common\InvalidArgumentException.java omitted as src/org/csapi/www/parlayx/common/InvalidArgumentException.class
is up to date.
    [javac] src\org\csapi\www\parlayx\common\UnknownEndUserException.class skipped - don't
know how to handle it
    [javac] src\org\csapi\www\parlayx\common\UnknownEndUserException.java omitted as src/org/csapi/www/parlayx/common/UnknownEndUserException.class
is up to date.
    [javac] src\org\csapi\www\parlayx\payment\AmountChargingBindingImpl.java added as src/org/csapi/www/parlayx/payment/AmountChargingBindingImpl.class
doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\AmountChargingBindingSkeleton.java added as
src/org/csapi/www/parlayx/payment/AmountChargingBindingSkeleton.class doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\AmountChargingBindingStub.java added as src/org/csapi/www/parlayx/payment/AmountChargingBindingStub.class
doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\AmountChargingPort.java added as src/org/csapi/www/parlayx/payment/AmountChargingPort.class
doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\AmountChargingService.java added as src/org/csapi/www/parlayx/payment/AmountChargingService.class
doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\AmountChargingServiceLocator.java added as src/org/csapi/www/parlayx/payment/AmountChargingServiceLocator.class
doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\ChargeFailureException.java added as src/org/csapi/www/parlayx/payment/ChargeFailureException.class
doesn't exist.
    [javac] src\org\csapi\www\parlayx\payment\deploy.wsdd skipped - don't know how to handle
it
    [javac] src\org\csapi\www\parlayx\payment\undeploy.wsdd skipped - don't know how to handle
it
    [javac] Tester.class skipped - don't know how to handle it
    [javac] Tester.java omitted as Tester.class is up to date.
    [javac] Compiling 7 source files to D:\axis_test\rpc-lit
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingBindingImpl.java
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingBindingSkeleton.java
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingBindingStub.java
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingPort.java
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingService.java
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingServiceLocator.java
    [javac] D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\ChargeFailureException.java
    [javac] Using modern compiler
    [javac] Compilation arguments:
    [javac] '-d'
    [javac] 'D:\axis_test\rpc-lit'
    [javac] '-classpath'
    [javac] 'D:\axis_test\rpc-lit;D:\axis_test\rpc-lit\build;D:\Apache\apache-ant-1.5.3-1\lib\xml-apis.jar;D:\Apache\apache-ant-1.5.3-1\lib\xercesImpl.jar;D:\Apache\apache-ant-1.5.3-1\lib\optional.jar;D:\Apache\apache-ant-1.5.3-1\lib\ant.jar;D:\xml-axis;D:\xml-EtAl\xmlParserAPIs.jar;D:\xml-EtAl\xercesImpl.jar;D:\xml-axis\lib\axis.jar;D:\xml-axis\lib\axis-ant.jar;D:\xml-axis\lib\commons-discovery.jar;D:\xml-axis\lib\commons-logging.jar;D:\xml-axis\lib\jaxrpc.jar;D:\xml-axis\lib\log4j-20030730.jar;D:\xml-axis\lib\saaj.jar;D:\xml-axis\lib\wsdl4j.jar;D:\xmlsec\libs\bc-jce-jdk13-118.jar;D:\xmlsec\libs\xmlsec.jar;D:\xmlsec\libs\xml-apis.jar;D:\j2sdk1.4\lib\tools.jar'
    [javac] '-sourcepath'
    [javac] 'D:\axis_test\rpc-lit'
    [javac] '-g:none'
    [javac] 
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.
    [javac] Files to be compiled:
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingBindingImpl.java
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingBindingSkeleton.java
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingBindingStub.java
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingPort.java
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingService.java
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\AmountChargingServiceLocator.java
    [javac]     D:\axis_test\rpc-lit\src\org\csapi\www\parlayx\payment\ChargeFailureException.java

BUILD SUCCESSFUL
Total time: 20 seconds




Werner Dittmann
Siemens ICM N AS BD E
mailto:Werner.Dittmann@siemens.com
Tel:   +49(0)89 636 50265
Mobil: +49(0)172 85 85 245

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


Mime
View raw message