This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I need to compile java files in batches. For this I'm trying out this following example.
- I have a directory "code" which contains around 1071 java files - I need the classes to get generated in "output" directory. - I have a "javac.tmp" file that has only one line "myBean.java" (This myBean.java is part of the "code" directory)
- I need to compile only this particular file. - I want to use only includesfile and not includes attribute
The reason for not using includes is that the list of files that has to be compiled will grow (I don't know the limit includes, what if the the file list is around 500 ??). Includesfile is supposed to take just a filename and this file should contain list of files.
init: [echo] compiling [javac] Compiling 1071 source files to /users7/e46011/javafile/output
Problem : It tries to compile all the files in the directory "code". Does the includesfile file require to have the filenames in some format (anything other than filenames on different lines) - Something like package name etc ??