remove-plugin is always successful (it "lies")
----------------------------------------------
Key: FORGE-373
URL:
https://issues.jboss.org/browse/FORGE-373
Project: Forge
Issue Type: Bug
Components: Plugin API
Affects Versions: 1.0.0.Beta3
Environment: Ubuntu 11.04 64-bit, Sun JDK 6, Forge 1.0.0.Beta3
Reporter: Hendy Irawan
Assignee: Lincoln Baxter III
The wrong way:
{code}
[no project] git $ forge list-plugins
com.redhat.openshift.express.openshift-express-plugin:1.0.0-SNAPSHOT-155e7864-17ee-434f-9d00-1d3a97daceb0
org.richfaces.forge.richfaces-forge-plugin:1.0.0-SNAPSHOT-943ecca1-e619-4fa8-8559-5ab834c91c29
[no project] git $ forge remove-plugin richfaces
***INFO*** Preparing to remove plugin: richfaces
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
***SUCCESS*** Successfully removed [richfaces]
[no project] git $ forge list-plugins
com.redhat.openshift.express.openshift-express-plugin:1.0.0-SNAPSHOT-155e7864-17ee-434f-9d00-1d3a97daceb0
org.richfaces.forge.richfaces-forge-plugin:1.0.0-SNAPSHOT-943ecca1-e619-4fa8-8559-5ab834c91c29
{code}
Removing a non-existing plugin ... successful ???
{code}
[no project] git $ forge remove-plugin richfacesx
***INFO*** Preparing to remove plugin: richfacesx
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
***SUCCESS*** Successfully removed [richfacesx]
{code}
The right way:
{code}
[no project] git $ forge remove-plugin org.richfaces.forge.richfaces-forge-plugin
***INFO*** Preparing to remove plugin: org.richfaces.forge.richfaces-forge-plugin
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
***SUCCESS*** Successfully removed [org.richfaces.forge.richfaces-forge-plugin]
[no project] git $ forge list-plugins
com.redhat.openshift.express.openshift-express-plugin:1.0.0-SNAPSHOT-155e7864-17ee-434f-9d00-1d3a97daceb0
{code}
Forge should display error if plugin name is not found / invalid.
Even better yet, provide TAB completion what plugin names are remove-able. (just like sudo
aptitude remove <TAB> works in Ubuntu...)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira