The following comment has been added to this issue:
Author: John Casey
Created: Sat, 4 Oct 2003 10:26 PM
Body:
Sorry for the lack of reply on this issue. My hard drive had crashed, and I couldn't
get to my email until now. I can clear some time to revamp this task to use
MavenSession directly, instead of being dependent upon MAVEN-784's changes, which in
the light of day don't seem too good an idea.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-785
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-785
Summary: improve the functionality and feature set of the existing MavenTask
Type: Improvement
Status: Unassigned
Priority: Major
Time Spent: Unknown
Remaining: 1 hour
Project: maven
Components:
core
Fix Fors:
1.1
Versions:
1.0-rc1
Assignee:
Reporter: John Casey
Created: Thu, 4 Sep 2003 11:28 PM
Updated: Thu, 25 Sep 2003 3:29 AM
Environment: all environments, running Ant
Description:
The current version of MavenTask offers only the most limited functionality, limits
the user in goal achievement per maven invocation, and seems arcane in its function
when run against the most current version of maven.
I propose to give this task a facelift, and offer every option via Ant which would be
available to the user from the command line, including multiple goals, property
definition, and all of the options like goal listing and debug, which are listed from
the help screen (maven -h).
Attached to this issue is a complete rewrite of MavenTask, from the ground up. It
invokes maven via Forehead, to avoid recoding the complex classloader logic; to reduce
the required classpath libraries declared in the build.xml file; and to simplify the
function of this task itself. It allows subtasks for goals and properties, and resets
the system properties of its execution environment when complete.
Please note that the new functionality does not preclude backward compatibility. I
have re-added the old attribute methods in order to soothe the transition from old to
new versions.
Invocation in the new task would look like this:
<project name="something" basedir="." default="hello">
<property name="maven.home" value="c:/maven" />
<taskdef name="maven" class="org.apache.maven.ant.MavenTask">
<classpath>
<pathelement location="${maven.home}/lib/maven.jar" />
</classpath>
</taskdef>
<target name="hello">
<maven mavenHome="${maven.home}"
jdkToolsClasses="c:/java/lib/tools.jar"
foreheadClasses="${maven.home}/lib/forehead.jar"
dir="${basedir}"
debug="true"
showStackTraces="true">
<property name="my.property" value="test" />
<goal name="say-hello" />
</maven>
</target>
</project>
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]