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 4372] - Javac task always generates optional -sourcepath switch
Date Thu, 20 Dec 2001 08:13:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4372>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4372

Javac task always generates optional -sourcepath switch





------- Additional Comments From j_a_fernandez@yahoo.com  2001-12-20 00:13 -------
Trying to change the tone. I think your problem is that you are misusing the 
srcdir attribute. It should point to the directory containing the top of the 
package dir structure. Otherwise, not only -sourcepath will be wrong but also 
the ability to check if the file is already compiled. Please try this way:

<target name="xxx">
	<javac srcdir="D:\project\src" destdir="D:\project\output">
		<classpath>
			<pathelement location="D:\project\src"/>
		</classpath>
                <include name="com/abc/xxx/*" />
	</javac>
</target>

This should work as you expect.

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


Mime
View raw message