ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32125] New: - javac task classpath attribute does not behave appropriately
Date Tue, 09 Nov 2004 07:26:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32125>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32125

javac task classpath attribute does not behave appropriately

           Summary: javac task classpath attribute does not behave
                    appropriately
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: aagarwal2003@hotmail.com
                CC: aagarwal2003@hotmail.com


Scenario:

Basic Ant File:
<?xml version="1.0"?>
<project name="compile" default="clean">
	<target name="clean">
		  <javac destdir="c:\temp\build\classes"
		   	classpath="C:\temp\build\modules\myapp.jar"
		    	srcdir= "C:\temp\build\src1" debug="on"/>
	</target>

</project>

Now lets say , we compiled using this ant file at time 10:00am and a class file 
is produced at time 10:01 am.

Now we changed few classes in myapp.jar and removed some methods from the 
classes that were inside myapp.jar. Rebuilt myapp.jar.

Recompile using the above mentioned build.xml using ant, since the class file 
is newer than the source file it does not recompile.


Technically this should be reported as Build Failed !! 


Please let me know if you have any other questions.

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


Mime
View raw message