Re: problem with the build file?
От | Barry Lind |
---|---|
Тема | Re: problem with the build file? |
Дата | |
Msg-id | 3DB0B192.2020504@xythos.com обсуждение исходный текст |
Ответ на | problem with the build file? (Nic Ferrier <nferrier@tapsellferrier.co.uk>) |
Список | pgsql-jdbc |
Nic, But if you did a 'make clean; make' it would recompile the changed file. It isn't being compiled the second time because a compiled .class file is found. If you do a make clean then it will force a recompile since no .class file exists. thanks, --Barry Nic Ferrier wrote: > Barry Lind <blind@xythos.com> writes: > > >>Nic, >> >>Your change shouldn't be necessary. Since even though the directory is >>excluded, the particular files in it that are referenced from the >>included directories will automatically be compiled because they are >>referenced from the other classes that are being compiled. That is the >>way javac works when compiling classes, it automatically compiles any >>dependent objects as well. > > > Ok, it's been a while since I studided javac. > > But last time I looked javac couldn't find a source file if it had not been > passed to the compiler (on the command line, or as part of an @ file > or via the API). > > The ANT task excludes the jdbc1 files from being passed to the > compiler. > > > I've just confirmed that this is broken. Here's what I did (with the > old ant script): > > - added the line: > > System.out.println("one"); > > to file org/postgresql/jdbc1/AbstractJdbc1ResultSet.java > > - make (to build jdbc2) > > the 1 file gets compiled. > > > - change the line to: > > System.out.println("two"); > > - make (to build jdbc2) > > No files get compiled. > > > Of course, the chanbge to "two" should be compiled but isn't because > ant has excluded the source file from the compiler. > > > So, I think it is necessary. > > > Nic > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >
В списке pgsql-jdbc по дате отправления: