You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/01/10 00:42:39 UTC

[jira] Commented: (MAVEN-1116) outputproperty, error and resultproperty in ant:java task are not populated

The following comment has been added to this issue:

     Author: Jake Ewerdt
    Created: Fri, 9 Jan 2004 5:42 PM
       Body:
the error property also doesn't work.  The following line works correctly in ant, but in maven it doesn't create the jake.err file and outputs both streams into the jake.out file.

<java classname="com.jake.Jake" classpath="target/classes" fork="true" failonerror="false" error="jake.err" output="jake.out" outputproperty="testoutput" errorproperty="testerror" resultproperty="testresult" />


---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1116


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1116
    Summary: outputproperty, error and resultproperty in ant:java task are not populated
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Assignee: 
   Reporter: Jake Ewerdt

    Created: Fri, 9 Jan 2004 4:12 PM
    Updated: Fri, 9 Jan 2004 5:42 PM
Environment: java 1.3.1
ant 1.6
maven 1.0-rc1

Description:
==== Java file ====
package com.jake;
public class Jake {
    public static void main(String []args) {
        System.out.println("Regular Output");
        System.err.println("Error Output");
        System.exit(1);
    }
}


==== build.xml target ====
  <target name="java-output">
    <path id="test.classpath">
        <fileset dir="target/classes"><include name="com/jake/Jake.class" /></fileset>
    </path>
    <java classname="com.jake.Jake" classpath="target/classes" fork="true" failonerror="false" outputproperty="testoutput" errorproperty="testerror" resultproperty="testresult" />
    <echo message="testresult = ${testresult}" />
    <echo message="testerror  = ${testerror}" />
    <echo message="testoutput = ${testoutput}" />
  </target>


==== maven.xml goal ====
  <goal name="java-output">
    <path id="test.classpath">
      <fileset dir="target/classes"><include name="com/jake/Jake.class" /></fileset>
    </path>
    <java classname="com.jake.Jake" classpath="target/classes" fork="true" failonerror="false" outputproperty="testoutput" errorproperty="testerror" resultproperty="testresult" />
    <echo message="testresult = ${testresult}" />
    <echo message="testerror  = ${testerror}" />
    <echo message="testoutput = ${testoutput}" />
  </goal>


++++ Ant output ++++
java-output:
     [java] Java Result: 1
     [echo] testresult = 1
     [echo] testerror  = Error Output
     [echo] testoutput = Regular Output


++++ Maven output ++++
java-output:
    [java] Regular Output
    [java] Error Output
    [java] [ERROR] Java Result: 1
    [echo] testresult =
    [echo] testerror  =
    [echo] testoutput =




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org