Just remove the excludes clause from the second example.
> -----Original Message----- > From: Shaw, Kendall [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 20, 2000 4:28 PM > To: [EMAIL PROTECTED] > Subject: RE: Patterns > > > > From: Russell Gold [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 20, 2000 1:17 PM > > > > The select decides which files are fed to the compiler. Javac > > will compile > > any files you give it AND any files which those classes > > depend on. In the > > first target, although you did not specify the User.java > > file, one of the > > files you did specify must depend on it. > > Your right. Okay this makes sense. > > > From the ant documentation: > > > > "When both inclusion and exclusion are used, only > > files/directories that > > match the include patterns, and don't match the exclude > > patterns are used." > > > > You have excluded every file, so nothing gets compiled. > > So, is there a way to compile just one file, other than with exec? > > Kendall >
