[JBoss JIRA] (FORGE-2260) Strengthen test harness on Bean Validation Commands
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2260:
----------------------------------------
Summary: Strengthen test harness on Bean Validation Commands
Key: FORGE-2260
URL: https://issues.jboss.org/browse/FORGE-2260
Project: Forge
Issue Type: Sub-task
Components: UI - API
Affects Versions: 2.14.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
Before doing some refactoring it would be safer to add more "technical" tests, such as controlling the command metadata to make sure the refactoring doesn't break anything
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months
[JBoss JIRA] (FORGE-1897) Show the file extension of a project type when creating a new project
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1897?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-1897:
-----------------------------------
This looks good, however using the String.concat method makes the code less readable :)
Doesn't this also change the project-new command type option? What happens if you <TAB> the type option?
> Show the file extension of a project type when creating a new project
> ---------------------------------------------------------------------
>
> Key: FORGE-1897
> URL: https://issues.jboss.org/browse/FORGE-1897
> Project: Forge
> Issue Type: Enhancement
> Components: Projects
> Affects Versions: 2.6.0.Final
> Reporter: George Gastaldi
> Assignee: Daniel Cunha (soro)
> Fix For: 2.x Future
>
>
> When {{Project:New}} wizard is run, it would be nice to show next to each Project Type entry the file extension that is targeted to (WAR. POM, JAR, etc..).
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months
[JBoss JIRA] (FORGE-1897) Show the file extension of a project type when creating a new project
by Daniel Cunha (soro) (JIRA)
[ https://issues.jboss.org/browse/FORGE-1897?page=com.atlassian.jira.plugin... ]
Daniel Cunha (soro) commented on FORGE-1897:
--------------------------------------------
[~gastaldi],
http://img.ctrlv.in/img/15/02/28/54f1d0e53b6f6.png
What I did?
I added the getExtension in ProjectType interface.
So, in AbstractProjectType I set the default value for null:
@Override
public String getExtension()
{
return null;
}
In each implementation, I need set this method. So..
I need to change my convert:
type.setItemLabelConverter(new Converter<ProjectType, String>()
{
@Override
public String convert(ProjectType source)
{
if (source == null)
{
return null;
}
if (source.getExtension() == null)
{
return source.getType();
}
return source.getType().concat(" (").concat(source.getExtension()).concat(")");
}
});
That seem good?
> Show the file extension of a project type when creating a new project
> ---------------------------------------------------------------------
>
> Key: FORGE-1897
> URL: https://issues.jboss.org/browse/FORGE-1897
> Project: Forge
> Issue Type: Enhancement
> Components: Projects
> Affects Versions: 2.6.0.Final
> Reporter: George Gastaldi
> Assignee: Daniel Cunha (soro)
> Fix For: 2.x Future
>
>
> When {{Project:New}} wizard is run, it would be nice to show next to each Project Type entry the file extension that is targeted to (WAR. POM, JAR, etc..).
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months
[JBoss JIRA] (FORGE-2245) ResourceFactory : creating a resource from a file
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2245?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2245.
----------------------------------
Fix Version/s: (was: 2.x Future)
Resolution: Rejected
Rejecting this issue, as it seems to be a misuse of the APIs
> ResourceFactory : creating a resource from a file
> -------------------------------------------------
>
> Key: FORGE-2245
> URL: https://issues.jboss.org/browse/FORGE-2245
> Project: Forge
> Issue Type: Bug
> Components: Resources
> Affects Versions: 2.13.1.Final
> Environment: w764, java 7
> Reporter: Jerome B
>
> As I was trying to use a file contained in the JAR of my addon, I used this (intuitive) code
> URL voilaURL = getClass().getClassLoader().getResource("voila.txt");
> File f = new File(voilaURL.toExternalForm());
> Resource<?> resource = rfactory.create(f); // KO
> FileResource fresource = rfactory.create(FileResource.class, f); // KO
> both last two line lead to a FileResource which, in debug is displayed as this form
> [PROJECT_ROOT][Correct full path of file in jar]
> D:\workspace_addons\ADDONS\jar:file:\C:\Users\me\.forge\addons\fr-company-addons-ADDONS213b-1-0-1-SNAPSHOT\ADDONS213b-1.0.1-SNAPSHOT-forge-addon.jar!\voila.txt
> Then, those FileResources when used with the templateFactory
> Template template = tfactory.create(resource,FreemarkerTemplate.class);
> lead to an error like "template does not exist"
> Hint?: The toString value is wrong but the path of the file within FileResource is ok
> See https://developer.jboss.org/thread/252367 for more data
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months