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 2003/10/29 14:50:06 UTC
[jira] Created: (MAVEN-981) Strange behaviour of console output
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-981
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-981
Summary: Strange behaviour of console output
Type: Bug
Status: Unassigned
Priority: Minor
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin-console
Versions:
1.0-beta-10
Assignee:
Reporter: Charlie Dobbie
Created: Wed, 29 Oct 2003 7:48 AM
Updated: Wed, 29 Oct 2003 7:48 AM
Environment: maven-console-plugin-1.0, WinXP, JDK1.4.2_01
Description:
I'm seeing some strange behaviour of the console goal. I'm not entirely sure what's going on, but it looks like something is storing up internal "maven" output (but not "goal" output) and only printing everything when the first multi-part goal is executed. Are there multiple output streams, one only being flushed in certain circumstances, or something?
An example is probably easiest to understand (CAPITALS are where project-specific text has been removed):
==== START ====
PROMPT>maven console
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-10
The following commands are available:
list - list all available goals
help - this message
<goalname> - attain a goal
quit - quits the console
PROJECT 1.0 >
java:jar-resources
PROJECT 1.0 > [java:jar-resources]
help
The following commands are available:
list - list all available goals
help - this message
<goalname> - attain a goal
quit - quits the console
PROJECT 1.0 > [java:jar-resources]
list
MYGOAL
console
console:listGoals
MYGOAL
MYGOAL:MYSUBGOAL
java:prepare-filesystem
build:end
java:compile
console:help
build:start
clean
jar:jar
java:jar-resources
java:jar
PROJECT 1.0 > [java:jar-resources]
java:jar-resources
PROJECT 1.0 > [java:jar-resources]
war:webapp
console:
console:help:
java:jar-resources:
console:help:
console:listGoals:
java:jar-resources:
war:init:
java:prepare-filesystem:
java:compile:
[echo] Compiling to DIR/target/classes
java:prepare-filesystem:
java:compile:
[echo] Compiling to DIR/target/classes
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
[echo] No test source files to compile.
test:test:
[echo] No tests to run.
war:webapp:
[echo] Assembling webapp PROJECT
PROJECT 1.0 > [war:webapp]
==== END ====
As you can see, I call java:jar-resources, help, list and java:jar-resources again, but it isn't until I call war:webapp that all the goal:subgoal headings come out. Interestingly, there's also a space left below the console:listGoals heading where the goals would have been put.
This doesn't affect functionality at all, but it's a little confusing to look at.
---------------------------------------------------------------------
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