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=11568>. 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=11568 Ant 1.5 fails on Solaris when using Java 1.2 Summary: Ant 1.5 fails on Solaris when using Java 1.2 Product: Ant Version: 1.5 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: Build Process AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following xml file fails when using java 1.2, but works with java 1.3 or newer. The xml file is: <?xml version="1.0"?> <project name="Config" default="help" basedir="."> <patternset id="fixcrlf_files"> <include name="*.xml"/> </patternset> <target name="fix_newlines"> <echo message="Modifying text files ..."/> <chmod perm="+w"> <fileset dir="."> <patternset refid="fixcrlf_files"/> </fileset> </chmod> </target> </project> It is being executed by doing the following: config.sh fix_newlines Here is config.sh: #!/bin/sh java -cp "ant.jar:xercesImpl.jar:optional.jar:xml-apis.jar" \ org.apache.tools.ant.Main -v -f config.xml "$@" Here is the output when run with java 1.2: Apache Ant version 1.5 compiled on July 9 2002 Buildfile: config.xml Detected Java version: 1.2 in: /usr/java1.2/jre Detected OS: SunOS parsing buildfile config.xml with URI = file:/users/devp/mc/config.xml Project base dir set to: /users/devp/mc Build sequence for target `fix_newlines' is [fix_newlines] Complete build sequence is [fix_newlines] fix_newlines: [echo] Modifying text files ... [chmod] Current OS is SunOS [chmod] Executing 'chmod' with arguments: [chmod] '+w' [chmod] '/users/devp/mc/config.xml' [chmod] [chmod] The ' characters around the executable and arguments are [chmod] not part of the command. BUILD FAILED file:/users/devp/mc/config.xml:9: Execute failed: java.io.IOException: Cannot locate antRun script: Property 'ant.home' not found at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Exception.java:42) at java.lang.RuntimeException.<init>(RuntimeException.java:47) at org.apache.tools.ant.BuildException.<init>(BuildException.java:99) at org.apache.tools.ant.BuildException.<init>(Compiled Code) at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(Compiled Code) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250) at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:211) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Compiled Code) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Compiled Code) at org.apache.tools.ant.Project.executeTargets(Compiled Code) at org.apache.tools.ant.Main.runBuild(Compiled Code) at org.apache.tools.ant.Main.start(Compiled Code) at org.apache.tools.ant.Main.main(Main.java:235) --- Nested Exception --- java.io.IOException: Cannot locate antRun script: Property 'ant.home' not found at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Exception.java:42) at java.io.IOException.<init>(IOException.java:47) at org.apache.tools.ant.taskdefs.Execute$ScriptCommandLauncher.exec(Execute.java:784) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:417) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:428) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(Compiled Code) at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(Compiled Code) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250) at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:211) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Compiled Code) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Compiled Code) at org.apache.tools.ant.Project.executeTargets(Compiled Code) at org.apache.tools.ant.Main.runBuild(Compiled Code) at org.apache.tools.ant.Main.start(Compiled Code) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 3 seconds Here is the output when run with java 1.3: Apache Ant version 1.5 compiled on July 9 2002 Buildfile: config.xml Detected Java version: 1.3 in: /sonicqa/solaris/j2re1_3_1_01/j2re1_3_1_01 Detected OS: SunOS parsing buildfile config.xml with URI = file:/users/devp/mc/config.xml Project base dir set to: /users/devp/mc Build sequence for target `fix_newlines' is [fix_newlines] Complete build sequence is [fix_newlines] fix_newlines: [echo] Modifying text files ... [chmod] Current OS is SunOS [chmod] Executing 'chmod' with arguments: [chmod] '+w' [chmod] '/users/devp/mc/config.xml' [chmod] [chmod] The ' characters around the executable and arguments are [chmod] not part of the command. BUILD SUCCESSFUL Total time: 3 seconds This issue is occuring when forking a java process. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
