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/03/02 12:29:24 UTC

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

The following issue has been updated:

    Updater: Brett Porter (mailto:brett@codehaus.org)
       Date: Tue, 2 Mar 2004 6:27 AM
    Changes:
             Fix Version changed to 1.1
             Fix Version changed from 1.0-final
    ---------------------------------------------------------------------
For a full history of the issue, see:

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

---------------------------------------------------------------------
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: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             jelly/ant integration
   Fix Fors:
             1.1

   Assignee: 
   Reporter: Jake Ewerdt

    Created: Fri, 9 Jan 2004 4:12 PM
    Updated: Tue, 2 Mar 2004 6:27 AM
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