[JBoss JIRA] (FORGE-511) Should be able to filter dependency versions when using DependencyInstaller or related APIs
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-511:
----------------------------------------
Summary: Should be able to filter dependency versions when using DependencyInstaller or related APIs
Key: FORGE-511
URL: https://issues.jboss.org/browse/FORGE-511
Project: Forge
Issue Type: Feature Request
Components: Plugin API, Shell
Reporter: Lincoln Baxter III
{code}
package org.jboss.forge.arquillian;
import java.util.List;
import org.jboss.forge.project.dependencies.Dependency;
/**
* DependencyUtil
*
* @author <a href="mailto:aslak@redhat.com">Aslak Knutsen</a>
* @version $Revision: $
*/
public class DependencyUtil
{
private DependencyUtil() {}
public static Dependency getLatestNonSnapshotVersion(List<Dependency> dependencies)
{
if(dependencies == null)
{
return null;
}
for(int i = dependencies.size()-1; i >= 0; i--)
{
Dependency dep = dependencies.get(i);
if(!dep.getVersion().endsWith("SNAPSHOT"))
{
return dep;
}
}
return dependencies.get(dependencies.size()-1);
}
}{code}
{code}
1 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0-SNAPSHOT]
2 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0.Alpha3]
3 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0.Alpha4]
4 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0.Alpha4.SP1]
5 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0.Alpha5]
6 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0.CR1]*
7 - [org.jboss.arquillian.container:arquillian-jetty-embedded-7:::1.0.0.Final-SNAPSHOT]
{code}
--
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
13 years, 8 months
[JBoss JIRA] (FORGE-425) Provide a way to override plugin resources without coding
by Richard Kennard (Created) (JIRA)
Provide a way to override plugin resources without coding
---------------------------------------------------------
Key: FORGE-425
URL: https://issues.jboss.org/browse/FORGE-425
Project: Forge
Issue Type: Feature Request
Reporter: Richard Kennard
At present, Forge makes it easy for users to add their own plugins by writing some code.
However this is onerous for use cases where users just want to tweak some static resource or template. For scaffolding specifically, but for plugins generally, it would be good to have a mechanism to allow users to easily 'drop in' replacement files.
>From discussions on the mailing list, the consensus seems to be:
1. Plugins should keep their resources in as flat a structure as possible. For example at the moment scaffolding uses "resources/org/jboss/forge/scaffold/faces/scaffold/BackingBean.jv" but we should change this to, say, "resources/scaffold/BackingBean.jv"
2. Forge should provide a folder, say, /forge-distribution/resources where users can drop replacement files
There is some disagreement over how this is to be implemented. The concerns are:
1. Richard would prefer that plugins did not have to explicitly worry about this 'replacement mechanism'. Lots of plugins already call .getResource, so it'd be good if this just magically checked /forge-distribution/resources for us.
2. Max does not want this 'replacement mechanism' to work by putting /forge-distribution/resources on the classpath (Max can explain why :)
--
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
13 years, 8 months
[JBoss JIRA] (FORGE-392) Scaffold API generateFromEntity should also create dependent entities
by Richard Kennard (Created) (JIRA)
Scaffold API generateFromEntity should also create dependent entities
---------------------------------------------------------------------
Key: FORGE-392
URL: https://issues.jboss.org/browse/FORGE-392
Project: Forge
Issue Type: Feature Request
Reporter: Richard Kennard
In org.jboss.forge.scaffold.plugins.ScaffoldPlugin there is a method 'generateFromEntity' which delegates to 'provider.generateFromEntity'.
It calls 'provider.generateFromEntity' once for every JavaResource it is given. So for example if the user types:
from-entity com.test.domain.Foo com.test.domain.Bar
It will generate scaffolding for both Foo and Bar.
However if Foo has some kind of relationship to Bar, then the scaffolding produced by Foo will internally refer to Bar. Therefore the generated project will be broken if the user simply does...
from-entity com.test.domain.Foo
...because there will be no Bar scaffolding.
It would be great if the Scaffold API could understand that Foo has related entities and automatically add those into the list before it calls 'provider.generateFromEntity'
--
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
13 years, 8 months
[JBoss JIRA] (FORGE-625) Remove Maven exec plugin configuration from dist module
by George Gastaldi (JIRA)
George Gastaldi created FORGE-625:
-------------------------------------
Summary: Remove Maven exec plugin configuration from dist module
Key: FORGE-625
URL: https://issues.jboss.org/browse/FORGE-625
Project: Forge
Issue Type: Enhancement
Components: Documentation, Init Scripts
Affects Versions: 1.0.5.Final
Reporter: George Gastaldi
Priority: Trivial
As for now, the best way to start forge is to get into dist/target/forge-distribution-1.0.6-SNAPSHOT/bin and run ./forge.
However, some time ago it used to be run using mvn exec:exec, which should no longer be used, since it has some issues with JBoss modules itself.
The following should be removed from pom.xml in dist module and documentation should be properly updated:
{code:xml}
<profile>
<id>runForge</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<workingDirectory>${java.io.tmpdir}</workingDirectory>
<arguments>
<argument>-cp</argument>
<classpath />
<argument>org.jboss.modules.Main</argument>
<argument>-modulepath</argument>
<argument>${project.build.directory}/${project.artifactId}-${forge.release.version}/modules:${user.home}/.forge/plugins</argument>
<argument>org.jboss.forge</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>debugForge</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<workingDirectory>${java.io.tmpdir}</workingDirectory>
<arguments>
<argument>-Xdebug</argument>
<argument>${debug.props}</argument>
<argument>-cp</argument>
<classpath />
<argument>org.jboss.modules.Main</argument>
<argument>-modulepath</argument>
<argument>${project.build.directory}/${project.artifactId}-${forge.release.version}/modules:${user.home}/.forge/plugins</argument>
<argument>org.jboss.forge</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
{code}
--
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
13 years, 8 months
[JBoss JIRA] (FORGE-320) Git-powered "Undo" functionality in Forge
by Jevgeni Zelenkov (JIRA)
[ https://issues.jboss.org/browse/FORGE-320?page=com.atlassian.jira.plugin.... ]
Jevgeni Zelenkov closed FORGE-320.
----------------------------------
> Git-powered "Undo" functionality in Forge
> -----------------------------------------
>
> Key: FORGE-320
> URL: https://issues.jboss.org/browse/FORGE-320
> Project: Forge
> Issue Type: Feature Request
> Components: Brainstorming
> Environment: All
> Reporter: Ian Hands
> Assignee: Jevgeni Zelenkov
> Priority: Minor
>
> Forge should support undo/redo of changes on the file system. Use of git would rock here, particularly cases where Forge is introduced to an existing project, and determining what actually changed during a plugin execution could be nasty.
> Care should be taken to integrate with projects that are already using git as a version control mechanism.
> For example:
> {code}I see you are already using git, what branch should Forge use when modifying files?
> 1 - org.jboss.forge.history
> 2 - define your own?*{code}
> After every successful command execution, changes should be committed to the history branch. If an undo is requested, users could be presented with a list of revisions, or simply pop the latest revision off the stack. If a command exits in failure state, the user should be prompted to either "Undo" or "Abort," in which case, if "Undo" is selected, changes made during the failed command execution should be reverted to the previous state - "Abort" simply does nothing.
> {code}***ERROR*** Could not complete action [blah]...
> ? Undo changes from previous command? [Y/n] {code}
> Scenarios:
> * Master/current branch is ahead of history branch
> * Master/current branch is behind history branch
> * How to handle running in detached state?
> * How to handle rebasing of a branch to avoid merge commits?
--
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
13 years, 8 months
[JBoss JIRA] (FORGE-320) Git-powered "Undo" functionality in Forge
by Jevgeni Zelenkov (JIRA)
[ https://issues.jboss.org/browse/FORGE-320?page=com.atlassian.jira.plugin.... ]
Jevgeni Zelenkov resolved FORGE-320.
------------------------------------
Resolution: Done
https://github.com/forge/plugin-undo
> Git-powered "Undo" functionality in Forge
> -----------------------------------------
>
> Key: FORGE-320
> URL: https://issues.jboss.org/browse/FORGE-320
> Project: Forge
> Issue Type: Feature Request
> Components: Brainstorming
> Environment: All
> Reporter: Ian Hands
> Assignee: Jevgeni Zelenkov
> Priority: Minor
>
> Forge should support undo/redo of changes on the file system. Use of git would rock here, particularly cases where Forge is introduced to an existing project, and determining what actually changed during a plugin execution could be nasty.
> Care should be taken to integrate with projects that are already using git as a version control mechanism.
> For example:
> {code}I see you are already using git, what branch should Forge use when modifying files?
> 1 - org.jboss.forge.history
> 2 - define your own?*{code}
> After every successful command execution, changes should be committed to the history branch. If an undo is requested, users could be presented with a list of revisions, or simply pop the latest revision off the stack. If a command exits in failure state, the user should be prompted to either "Undo" or "Abort," in which case, if "Undo" is selected, changes made during the failed command execution should be reverted to the previous state - "Abort" simply does nothing.
> {code}***ERROR*** Could not complete action [blah]...
> ? Undo changes from previous command? [Y/n] {code}
> Scenarios:
> * Master/current branch is ahead of history branch
> * Master/current branch is behind history branch
> * How to handle running in detached state?
> * How to handle rebasing of a branch to avoid merge commits?
--
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
13 years, 8 months