ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2542] New: - <execute> with inner <env> throws IOException on Mac OS X JVM 1.3
Date Tue, 10 Jul 2001 16:39:51 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2542

*** shadow/2542	Tue Jul 10 09:39:51 2001
--- shadow/2542.tmp.25940	Tue Jul 10 09:39:51 2001
***************
*** 0 ****
--- 1,146 ----
+ +============================================================================+
+ | <execute> with inner <env> throws IOException on Mac OS X JVM 1.3        
 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2542                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: Macintosh               |
+ |     Severity: Major                    OS/Version: MacOS X                 |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: jwinshell@bearriver.com                                      |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ <project name="test" default="test" basedir=".">
+ <target name="test">
+         <exec executable="ls">
+                 <arg value="/usr"/>
+                 <env key="FOO" value="BAR"/>
+         </exec>
+ </target>
+ </project>
+ 
+ This simple use of <exec> when an inner <env key="name" value="somevalue"/>
throws an IOException on JVM 1.3/Hotspot on Mac OS X.   But then continues to execute the
command - then the script terminates abnormally.  The above example works on other 1.3 VMs
( Linux blackdown 1.3/Hotspot, Linux IBM 1.3 JVM )
+ 
+ % java -version
+ java version "1.3.0"
+ Java(TM) 2 Runtime Environment, Standard Edition (build 1.3)
+ Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
+ 
+ If the <env> is removed, then no exception is thrown:
+ 
+ java.io.IOException
+         at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:520)
+         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
+         at org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:159)
+         at org.apache.tools.ant.taskdefs.Execute.patchEnvironment(Execute.java:367)
+         at org.apache.tools.ant.taskdefs.Execute.getEnvironment(Execute.java:281)
+         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
+         at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:228)
+         at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:162)
+         at org.apache.tools.ant.Target.execute(Target.java:153)
+         at org.apache.tools.ant.Project.runTarget(Project.java:898)
+         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
+         at org.apache.tools.ant.Main.runBuild(Main.java:421)
+         at org.apache.tools.ant.Main.main(Main.java:149)
+      [exec] Setting TOMCAT_HOME to /Library/WebServer/tomcat/bin/..
+      [exec] Using classpath: /Library/WebServer/tomcat/bin/../classes:/Library/WebServer/tomcat/bin/../lib/ant.jar:/Library/WebServer/tomcat/bin/../lib/jaxp.jar:/Library/WebServer/tomcat/bin/../lib/jcert.jar:/Library/WebServer/tomcat/bin/../lib/jnet.jar:/Library/WebServer/tomcat/bin/../lib/jsse.jar:/Library/WebServer/tomcat/bin/../lib/parser.jar:/Library/WebServer/tomcat/bin/../lib/servlet.jar:/Library/WebServer/tomcat/bin/../lib/test:/Users/jasonw/lbl_stickers/java:/Users/jasonw/lbl_stickers/lib/JimiProClasses.zip:/Users/jasonw/lbl_stickers/lib/pja.jar:/Users/jasonw/brcl_java/java:/Users/jasonw/br_xml/java:/Users/jasonw/web/java:/Users/jasonw/web/lib/jsdk_2_0.jar
+      [exec] /usr/bin/../bin/java -Xbootclasspath/a:/Users/jasonw/lbl_stickers/lib/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit -Dawt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava2d.font.usePlatformFont=false -Djava.awt.fonts=/System/Library/Frameworks/JavaVM.framework/Versions/1.3/Home/jre/lib/font
-Dtomcat.home=/Library/WebServer/tomcat/bin/.. org.apache.tomcat.startup.Tomcat -f /Users/jasonw/lbl_stickers/tomcat_config/server.xml
+      [exec] 2001-07-10 09:19:17 - ContextManager: Adding context Ctx(  )
+      [exec] 2001-07-10 09:19:17 - ContextManager: Adding context Ctx( /admin )
+      [exec] Starting tomcat. Check logs/tomcat.log for error messages 
+      [exec] 2001-07-10 09:19:19 - PoolTcpConnector: Starting HttpConnectionHandler on 8600
+      [exec] Servlet core startup: StickersApp
+      [exec] init param directory=/home/jasonw/lbl_stickers
+ ^C
+ 85 localhost:lbl_stickers% 
+ 85 localhost:lbl_stickers% 
+ 85 localhost:lbl_stickers% 
+ 85 localhost:lbl_stickers% 
+ 85 localhost:lbl_stickers% 
+ 85 localhost:lbl_stickers% 
+ 85 localhost:lbl_stickers% ls
+ access.log        cvsdepend         err.log           libext/           properties/    
  reloadsync
+ ant/              dist/             java/             multiserver.conf  public_files/  
  tomcat_config/
+ build.xml         doc/              lib/              multiserver.log   public_xml/    
  xml/
+ 86 localhost:lbl_stickers% ssh br24.bearriver.com
+ jasonw@br24.bearriver.com's password: 
+ 1 br24:jasonw% vi build.xml 
+ 
+ <project name="test" default="test" basedir=".">
+ <target name="test">
+         <exec executable="ls">
+                 <arg value="/usr"/>
+                 <env key="FOO" value="BAR"/>
+         </exec>
+ </target>
+ </project>
+ 
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ ~
+ 2 br24:jasonw% 
+ 2 br24:jasonw% 
+ 2 br24:jasonw% 
+ 2 br24:jasonw% 
+ 2 br24:jasonw% logout
+ Connection to br24.bearriver.com closed.
+ 87 localhost:lbl_stickers% ant test
+ Buildfile: build.xml
+ 
+ test:
+ java.io.IOException
+         at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:520)
+         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
+         at org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:159)
+         at org.apache.tools.ant.taskdefs.Execute.patchEnvironment(Execute.java:367)
+         at org.apache.tools.ant.taskdefs.Execute.getEnvironment(Execute.java:281)
+         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
+         at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:228)
+         at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:162)
+         at org.apache.tools.ant.Target.execute(Target.java:153)
+         at org.apache.tools.ant.Project.runTarget(Project.java:898)
+         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
+         at org.apache.tools.ant.Main.runBuild(Main.java:421)
+         at org.apache.tools.ant.Main.main(Main.java:149)
+      [exec] X11R6
+      [exec] bin
+      [exec] include
+      [exec] java
+      [exec] lib
+      [exec] libexec
+      [exec] local
+      [exec] logs
+      [exec] man
+      [exec] sbin
+      [exec] servlets
+      [exec] share
+      [exec] standalone
+      [echo] done exec

Mime
View raw message