You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/05/16 06:39:35 UTC
[jira] Closed: (MAVEN-1116) outputproperty, error and resultproperty in ant:java task are not populated
[ http://jira.codehaus.org/browse/MAVEN-1116?page=all ]
Brett Porter closed MAVEN-1116:
-------------------------------
Resolution: Duplicate
was dependant on an ant upgrade
> outputproperty, error and resultproperty in ant:java task are not populated
> ---------------------------------------------------------------------------
>
> Key: MAVEN-1116
> URL: http://jira.codehaus.org/browse/MAVEN-1116
> Project: maven
> Type: Bug
> Components: jelly/ant integration
> Environment: java 1.3.1
> ant 1.6
> maven 1.0-rc1
> Reporter: Jake Ewerdt
> Priority: Minor
>
>
> ==== 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 =
--
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
-
For more information on JIRA, 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