PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3584 *** shadow/3584 Thu Sep 13 06:25:02 2001 --- shadow/3584.tmp.3494 Thu Sep 13 06:25:02 2001 *************** *** 0 **** --- 1,87 ---- + +============================================================================+ + | javac task does not generate .class files | + +----------------------------------------------------------------------------+ + | Bug #: 3584 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: PC | + | Severity: Minor OS/Version: Linux | + | Priority: Other Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Overview Description: My use of the javac task is not generating .class files. + I encountered this problem when moving a project from its development + environment (Win2K - where things worked just fine) to production (Linux). + + Steps to Reproduce: In a scratch directory: + 1) create test.java as: + class test { + static void main (String[] args) { + System.out.println("testing"); + } + } + + 2) create build.xml as: + <?xml version="1.0"?> + <project name="test" default="test" basedir="."> + <target name="test.javac"> + <javac srcdir="." destdir="." /> + </target> + <target name="test.exec"> + <exec command="javac test.java" dir="." output="test.exec.out" /> + </target> + </project> + + 3) running "ant test.javac" produces the following output: + Buildfile: build.xml + Project base dir set to: /home/orion/test + Executing Target: test.javac + Compiling 1 source files to /home/orion/test + Performing a Modern Compile + Completed in 0 seconds + No test.class file is created, ls retuns: + total 8 + -rwxr-xr-x 1 orion orion 287 Sep 13 08:54 build.xml + -rw-r--r-- 1 orion orion 91 Sep 13 08:30 test.java + + 4) running "ant test.exec" produces the following output: + Buildfile: build.xml + Project base dir set to: /home/orion/test + Executing Target: test.exec + Completed in 1 seconds + This does create a test.class file, ls now returns: + total 12 + -rwxr-xr-x 1 orion orion 287 Sep 13 08:54 build.xml + -rw-r--r-- 1 orion orion 409 Sep 13 09:05 test.class + -rw-r--r-- 1 orion orion 0 Sep 13 09:05 test.exec.out + -rw-r--r-- 1 orion orion 91 Sep 13 08:30 test.java + + Actual Results: The javac task should generate a test.class file. + + Expected Results: No test.class file is generate by the javac task. + + Build Date & Platform: I hope this is the info you wanted here: + From "ant -verbose" + ant.java.version -> 1.3 + Detected Java Version: 1.3 + Detected OS: Linux + java.vm.version -> Blackdown-1.3.0-FCS + java.vm.name -> Java HotSpot(TM) Client VM + java.runtime.version -> Blackdown-1.3.0-FCS + os.arch -> i386 + os.name -> Linux + os.version -> 2.2.16-22smp + java.specification.version -> 1.3 + java.vm.specification.version -> 1.0 + From "set": + BASH_VERSION='2.04.11(1)-release' + MACHTYPE=i386-redhat-linux-gnu + OSTYPE=linux-gnu + + Additional Builds and Platforms: unknown + + Additional Information: Thanks in advance for any help with this.
