The following issue has been updated:
Updater: dion gillard (mailto:[EMAIL PROTECTED])
Date: Sun, 9 Nov 2003 8:53 AM
Changes:
Fix Version changed to 1.1
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-948&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-948
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-948
Summary: Genapp to prompt for project root
Type: Improvement
Status: Unassigned
Priority: Trivial
Time Spent: Unknown
Remaining: 3 hours
Project: maven
Components:
plugin-genapp
Fix Fors:
1.1
Versions:
1.0-rc2
Assignee:
Reporter: Sri Sankaran
Created: Sat, 18 Oct 2003 3:53 PM
Updated: Sun, 9 Nov 2003 8:53 AM
Environment: All
Description:
Currently, the genapp plugin assumes that ${basedir} is to be the top-level of the
project being 'gen'ed. The user doesn't realize that the plugin is going to write a
bunch of files/directories to the current directory until *after* running it.
It would be nice if we could prompt for a location. I have tested that with simple
code modifications to plugin.jelly & plugin.properties
plugin.jelly:
Step 1
Replace all occurences of ${basedir} with ${projectRoot}.
Step 2
Add the following lines at line 92
<!-- Get the project root -->
<j:set var="projectRoot" value="${maven.genapp.projectRoot}"/>
<j:if test="${empty(projectRoot)}">
<i:ask question="${maven.genapp.prompt.projectRoot}"
answer="projectRoot"
default="${basedir}/${maven.genapp.template.name}"/>
</j:if>
plugin.properties:
Added the property setting
maven.genapp.prompt.projectRoot=Please specify the project root directory:
I can provide the modified files -- and related changes to properties.xml -- if you
wish.
---------------------------------------------------------------------
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]